sashomaga

SASS

Feb 7th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.66 KB | None | 0 0
  1. *{
  2. margin: 0;
  3. padding: 0;
  4. }
  5. /* variables */
  6. $white: white;
  7. $main-color:  #B35EF3;
  8. $main-body-color: #9215F2;
  9. $border: 1px solid black;
  10. /*mixin*/
  11. @mixin all-border($size:14px)
  12. {
  13. border: $border;
  14. border-radius: $size;
  15. }
  16. @mixin clearfix{
  17. zoom:1;
  18. &:after{
  19. display:block;
  20. content:"";
  21. height:0;
  22. clear:both;} }
  23. @mixin linear-gradient($from, $to,$repeat:no-repeat) {
  24.     background-image: -webkit-linear-gradient(top, $from, $to);
  25.     background-image: -moz-linear-gradient(top, $from, $to);
  26.     background-image: -ms-linear-gradient(top, $from, $to);
  27.     background-image: -o-linear-gradient(top, $from, $to);
  28.     background-image: linear-gradient(to bottom, $from, $to);
  29.     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#{$from}', endColorstr='#{$to}',GradientType=0 );
  30.     background-repeat:$repeat;
  31. }
  32. /* elements */
  33. body
  34. {
  35.   & li a{text-decoration: none;}
  36.   width: 1450px;
  37.   height: 800px;
  38.   background-color: $main-body-color;
  39.   &>header{@include linear-gradient(#D492FE,#8F1AEF);}
  40.   article{@include all-border;
  41.         width: 1000px;
  42.         margin-left: 18px;
  43.         margin-top: 15px;
  44.         padding:20px;
  45.         color:$white;
  46.         font-size: 0.9em;
  47.          & p{font-size: 0.8em;}
  48.          & footer p{text-align: right;
  49.                     font-size: 0.8em; }
  50.         & time{font-family: consolas;}
  51.         & a{color:#D4A3F8} }               
  52. }
  53. aside{
  54.  
  55.   float: right;
  56.   color: $white;
  57.   margin-right: 50px;
  58.   font-size: 0.78em;
  59.   & li ul li{list-style-image: url('images/li-dot.png');
  60.            margin-left:30px;}
  61.   & h2{font-size: 1em}
  62.   & li{list-style: none;}
  63.   &>ul>li{@include all-border(5px);
  64.         margin-top: 30px;
  65.         padding: 20px;
  66.         width:260px;}
  67. }
  68. section
  69. {
  70. width: 1000px;
  71. float: left;
  72. }
  73. form
  74. {
  75.     margin-top: 20px;
  76.     margin-right: 100px;
  77.     color: $white;
  78.     & input{
  79.     width:120px;
  80.     height: 18px;
  81.     margin-top: 10px;
  82.     background:$main-color;
  83.     @include all-border;}
  84.     & button{background:$main-color;
  85.             padding:5px;
  86.             width: 70px;
  87.             margin-top: 10px;
  88.     @include all-border(10px);}
  89.     & label{font-size: 0.8em;}
  90. }
  91. footer{
  92. clear: both;
  93. font-weight: bold;
  94. color: $white;
  95. text-align: center;
  96. & p{padding-top: 40px;}
  97. }
  98. nav
  99. {
  100.   @include clearfix;
  101.   @include all-border;
  102.   margin-left: 30px;
  103.   width: 1080px;
  104.   height: 45px;
  105.   color: $white;
  106.   margin-top: 30px;
  107.   margin-bottom: 20px;
  108.   & a{color: $white;
  109.      font-size: 1.1em;}
  110.   & li{padding: 10px;}
  111.   & ul{margin-left: 10px;}
  112. }
  113. /* id */
  114. #reg-form-container
  115. {
  116. float: right;
  117. }
  118. #logo-container
  119. {
  120. float: left;
  121. margin-left:10px;
  122. margin-top: 20px;
  123. img{width:310px}
  124. }
  125. #header-container
  126. {
  127. @include clearfix;
  128. }
  129. #main-nav-list>li
  130. {
  131.     list-style: none;
  132.     float: left;   
  133. }
  134. #main-nav-list ul
  135. {
  136. display:none;
  137. }
Advertisement
Add Comment
Please, Sign In to add comment