Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.41 KB | None | 0 0
  1. body {
  2. /* body styling code */
  3. margin: 0;
  4. background-color: #FCFCFC;
  5. background-image: '';
  6. background-repeat: no-repeat;
  7. background-position: 0px 85px;
  8. background-attachment: '';
  9. background-size: cover;
  10. font-family: "operetta 8", serif;
  11. font-weight: 300;
  12. font-style: normal;
  13. }
  14.  
  15. .container {
  16. /* class for logo and text/links in navigation bar */
  17. width: 90%;
  18. margin: 0 auto;
  19. }
  20.  
  21. .headerLogo {
  22. /* class for logo in navigation bar */
  23. /* floating logo to the left */
  24. /* full canvas photo is 2057px wide & 643px in height */
  25. float: left;
  26. padding: 10px 0;
  27. /* gives a little space on top and bottom of the logo */
  28. width: 164.56px;
  29. /* 8% of the full size (2057px) */
  30. height: 51.44px;
  31. /* 8% of the full size (643px) */
  32. }
  33.  
  34. header {
  35. background: #E9E9E9;
  36. opacity: 1;
  37. }
  38.  
  39. header::after {
  40. /* used because .logo and nav are float left/right, shrinking the container to 0px, this fixes that */
  41. content: '';
  42. display: table;
  43. clear: both;
  44. }
  45.  
  46. nav {
  47. /* floating list (menu) items to the right */
  48. float: right;
  49. }
  50.  
  51. nav ul {
  52. margin: 0;
  53. /* takes space off top and bottom header background */
  54. padding: 0;
  55. /* takes space off the sides */
  56. list-style: none;
  57. /* removes bullet point styling */
  58. }
  59.  
  60. nav li {
  61. display: inline-block;
  62. /* places list horizontal, not vertical */
  63. margin-left: 30px;
  64. /* specifies the spacd between the list items */
  65. padding-top: 25px;
  66. /* not required - used for the hover effect for this particular nav bar */
  67. position: relative;
  68. /* allows the nav a::before to keep the hover line relative to the text length */
  69. }
  70.  
  71. nav ul li a {
  72. color: #7F7887;
  73. text-decoration: none;
  74. text-transform: uppercase;
  75. font-size: 17px;
  76. }
  77.  
  78. nav ul li a:hover {
  79. color: #3f003c;
  80. }
  81.  
  82. nav ul li a::before {
  83. content: '';
  84. display: block;
  85. height: 2px;
  86. width: 100%;
  87. background-color: #3f003c;
  88. position: absolute;
  89. /* absolute width 100% shoots this to 100% of the screen size (they run together) */
  90. top: 0;
  91. width: 0%;
  92. -webkit-transition: all ease-in-out 250ms;
  93. transition: all ease-in-out 250ms;
  94. /* slows down the way the hover bar appears */
  95. }
  96.  
  97. nav ul li a:hover::before {
  98. width: 100%;
  99. }
  100.  
  101. a {
  102. text-decoration: none;
  103. }
  104.  
  105. .burger {
  106. display: none;
  107. cursor: pointer;
  108. display: static;
  109. z-index: 200;
  110. }
  111.  
  112. .burger div {
  113. width: 25px;
  114. height: 3px;
  115. background-color: #3f003c;
  116. margin: 5px;
  117. -webkit-transition: all 0.5s ease;
  118. transition: all 0.5s ease;
  119. /* adds transition to Burger turning into an X */
  120. }
  121.  
  122. .mainLogo {
  123. /* class for logo/image on index page */
  124. width: 75%;
  125. height: 60%;
  126. opacity: 0.9;
  127. }
  128.  
  129. .mainLogoDiv {
  130. /* class for the div containing the logo/image on index page */
  131. text-align: center;
  132. }
  133.  
  134. .section {
  135. max-width: 1920px;
  136. margin: 0 auto;
  137. padding: 1% 2%;
  138. }
  139.  
  140. .grid {
  141. margin: 20px 0 0 0;
  142. padding: 0;
  143. list-style: none;
  144. display: block;
  145. text-align: center;
  146. width: 100%;
  147. }
  148.  
  149. .grid:after {
  150. clear: both;
  151. }
  152.  
  153. .grid:after, .grid:before {
  154. content: '';
  155. display: table;
  156. }
  157.  
  158. .grid li {
  159. width: 200px;
  160. height: 200px;
  161. display: inline-block;
  162. margin: 20px;
  163. }
  164.  
  165. .box {
  166. width: 100%;
  167. height: 100%;
  168. position: relative;
  169. cursor: pointer;
  170. border-radius: 5px;
  171. -webkit-transition: 0.3s ease-in-out, -webkit-transform 0.3 ease-in-out;
  172. -webkit-transition: 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  173. transition: 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  174. transition: 0.3s ease-in-out, transform 0.3s ease-in-out;
  175. transition: 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  176. }
  177.  
  178. .box:hover {
  179. -webkit-transform: scale(1.05);
  180. transform: scale(1.05);
  181. }
  182.  
  183. .p-cov1 {
  184. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/mj-cover.jpg);
  185. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/mj-cover.jpg);
  186. }
  187.  
  188. .p-cov2 {
  189. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/lp-cover.jpg);
  190. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/lp-cover.jpg);
  191. }
  192.  
  193. .p-cov3 {
  194. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/pp-cover.jpg);
  195. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/pp-cover.jpg);
  196. }
  197.  
  198. .p-cov4 {
  199. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/la-cover.jpg);
  200. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/la-cover.jpg);
  201. }
  202.  
  203. .p-cov5 {
  204. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/an-cover.jpg);
  205. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/an-cover.jpg);
  206. }
  207.  
  208. .p-cov6 {
  209. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/photography/covers/se-cover.jpg);
  210. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/photography/covers/se-cover.jpg);
  211. }
  212.  
  213. .g-cov1 {
  214. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/graphic/covers/dc-cover.jpg);
  215. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/graphic/covers/dc-cover.jpg);
  216. }
  217.  
  218. .g-cov2 {
  219. background: -webkit-gradient(linear, left top, left bottom, from(rgba(65, 41, 63, 0.75)), to(rgba(65, 41, 63, 0.75))), url(photos/graphic/covers/ww-cover.jpg);
  220. background: linear-gradient(rgba(65, 41, 63, 0.75), rgba(65, 41, 63, 0.75)), url(photos/graphic/covers/ww-cover.jpg);
  221. }
  222.  
  223. .info {
  224. position: absolute;
  225. width: 100%;
  226. height: 100%;
  227. }
  228.  
  229. .info h3 {
  230. font-family: "Operetta 8", serif;
  231. font-weight: 400;
  232. color: #e0e0e0;
  233. text-shadow: 1px 1px black;
  234. font-size: 20px;
  235. margin: 0 auto;
  236. padding: 85px 0px 0 0px;
  237. text-align: center;
  238. text-transform: uppercase;
  239. width: 100%;
  240. }
  241.  
  242. .photoGrid {
  243. display: -ms-grid;
  244. display: grid;
  245. -ms-grid-columns: (minMax(250px, 1fr))[auto-fit];
  246. grid-template-columns: repeat(auto-fit, minMax(250px, 1fr));
  247. grid-gap: 5px 5px;
  248. width: 90%;
  249. margin: auto;
  250. }
  251.  
  252. .photoColumn {
  253. display: block;
  254. }
  255.  
  256. .contact {
  257. margin: 0 auto;
  258. }
  259.  
  260. .contact-me {
  261. text-align: center;
  262. }
  263.  
  264. .contact-me img {
  265. width: 60%;
  266. max-width: 450px;
  267. padding: 10px 0 20px 0;
  268. }
  269.  
  270. form {
  271. text-align: left;
  272. font-size: 13.5px;
  273. padding: 0px 20px 20px 20px;
  274. /* gives space on all text contained within border */
  275. margin: 0 auto;
  276. line-height: 30px;
  277. height: 80%;
  278. width: 70%;
  279. max-width: 500px;
  280. overflow: auto;
  281. text-transform: uppercase;
  282. color: #3f003c;
  283. }
  284.  
  285. input[type=submit] {
  286. background-color: #3f003c;
  287. color: #E9E9E9;
  288. border-radius: 5px;
  289. height: 35px;
  290. width: 100px;
  291. font-size: 15px;
  292. text-transform: uppercase;
  293. }
  294.  
  295. /* the below syntax removes the blue border in the input boxes when selected */
  296. input:focus, textarea:focus, select:focus {
  297. outline-offset: 0px !important;
  298. outline: none !important;
  299. }
  300.  
  301. /* the two syntaxes below change the color of highlighted text */
  302. ::-moz-selection {
  303. background: #E9E9E9;
  304. /* WebKit/Blink Browsers */
  305. }
  306. ::selection {
  307. background: #E9E9E9;
  308. /* WebKit/Blink Browsers */
  309. }
  310.  
  311. ::-moz-selection {
  312. background: #E9E9E9;
  313. /* Gecko Browsers */
  314. }
  315.  
  316. /* the below set of syntaxes removes the background color when autofill is used */
  317. input:-webkit-autofill,
  318. input:-webkit-autofill:hover,
  319. input:-webkit-autofill:focus,
  320. input:-webkit-autofill:active {
  321. -webkit-transition: background-color 5000s ease-in-out 0s;
  322. transition: background-color 5000s ease-in-out 0s;
  323. -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  324. }
  325.  
  326. #name {
  327. height: 30px;
  328. width: 100%;
  329. }
  330.  
  331. #email {
  332. height: 30px;
  333. width: 100%;
  334. }
  335.  
  336. #extra {
  337. height: 60px;
  338. width: 100%;
  339. }
  340.  
  341. footer {
  342. color: #7F7887;
  343. text-align: center;
  344. text-decoration: none;
  345. }
  346.  
  347. .fbIcon {
  348. /* class for the facebook icon in the footer */
  349. padding: 0 2px 8px 0;
  350. width: 25px;
  351. height: 25px;
  352. opacity: .7;
  353. }
  354.  
  355. .instaIcon {
  356. /* class for the instagram icon in the footer */
  357. padding: 0 0 8px 0;
  358. width: 25px;
  359. height: 25px;
  360. opacity: 0.7;
  361. }
  362.  
  363. @media screen and (max-width: 952px) {
  364. html, body {
  365. overflow-x: hidden;
  366. width: 100%;
  367. position: absolute;
  368. }
  369. nav li {
  370. margin-left: 0px;
  371. }
  372. .nav-links {
  373. position: absolute;
  374. right: 0px;
  375. height: 100%;
  376. top: 70px;
  377. background-color: #E9E9E9;
  378. opacity: .95;
  379. display: -webkit-box;
  380. display: -ms-flexbox;
  381. display: flex;
  382. -webkit-box-orient: vertical;
  383. -webkit-box-direction: normal;
  384. -ms-flex-direction: column;
  385. flex-direction: column;
  386. -webkit-box-align: center;
  387. -ms-flex-align: center;
  388. align-items: center;
  389. width: 35%;
  390. -webkit-transform: translateX(100%);
  391. transform: translateX(100%);
  392. -webkit-transition: -webkit-transform 0.5s ease-in;
  393. transition: -webkit-transform 0.5s ease-in;
  394. transition: transform 0.5s ease-in;
  395. transition: transform 0.5s ease-in, -webkit-transform 0.5s ease-in;
  396. z-index: 100;
  397. }
  398. .nav-links li {
  399. opacity: 0;
  400. padding: 45px 0px 0px 0px;
  401. }
  402. .nav-links li a {
  403. color: #7F7887;
  404. text-decoration: none;
  405. text-transform: uppercase;
  406. font-size: 14px;
  407. }
  408. .nav-links li a:hover {
  409. color: #3f003c;
  410. }
  411. nav ul li a::before {
  412. display: none;
  413. }
  414. .burger {
  415. display: block;
  416. padding: 20px;
  417. z-index: 150;
  418. position: static;
  419. }
  420. }
  421.  
  422. .nav-active {
  423. -webkit-transform: translateX(0%);
  424. transform: translateX(0%);
  425. }
  426.  
  427. @-webkit-keyframes navLinkFade {
  428. from {
  429. opacity: 0;
  430. -webkit-transform: translateX(50px);
  431. transform: translateX(50px);
  432. }
  433. to {
  434. opacity: 1;
  435. -webkit-transform: translateX(0px);
  436. transform: translateX(0px);
  437. }
  438. }
  439.  
  440. @keyframes navLinkFade {
  441. from {
  442. opacity: 0;
  443. -webkit-transform: translateX(50px);
  444. transform: translateX(50px);
  445. }
  446. to {
  447. opacity: 1;
  448. -webkit-transform: translateX(0px);
  449. transform: translateX(0px);
  450. }
  451. }
  452.  
  453. /* 3 code blocks below are to set up the hamburger menu to turn into an X once it's been clicked and the menu slides in from the right */
  454. /* this takes the top hamburger line and turns it -45 degrees to form one part of the X */
  455. .toggle .line1 {
  456. -webkit-transform: rotate(-45deg) translate(-5px, 6px);
  457. transform: rotate(-45deg) translate(-5px, 6px);
  458. }
  459.  
  460. /* this takes the middle hamburger line and turns it to 0 opacity */
  461. .toggle .line2 {
  462. opacity: 0;
  463. }
  464.  
  465. /* this takes the bottom hamnburger line and turns it 45 degrees to form the second part of the X */
  466. .toggle .line3 {
  467. -webkit-transform: rotate(45deg) translate(-5px, -6px);
  468. transform: rotate(45deg) translate(-5px, -6px);
  469. }
  470. /*# sourceMappingURL=style.css.map */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement