vonko1988

CSS_sass_homework_task1.css

Feb 22nd, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.63 KB | None | 0 0
  1. /*The usual resets*/
  2. body, header, div, h1, a, form, label, input, nav, ul, li, section, article, aside, footer, p {
  3.   margin: 0;
  4.   padding: 0;
  5. }
  6.  
  7. /*Here some variables wii be defined*/
  8. /*Here some mixins will be defined*/
  9. body {
  10.   padding: 0 0.3em 0 1em;
  11.   color: white;
  12.   background: #d392fd;
  13.   background: -moz-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 20%, #9215f2 100%);
  14.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d392fd), color-stop(0%, #d392fd), color-stop(20%, #9215f2), color-stop(100%, #9215f2));
  15.   background: -webkit-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 20%, #9215f2 100%);
  16.   background: -o-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 20%, #9215f2 100%);
  17.   background: -ms-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 20%, #9215f2 100%);
  18.   background: linear-gradient(to bottom, #d392fd 0%, #d392fd 0%, #9215f2 20%, #9215f2 100%);
  19.   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from-color', endColorstr='$to-color',GradientType=0 );
  20.   /*Here we style the logo and reg-form*/
  21.   /*Here we style the navigation*/
  22.   /*The styling of the section on the left*/
  23.   /*Styling of the sidebar on the right*/
  24. }
  25. body div#header-container {
  26.   zoom: 1;
  27.   padding: 1.5em 5em 0 0.8em;
  28. }
  29. body div#header-container:after {
  30.   content: "";
  31.   display: block;
  32.   height: 0;
  33.   clear: both;
  34. }
  35. body div#header-container div#logo-container {
  36.   float: left;
  37. }
  38. body div#header-container div#reg-form-container {
  39.   float: right;
  40. }
  41. body div#header-container div#reg-form-container label {
  42.   color: white;
  43. }
  44. body div#header-container div#reg-form-container input {
  45.   background: #b35ef3;
  46.   margin-bottom: 0.5em;
  47.   border: 1px solid #603382;
  48.   border-radius: 1em;
  49. }
  50. body div#header-container div#reg-form-container input:nth-of-type(2) {
  51.   margin-left: 1px;
  52. }
  53. body div#header-container div#reg-form-container button {
  54.   background: #c588f3;
  55.   color: white;
  56.   border: 1px outset #603382;
  57.   border-radius: 0.7em;
  58.   padding: 0.3em 0.8em 0.3em 0.8em;
  59. }
  60. body nav > ul {
  61.   border: 1px solid black;
  62.   border-radius: 0.8em;
  63.   list-style-type: none;
  64.   margin: 1em 0 2em 1.5em;
  65.   width: 67%;
  66. }
  67. body nav > ul > li {
  68.   display: inline-block;
  69.   padding: 0.8em 0.4em 0.5em 1.3em;
  70.   cursor: pointer;
  71. }
  72. body nav > ul > li a {
  73.   text-decoration: none;
  74.   font-size: 1.2em;
  75.   color: white;
  76. }
  77. body nav > ul > li ul {
  78.   display: none;
  79.   position: absolute;
  80. }
  81. body nav > ul > li:hover a:hover {
  82.   text-decoration: underline;
  83. }
  84. body nav > ul > li:hover > ul {
  85.   background: #d392fd;
  86.   background: -moz-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 100%, #9215f2 100%);
  87.   background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d392fd), color-stop(0%, #d392fd), color-stop(100%, #9215f2), color-stop(100%, #9215f2));
  88.   background: -webkit-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 100%, #9215f2 100%);
  89.   background: -o-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 100%, #9215f2 100%);
  90.   background: -ms-linear-gradient(top, #d392fd 0%, #d392fd 0%, #9215f2 100%, #9215f2 100%);
  91.   background: linear-gradient(to bottom, #d392fd 0%, #d392fd 0%, #9215f2 100%, #9215f2 100%);
  92.   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$from-color', endColorstr='$to-color',GradientType=0 );
  93.   display: block;
  94.   border: 1px solid black;
  95.   border-radius: 0.5em;
  96.   padding: 0 0.2em;
  97.   z-index: 5;
  98. }
  99. body nav > ul > li:hover > ul li {
  100.   display: block;
  101.   padding: 0.8em 0.3em;
  102.   border-bottom: 1px solid black;
  103. }
  104. body nav > ul > li:hover > ul li:last-of-type {
  105.   border-bottom: none;
  106. }
  107. body section {
  108.   width: 64%;
  109.   float: left;
  110. }
  111. body section article {
  112.   border: 1px solid black;
  113.   border-radius: 0.8em;
  114.   padding: 1.3em 0.8em 1.5em 1.1em;
  115.   margin-bottom: 2em;
  116. }
  117. body section article h1 {
  118.   margin-bottom: 0.3em;
  119.   padding-left: 0.3em;
  120. }
  121. body section article footer {
  122.   text-align: right;
  123.   margin-top: 0.4em;
  124. }
  125. body section article footer a {
  126.   color: #bc78f7;
  127.   text-decoration: none;
  128. }
  129. body aside {
  130.   width: 30%;
  131.   float: right;
  132.   margin-right: 3em;
  133.   margin-top: 1em;
  134. }
  135. body aside > ul {
  136.   list-style-type: none;
  137. }
  138. body aside > ul > li {
  139.   border: 1px solid black;
  140.   border-radius: 0.2em;
  141.   margin-bottom: 1em;
  142.   padding: 0 1em 1em 1em;
  143. }
  144. body aside > ul > li:nth-of-type(2) ul {
  145.   padding-left: 3em;
  146.   list-style-image: url("images/li-dot.png");
  147. }
  148. body aside > ul > li a {
  149.   text-decoration: none;
  150.   color: #bc78f7;
  151. }
  152. body > footer {
  153.   zoom: 1;
  154.   text-align: center;
  155.   margin-bottom: 2em;
  156. }
  157. body > footer:before {
  158.   clear: both;
  159.   content: "";
  160.   height: 0;
  161.   display: block;
  162. }
Advertisement
Add Comment
Please, Sign In to add comment