Advertisement
SWIZZLTU

BANDYMO CSS

Mar 11th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.67 KB | None | 0 0
  1. /*
  2.     Temos pavadinimas: SWIZZ HTML5/CSS3 Testas
  3.     Data: 2014 kovo 8d.
  4.     Aprasymas: Paprastas HTML5/CSS3 isdestymas ir 'responsive' sukurimas
  5.     Versija: 1.0
  6.     Autorius: Tomas Balciunas
  7.     Autoriaus tinklapis: http://swizz1.deviantart.com
  8. */
  9.  
  10. body {
  11.     background-color: #E9E9E9;
  12.     color: #999;
  13.     font-size: 90%; /* Paprastai būna 14px */
  14.     font-family: Arial, 'Lucida Sans Unicode';
  15.     line-height: 1,5;
  16.     text-align: left;
  17. }
  18.  
  19. a {
  20.     text-decoration: none; 
  21. }
  22.  
  23. a:link, a:visited {
  24.     color: #0CC;
  25. }
  26.  
  27. a:hover, a:active {
  28.     background-color: #0CC;
  29.     color: #FFF;
  30.     border-radius: 3px;
  31.     -moz-border-radius: 3px;
  32.     -webkit-border-radius: 3px;
  33.  
  34. }
  35.  
  36. .body {
  37.     margin: 0 auto;
  38.     width: 80%;
  39.     clear: both;
  40. }
  41.  
  42. .mainHeader img {
  43.     width:40%;
  44.     height: auto;
  45.     margin: 2% 0;  
  46. }
  47.  
  48. .mainHeader nav {
  49.     background-color: #666;
  50.     height: 40px;
  51.     border-radius: 3px;
  52.     -moz-border-radius: 3px;
  53.     -webkit-border-radius: 3px;
  54. }
  55.  
  56. .mainHeader nav ul {
  57.     list-style: none;
  58.     margin: 0 auto;
  59. }
  60.  
  61. .mainHeader nav ul li {
  62.     float: left;
  63.     display: inline;   
  64. }
  65.  
  66. .mainHeader nav a:link, mainHeader nav a:visited {
  67.     color: #FFF;
  68.     display: inline-block;
  69.     padding: 12px 15px;
  70.     height: 16px;
  71. }
  72.  
  73. .mainHeader nav a:hover, .mainHeader nav a:active,
  74. .mainHeader nav .active a:link, .mainHeader nav .active a:visited {
  75.     background-color: #0CC;
  76.     color:#FFF;
  77.     text-shadow: none;
  78. }
  79.  
  80. .mainHeader nav ul li a {
  81.     border-radius: 3px;
  82.     -moz-border-radius: 3px;
  83.     -webkit-border-radius: 3px;
  84. }
  85.  
  86. .mainContent {
  87.     line-height: 25px;
  88.     border-radius: 3px;
  89.     -moz-border-radius: 3px;
  90.     -webkit-border-radius: 3px;
  91. }
  92.  
  93. content {
  94.     display: block;
  95. }
  96.  
  97. .content {
  98.     width: 70%;
  99.     float: left;
  100. }
  101.  
  102. .topcontent {
  103.     background-color: #FFF;
  104.     color: #000;
  105.     border-radius: 3px;
  106.     -moz-border-radius: 3px;
  107.     -webkit-border-radius: 3px;
  108.     padding: 3% 5%;
  109.     margin-top: 2%;
  110. }
  111.  
  112. .bottomcontent {
  113.     background-color: #FFF;
  114.     color: #000;
  115.     border-radius: 3px;
  116.     -moz-border-radius: 3px;
  117.     -webkit-border-radius: 3px;
  118.     padding: 3% 5%;
  119.     margin-top: 2%;
  120. }
  121.  
  122. .post-info {
  123.     font-style: italic;
  124.     color: #CCC;
  125.     font-size: 85%;
  126. }
  127.  
  128. .top-sidebar {
  129.     width: 21%;
  130.     float: left;
  131.     background-color: #333;
  132.     border-radius: 3px;
  133.     -moz-border-radius: 3px;
  134.     -webkit-border-radius: 3px;
  135.     padding: 2% 3%;
  136.     margin: 1.4% 0 2% 3%;
  137. }
  138.  
  139. .middle-sidebar {
  140.     width: 21%;
  141.     float: left;
  142.     background-color: #333;
  143.     border-radius: 3px;
  144.     -moz-border-radius: 3px;
  145.     -webkit-border-radius: 3px;
  146.     padding: 2% 3%;
  147.     margin: 0 0 2% 3%;
  148. }
  149.  
  150. .bottom-sidebar {
  151.     width: 21%;
  152.     float: left;
  153.     background-color: #333;
  154.     border-radius: 3px;
  155.     -moz-border-radius: 3px;
  156.     -webkit-border-radius: 3px;
  157.     padding: 2% 3%;
  158.     margin: 0 0 2% 3%;
  159. }
  160.  
  161. .mainFooter {
  162.     width: 100%;
  163.     height: 40px;
  164.     float: left;
  165.     background-color: #666;
  166.     border-radius: 3px;
  167.     -moz-border-radius: 3px;
  168.     -webkit-border-radius: 3px;
  169.     margin: 2% 0 2% 0; 
  170. }
  171.  
  172. .mainFooter p {
  173.     width: 92%;
  174.     color: #FFF;
  175.     margin: 12px auto;
  176. }
  177.  
  178. @media only screen and (min-width: 150px) and (max-width: 600px)
  179. {
  180.     .body {
  181.         width: 98%;
  182.         font-size: 90%;
  183.     }
  184.  
  185.     .mainHeader img {
  186.         width:100%;
  187.     }
  188.    
  189.     .mainHeader nav {
  190.         height: 160px;
  191.     }
  192.    
  193.     .mainHeader nav ul {
  194.         padding-left: 0;
  195.     }
  196.    
  197.     .mainHeader nav ul li {
  198.         width: 100%;
  199.         text-align: center;
  200.     }
  201.    
  202.     .mainHeader nav a:link, mainHeader nav a:visited {
  203.         padding: 12px 15px;
  204.         height: 16px;
  205.         display: block;
  206.     }
  207.    
  208.     .content {
  209.         width: 100%;
  210.         float: left;
  211.         margin-top: 2%;
  212.     }
  213.    
  214.     .post-info {
  215.         display: none; 
  216.     }
  217.    
  218.     .topcontent {
  219.         margin: 2% 0 4% 0;
  220.     }
  221.    
  222.     .bottomcontent {
  223.         margin: 2% 0 2% 0;
  224.     }
  225.    
  226.     .top-sidebar, .middle-sidebar, .bottom-sidebar {
  227.         width: 94%;
  228.         padding: 2% 3%;
  229.         margin: 1.4% 0 2% 0;
  230.     }
  231. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement