Advertisement
Dekamerron

Untitled

Jul 12th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.26 KB | None | 0 0
  1. $border: 3px solid gray;
  2. $border-light: 2px solid gray;
  3. $text-color: gray;
  4.  
  5. @mixin vertical-gradient($start-color) {
  6.     background: -webkit-linear-gradient($start-color, white);
  7. }
  8. @mixin horizontal-gradient($start-color) {
  9.     background: -webkit-linear-gradient(left, $start-color, white);
  10. }
  11. @mixin diagonal-gradient($start-color) {
  12.     background: -webkit-linear-gradient(left top, $start-color, white);
  13. }
  14. @mixin radial-gradient($start-color) {
  15.     background: radial-gradient($start-color, white);
  16. }
  17. @mixin color-div {
  18.     width: 100px;
  19.     height: 100px;
  20.     border-radius: 10px;
  21.     display: inline-block;
  22. }
  23. #wrapper {
  24.     width: 1000px;
  25.     height: 100%;
  26.     margin: auto;
  27.     border: $border;
  28.     text-align: center;
  29.     li {
  30.         list-style-type: none;
  31.         a {
  32.             text-decoration: none;
  33.             color: $text-color;
  34.         }
  35.     }
  36.     #main-header {
  37.         color: $text-color;
  38.         border: $border;
  39.         margin: 15px;
  40.         ul {
  41.             li {
  42.                 display: inline-block;
  43.                 border: $border-light;
  44.                 margin-right: 50px;
  45.                 a {
  46.                     display: inline-block;
  47.                     padding: 5px 20px;
  48.                     &:hover {
  49.                         color: white;
  50.                         @include vertical-gradient(gray);
  51.                         cursor: context-menu;
  52.                     }
  53.                 }
  54.             }
  55.         }
  56.     }
  57.     .radial, .linear {
  58.         border: $border;
  59.     }
  60.     .horizontal, .vertical, .diagonal, section, article {
  61.         border: $border-light;
  62.         margin: 15px;
  63.         color: $text-color;
  64.         padding-bottom: 10px;
  65.         h1 {
  66.             font-size: 17px;
  67.             text-decoration: underline;
  68.         }
  69.         h2 {
  70.             font-size: 13px;
  71.         }      
  72.     }
  73.     .innerContainer {
  74.         div {
  75.             @include color-div;
  76.         }
  77.     }
  78.     .linear article:nth-child(2) .innerContainer {
  79.         .purple {
  80.             @include vertical-gradient(purple);
  81.         }
  82.         .blue {
  83.             @include vertical-gradient(blue);
  84.         }
  85.         .green {
  86.             @include vertical-gradient(green);
  87.         }
  88.         .yellow {
  89.             @include vertical-gradient(yellow);
  90.         }
  91.         .orange {
  92.             @include vertical-gradient(orange);
  93.         }
  94.         .red {
  95.             @include vertical-gradient(red);
  96.         }
  97.     }
  98.     .linear article:nth-child(3) .innerContainer {
  99.         .purple {
  100.             @include horizontal-gradient(purple);
  101.         }
  102.         .blue {
  103.             @include horizontal-gradient(blue);
  104.         }
  105.         .green {
  106.             @include horizontal-gradient(green);
  107.         }
  108.         .yellow {
  109.             @include horizontal-gradient(yellow);
  110.         }
  111.         .orange {
  112.             @include horizontal-gradient(orange);
  113.         }
  114.         .red {
  115.             @include horizontal-gradient(red);
  116.         }
  117.     }
  118.     .linear article:nth-child(4) .innerContainer {
  119.         .purple {
  120.             @include diagonal-gradient(purple);
  121.         }
  122.         .blue {
  123.             @include diagonal-gradient(blue);
  124.         }
  125.         .green {
  126.             @include diagonal-gradient(green);
  127.         }
  128.         .yellow {
  129.             @include diagonal-gradient(yellow);
  130.         }
  131.         .orange {
  132.             @include diagonal-gradient(orange);
  133.         }
  134.         .red {
  135.             @include diagonal-gradient(red);
  136.         }
  137.     }
  138.     .radial {
  139.         .innerContainer {
  140.             padding: 10px;
  141.             .purple {
  142.                 @include radial-gradient(purple);
  143.             }
  144.             .blue {
  145.                 @include radial-gradient(blue);
  146.             }
  147.             .green {
  148.                 @include radial-gradient(green);
  149.             }
  150.             .yellow {
  151.                 @include radial-gradient(yellow);
  152.             }
  153.             .orange {
  154.                 @include radial-gradient(orange);
  155.             }
  156.             .red {
  157.                 @include radial-gradient(red);
  158.             }
  159.         }
  160.     }
  161.     footer {
  162.         text-align: center;
  163.  
  164.         ul {
  165.             padding: 0;
  166.         }
  167.         h3 {
  168.             color: $text-color;
  169.             font-size: 17px;
  170.             text-decoration: underline;
  171.         }
  172.         a:hover {
  173.             text-decoration: underline;
  174.         }
  175.     }
  176. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement