Advertisement
Guest User

Untitled

a guest
Jul 8th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.68 KB | None | 0 0
  1. body {
  2.     margin: 0;
  3.     font-size: 28px;
  4.     font-family: Arial, Helvetica, sans-serif;
  5.     width: 100%;
  6.     background: #bbb;
  7.     -webkit-user-select: none; /* Safari */        
  8.     -moz-user-select: none; /* Firefox */
  9.     -ms-user-select: none; /* IE10+/Edge */
  10.     user-select: none; /* Standard */
  11. }
  12.  
  13. header {
  14.     background-color: #f1f1f1;
  15.     padding: 1px;
  16. }
  17.  
  18. h2 {
  19.     margin: 1em 0em 0.5em 1em;
  20. }
  21.  
  22. #navbar {
  23.     overflow: hidden;
  24.     background-color: #03326f;
  25.     padding: 0px;
  26. }
  27.  
  28. #navbar ul {
  29.     list-style: none;
  30.     display: flex;
  31.     justify-content: space-between;
  32.     align-items: center;
  33.     padding: 0;
  34.     margin: 0.7em 1.5em 0.7em 1.5em;
  35. }
  36.  
  37. #navbar ul li a {
  38.     padding: 0;
  39.     border-radius: 5px;
  40.     transition: all 0.5s ease-in-out;
  41.     font: 18px verdana, sans-serif;
  42.     text-decoration: none;
  43.     color: #fff;
  44.     position: relative;
  45. }
  46.  
  47. #navbar ul li a:before {
  48.     content: "";
  49.     position: absolute;
  50.     width: 100%;
  51.     height: 2px;
  52.     bottom: 0;
  53.     left: 0;
  54.     background-color: #fff;
  55.     visibility: hidden;
  56.     -webkit-transform: scaleX(0);
  57.     transform: scaleX(0);
  58.     -webkit-transition: all 0.5s ease-in-out 0s;
  59.     transition: all 0.5s ease-in-out 0s;
  60. }
  61.  
  62. #navbar ul li a:hover:before {
  63.     visibility: visible;
  64.     -webkit-transform: scaleX(1);
  65.     transform: scaleX(1);
  66.     background-color: #fff;
  67. }
  68.  
  69. #navbar a {
  70.     float: left;
  71.     display: block;
  72.     color: #f2f2f2;
  73.     text-align: center;
  74.     padding: 14px 16px;
  75.     text-decoration: none;
  76.     font-size: 17px;
  77. }
  78.  
  79. /* adds an underline animation when the link is hovered over by the user */
  80. #quotelink a:before {
  81.   content: "";
  82.   position: absolute;
  83.   width: 100%;
  84.   height: 2px;
  85.   bottom: 0;
  86.   left: 0;
  87.   background-color: #000;
  88.   visibility: hidden;
  89.   -webkit-transform: scaleX(0);
  90.   transform: scaleX(0);
  91.   -webkit-transition: all 0.5s ease-in-out 0s;
  92.   transition: all 0.5s ease-in-out 0s;
  93. }
  94.  
  95. #quotelink a:hover:before {
  96.     visibility: visible;
  97.     -webkit-transform: scaleX(1);
  98.     transform: scaleX(1);
  99.     background-color: #000;
  100. }
  101.  
  102. #quotelink a{
  103.     position: relative;
  104.     color: #000;
  105.     text-decoration: none;
  106.     font-family: candara, sans-serif;
  107.     transition: all 0.5s ease-in-out;
  108. }
  109.  
  110. .container {
  111.     padding: 0px;
  112. }
  113.  
  114. .sticky {
  115.     position: fixed;
  116.     margin: 0 auto;
  117.     top: 0;
  118.     width: 100%;
  119. }
  120.  
  121. .sticky + .container {
  122.     padding-top: 60px;
  123. }
  124.  
  125. h1 {
  126.     font-size: 150%;
  127.     text-align: center;
  128.     padding: 0;
  129.     font-family: Candara, sans-serif;
  130. }
  131.  
  132. h2 {
  133.     font-size: 100%;
  134. }
  135.  
  136.  
  137. #content {
  138.     margin: 0em 1em 0em 1em;
  139.     text-align: center;
  140.     justify-content: space-between;
  141.     font: 20px verdana, sans-serif;
  142. }
  143.  
  144. /* Gallery
  145. ------------------------------------------------------------*/
  146.  
  147. .gallery {
  148.     padding-top: 50px;
  149.     list-style: none;
  150.     display: block;
  151.     margin: 1em;
  152.     justify-content: center; /* flex-start; */
  153.     overflow: hidden;
  154. }
  155.  
  156. .gallery li {
  157.     margin-right: 1em;
  158. }
  159.  
  160. .gallery img {
  161.     border: 3px solid #a2c7f7;
  162.     transition: all 1s ease-in-out;
  163.     border-radius: 3px;
  164.     display: flex;
  165.     width: 100%;
  166.     overflow: hidden;
  167. }
  168.  
  169. .gallery a {
  170.     display: inline-block;
  171. }
  172.  
  173. .gallery img:hover {
  174.     border: 3px solid #fff;
  175. }
  176.  
  177. .gallery li div.item {
  178.     position: relative;
  179.     overflow: hidden;
  180. }
  181.  
  182. .gallery li div.item span {
  183.     text-align: center;
  184.     position: absolute;
  185.     bottom: -50px;
  186.     left: 0;
  187.     width: 100%; /* must be equal to .gallery img width */
  188.     background: #ffffff;
  189.     background: rgba (255,255,255,.8);
  190.     padding: 0.7em 0 0.7em 0;
  191.     transition: all 0.75s ease-in-out;
  192. }
  193.  
  194. .gallery li div.item:hover span {
  195.     bottom: 0;
  196. }
  197.  
  198. span {
  199.     font: 15px candara, sans-serif;
  200. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement