HTML

5.8_varosha.css

Nov 18th, 2016
181
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.88 KB | None | 0 0
  1. *{
  2.     /* Universal reset: */
  3.     margin:0;
  4.     padding:0;
  5. }
  6.  
  7. header,footer,
  8. article,section,
  9. hgroup,nav,
  10. figure{
  11.     /* Giving a display value to the HTML5 rendered elements: */
  12.     display:block;
  13. }
  14.  
  15. body{
  16.     /* Setting the default text color, size, page background and a font stack: */
  17.     font-size:0.825em;
  18.     color:#fcfcfc;
  19.     background-color:#355664;
  20.     font-family:Arial, Helvetica, sans-serif;
  21. }
  22.  
  23. /* Hyperlink Styles: */
  24.  
  25. a, a:visited {
  26.     color:#0196e3;
  27.     text-decoration:none;
  28.     outline:none;
  29. }
  30.  
  31. a:hover{
  32.     text-decoration:underline;
  33. }
  34.  
  35. a img{
  36.     border:none;
  37. }
  38.  
  39. /* Headings: */
  40.  
  41. h1,h2,h3{
  42.     font-family:"Myriad Pro","Helvetica Neue",Helvetica,Arial,Sans-Serif;
  43.     text-shadow:0 1px 1px black;
  44. }
  45.  
  46. h1{
  47.     /* The logo text */
  48.     font-size:3.5em;
  49.     padding:0.5em 0 0;
  50.     text-transform:uppercase;
  51. }
  52.  
  53. h3{
  54.     /* The slogan text */
  55.     font-family:forte,"Myriad Pro","Helvetica Neue",Helvetica,Arial,Sans-Serif;
  56.     font-size:2em;
  57.     font-weight:normal;
  58.     margin:0 0 1em;
  59. }
  60.  
  61.  
  62. h2{
  63.     font-size:2.2em;
  64.     font-weight:normal;
  65.     letter-spacing:0.01em;
  66.     text-transform:uppercase;
  67. }
  68.  
  69. p{
  70.     line-height:1.5em;
  71.     padding-bottom:1em;
  72.     font-family:Helvetica;
  73. }
  74.  
  75. .line{
  76.     /* The dividing line: */
  77.     height:1px;
  78.     background-color:#24404c;
  79.     border-bottom:1px solid #416371;
  80.     margin:1em 0;
  81.     overflow:hidden;
  82. }
  83.  
  84. article .line{
  85.     /* The dividing line inside of the article is darker: */
  86.     background-color:#15242a;
  87.     border-bottom-color:#204656;
  88.     margin:1.3em 0;
  89. }
  90.  
  91. footer .line{
  92.     margin:2em 0;
  93. }
  94.  
  95. nav{
  96.     background:url(img/gradient_light.jpg) repeat-x 50% 50% #f8f8f8;
  97.     padding:0 5px;
  98.     position:absolute;
  99.     right:0;
  100.     top:4em;
  101.    
  102.     border:1px solid #FCFCFC;
  103.  
  104.     -moz-box-shadow:0 1px 1px #333333;
  105.     -webkit-box-shadow:0 1px 1px #333333;
  106.     box-shadow:0 1px 1px #333333;
  107. }
  108.  
  109. /* The clearfix hack to clear the floats: */
  110.  
  111. .clear:after{
  112.     content: ".";
  113.     display: block;
  114.     height: 0;
  115.     clear: both;
  116.     visibility: hidden;
  117. }
  118.  
  119. /* The navigation styling: */
  120.  
  121. nav ul li{
  122.     display:inline;
  123. }
  124.  
  125. nav ul li a,
  126. nav ul li a:visited{
  127.     color:#565656;
  128.     display:block;
  129.     float:left;
  130.     font-size:1.25em;
  131.     font-weight:bold;
  132.     margin:5px 2px;
  133.     padding:7px 10px 4px;
  134.     text-shadow:0 1px 1px white;
  135.     text-transform:uppercase;
  136. }
  137.  
  138. nav ul li a:hover{
  139.     text-decoration:none;
  140.     background-color:#f0f0f0;
  141. }
  142.  
  143. nav, article, nav ul li a,figure{
  144.     /* Applying CSS3 rounded corners: */
  145.     -moz-border-radius:10px;
  146.     -webkit-border-radius:10px;
  147.     border-radius:10px;
  148. }
  149.  
  150. /* Article styles: */
  151.  
  152. #page{
  153.     width:960px;
  154.     margin:0 auto;
  155.     position:relative;
  156. }
  157.  
  158. article{
  159.     background-color:#213E4A;
  160.     margin:3em 0;
  161.     padding:20px;
  162.    
  163.     text-shadow:0 2px 0 black;
  164. }
  165.  
  166. figure{
  167.     border:3px solid #142830;
  168.     float:right;
  169.     height:300px;
  170.     margin-left:15px;
  171.     overflow:hidden;
  172.     width:500px;
  173. }
  174.  
  175. figure:hover{
  176.     -moz-box-shadow:0 0 2px #4D7788;
  177.     -webkit-box-shadow:0 0 2px #4D7788;
  178.     box-shadow:0 0 2px #4D7788;
  179. }
  180.  
  181. figure img{
  182.     margin-left:-60px;
  183. }
  184.  
  185. /* Footer styling: */
  186.  
  187. footer{
  188.     margin-bottom:30px;
  189.     text-align:center;
  190.     font-size:0.825em;
  191. }
  192.  
  193.  
  194. footer p{
  195.     margin-bottom:-2.5em;
  196.     position:relative;
  197. }
  198.  
  199. footer a,footer a:visited{
  200.     color:#cccccc;
  201.     background-color:#213e4a;
  202.     display:block;
  203.     padding:2px 4px;
  204.     z-index:100;
  205.     position:relative;
  206. }
  207.  
  208. footer a:hover{
  209.     text-decoration:none;
  210.     background-color:#142830;
  211. }
  212.  
  213. footer a.by{
  214.     float:left;
  215.  
  216. }
  217.  
  218. footer a.up{
  219.     float:right;
  220. }
  221.  
  222.  
  223. /* Only used for the demo page at tutorialzine: */
  224.  
  225. #backToTheTut{
  226.     background-color:#F5F5F5;
  227.     border:1px solid white;
  228.     height:60px;
  229.     left:-20px;
  230.     padding:12px 20px 0 40px;
  231.     position:fixed;
  232.     top:200px;
  233.     width:380px;
  234.     z-index:200;
  235.    
  236.     -moz-border-radius:4px;
  237.     -webkit-border-radius:4px;
  238.     border-radius:4px;
  239. }
  240.  
  241. .title{
  242.     color:#666666;
  243.     font-size:2em;
  244.     font-weight:bold;
  245.     text-shadow:0 1px 1px white;
  246. }
  247.  
  248. #backToTheTut a{
  249.     font-size:10px;
  250.     text-transform:uppercase;
  251. }
  252.  
  253. #backToTheTut img{
  254.     float:left;
  255.     margin-right:15px;
  256. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment