vonko1988

CSS_layout_homework_task3.css

Feb 16th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.38 KB | None | 0 0
  1. /*Resets*/
  2.  
  3. div,header,input,form,h1,section,article {
  4.     margin:0;
  5.     padding:0;
  6. }
  7.  
  8.  
  9. body {
  10.     color:#9d9d9d;
  11.     background:black;
  12. }
  13.  
  14. /*Here we style the outter window*/
  15.  
  16. div#window {
  17.     background:#424242;
  18.     width:45em;
  19.     border:1px solid #676565;
  20.     border-radius:0.5em;
  21.     margin:0.8em 1em;
  22. }
  23.  
  24. /*There is a hard-to notice gradient in the bottom of the header*/
  25.  
  26. header {
  27.     background: #383439; /* Old browsers */
  28. background: -moz-linear-gradient(top,  #383439 0%, #383439 73%, #2b2b2b 100%); /* FF3.6+ */
  29. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#383439), color-stop(73%,#383439), color-stop(100%,#2b2b2b)); /* Chrome,Safari4+ */
  30. background: -webkit-linear-gradient(top,  #383439 0%,#383439 73%,#2b2b2b 100%); /* Chrome10+,Safari5.1+ */
  31. background: -o-linear-gradient(top,  #383439 0%,#383439 73%,#2b2b2b 100%); /* Opera 11.10+ */
  32. background: -ms-linear-gradient(top,  #383439 0%,#383439 73%,#2b2b2b 100%); /* IE10+ */
  33. background: linear-gradient(to bottom,  #383439 0%,#383439 73%,#2b2b2b 100%); /* W3C */
  34. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#383439', endColorstr='#2b2b2b',GradientType=0 ); /* IE6-9 */
  35.     padding:0.5em;
  36.     border-radius:0.5em 0.5em 0 0;
  37. }
  38.  
  39. /*I decided to put the projector marker like a background-image to exercise it*/
  40.  
  41. form {
  42.     padding:0.3em 0.4em;
  43.     background-image:url("dot.png");
  44.     background-repeat:no-repeat;
  45.     background-position:43.6em 2.8em;
  46. }
  47.  
  48. /*The labels and inputs are precisely adjusted with relative positioning*/
  49.  
  50. label {
  51.     color:#ffffff;
  52.     font-size:1.5em;
  53.     margin-left:0.9em;
  54.     margin-right:0.5em;
  55.     position:relative;
  56.     bottom:0.6em;
  57. }
  58.  
  59. input {
  60.     position:relative;
  61.     bottom:1.4em;
  62.     margin-left:1.2em;
  63.     padding:0 0.3em 0.3em 0.5em;
  64. }
  65.  
  66. input[type="submit"] {
  67.     color:#ffbcb7;
  68.     border:1px solid white;
  69.     border-radius:0.8em;
  70.     background:#f26e70;
  71.     margin-left:3.6em;
  72.     padding:0.5em 1.3em 0.5em 1.3em;
  73.     box-shadow: inset 0px -10px 2px #ef080b; /*This creates the 3D effect of the button*/
  74. }
  75. /*Styling if the section-nothing special*/
  76.  
  77. section {
  78.     padding:0 0.5em 0.5em 0.5em;
  79. }
  80.  
  81. h1 {
  82.     color:#f0da38;
  83.     font-size:2em;
  84.     font-weight:lighter;
  85.     margin:0.5em 0 0.4em 0.2em;
  86. }
  87.  
  88.  
  89. article {
  90.     padding:0.3em;
  91. }
  92.  
  93. a {
  94.     text-decoration:none;
  95.     color:#d9d9d9;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment