Advertisement
gitarnik

Sass

Mar 31st, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.22 KB | None | 0 0
  1. $baseFontSize: 16px;
  2. $bgColor: #FFF;
  3. $defaultTextColour: rgb(255,25,233);
  4.  
  5. body {
  6.     font-size: $baseFontSize;
  7. }
  8.  
  9. h1 {
  10.     font-size: $baseFontSize * 3;
  11. }
  12.  
  13.  
  14. @mixin visually-hidden {
  15.         visibility: hidden;
  16.         display: none;
  17. }
  18.  
  19. #validationErrorMessage {
  20.     color: red;
  21.     @include visually-hidden;
  22. }
  23.  
  24. #mainNavMenu {
  25.   width: 100%;
  26.   height: 50px;
  27.   ul { list-style-type: none; }
  28.   li {
  29.     float: left;
  30.     a { font-size: 20px; }
  31.   }
  32. }
  33.  
  34.  
  35. .awesomeBox {
  36.     border: {
  37.         style: solid;
  38.         top: {
  39.             width: 100px;
  40.             color: blue;
  41.         }
  42.         bottom: {
  43.             width: 200px;
  44.             color: red;
  45.         }
  46.     }
  47. }
  48.  
  49. $kolor: darken(red, 30%);
  50. p {
  51.     color: $kolor;
  52. }
  53.  
  54.  
  55. $roznica: 10px;
  56. $max: 100px;
  57. $aktualny: $max;
  58.  
  59. @for $i from 1 through 6 {
  60.     h#{$i} { width: $aktualny  }
  61.     $aktualny: $aktualny - $roznica;
  62. }
  63.  
  64.  
  65. .information {
  66.     font-size: 10pt;
  67.     color: black;
  68.     border-width: 10px;
  69. }
  70.  
  71. .warning {
  72.     @extend .information;
  73.     color: orange;
  74. }
  75.  
  76. .error {
  77.     @extend .information;
  78.     color: red;
  79. }
  80.  
  81.  
  82. a {
  83.     font-size: 100px;
  84.     &:hover { font-size: 200px; }
  85.     &:visited { text-decoration: underline; }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement