|
| 1 | +/* ZipcodeWilmington 2015 */ |
| 2 | + |
| 3 | +/* ===================================== FONTS ========================================= */ |
| 4 | +@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700); |
| 5 | + |
| 6 | + |
| 7 | +/* ===================================== GLOBAL STYLE ========================================= */ |
| 8 | +* { |
| 9 | + margin: 0; |
| 10 | + padding: 0; |
| 11 | +} |
| 12 | + |
| 13 | +body { font: 14px/1.4 arial, sans-serif; background-color: #F5F5F5;);} |
| 14 | + |
| 15 | +article, aside, figure, footer, header, nav, section { display: block; } |
| 16 | +a:link, a:visited { |
| 17 | + text-decoration: none; |
| 18 | + |
| 19 | + color: inherit; |
| 20 | +} |
| 21 | + |
| 22 | +a:hover, a:active { |
| 23 | + text-decoration: none; |
| 24 | + |
| 25 | + color: inherit; |
| 26 | +} |
| 27 | + |
| 28 | +.group:before, |
| 29 | +.group:after { |
| 30 | + content:""; |
| 31 | + display:table; |
| 32 | +} |
| 33 | +.group:after { |
| 34 | + clear:both; |
| 35 | +} |
| 36 | +.group { |
| 37 | + zoom:1; /* For IE 6/7 (trigger hasLayout) */ |
| 38 | +} |
| 39 | + |
| 40 | +#main:focus { |
| 41 | + outline: none; |
| 42 | +} |
| 43 | + |
| 44 | + |
| 45 | +/* ===================================== HEADER STYLE ========================================= */ |
| 46 | + |
| 47 | +.main-header { |
| 48 | + width: 100%; |
| 49 | + height: 150px; |
| 50 | + |
| 51 | + background-color: #144e64;} |
| 52 | + |
| 53 | +.main-header .title { |
| 54 | + float: left; |
| 55 | + text-transform: uppercase; |
| 56 | + |
| 57 | + font-family: 'Droid Sans', sans-serif; |
| 58 | + font-weight: 400; |
| 59 | + font-size: 1em; |
| 60 | + |
| 61 | + width: 55%; |
| 62 | + |
| 63 | + padding-left: 5%; |
| 64 | + |
| 65 | + color: #fff; |
| 66 | + |
| 67 | + position: relative; |
| 68 | + top: 50%; |
| 69 | + transform: translateY(-50%); |
| 70 | +} |
| 71 | + |
| 72 | +.main-header .zip-link { |
| 73 | + float: right; |
| 74 | + |
| 75 | + width: 16%; |
| 76 | + height: 100%; |
| 77 | + |
| 78 | + background-color: white; |
| 79 | +} |
| 80 | + |
| 81 | +.main-header .lesson-link { |
| 82 | + float: right; |
| 83 | + |
| 84 | + width: 16%; |
| 85 | + height: 100%; |
| 86 | + |
| 87 | + background-color: #3c790a; |
| 88 | +} |
| 89 | + |
| 90 | +.main-header div { |
| 91 | + /* fix blurriness of children due to them |
| 92 | + being placed on half pixels */ |
| 93 | + -webkit-transform-style: preserve-3d; |
| 94 | + -moz-transform-style: preserve-3d; |
| 95 | + transform-style: preserve-3d; |
| 96 | +} |
| 97 | + |
| 98 | +.main-header div img { |
| 99 | + display: block; |
| 100 | + |
| 101 | + margin: auto; |
| 102 | + |
| 103 | + width: 55%; |
| 104 | + |
| 105 | + position: relative; |
| 106 | + top: 50%; |
| 107 | + transform: translateY(-50%); |
| 108 | +} |
| 109 | + |
| 110 | +/* page styles */ |
| 111 | +article {margin: 5%;} |
| 112 | +article p { margin-bottom: 20px;} |
| 113 | +section {margin: 5%;} |
| 114 | +h1 {font-weight: bold;} |
| 115 | +#result {border: 1px #aaa solid; padding:10px; height:30px; background:#eee;} |
| 116 | + |
| 117 | + |
| 118 | + |
0 commit comments