|
| 1 | +/****** import font-family from GOOGLE-FONT-API ******/ |
| 2 | +@import url("https://fonts.googleapis.com/css?family=Josefin+Sans:300,400,600,700"); |
1 | 3 |
|
2 | | -body{ |
3 | | - background-color:#FF6347; |
| 4 | +/****** fix the size of window - respo - ******/ |
| 5 | +* { |
| 6 | + margin: 0; |
| 7 | + padding: 0; |
| 8 | + box-sizing: border-box; |
4 | 9 | } |
5 | 10 |
|
| 11 | +/****** some global style ******/ |
| 12 | +body { |
| 13 | + position: relative; |
| 14 | + width: 100vw; |
| 15 | + color: #FFFAFA; |
| 16 | +} |
| 17 | + |
| 18 | +/****** global container for the site ******/ |
| 19 | +.wrapper { |
| 20 | + box-sizing: border-box; |
| 21 | + position: relative; |
| 22 | + width: 100%; |
| 23 | + width: 100vw; |
| 24 | + min-height: 100vh; |
| 25 | + background-color:#FF6347; /* #fde201*/ |
| 26 | + overflow-x: hidden; |
| 27 | +} |
| 28 | + |
| 29 | +/****** fix position & mv in IE9 ******/ |
| 30 | +.landing { |
| 31 | + width: 100%; |
| 32 | + min-height: 350px; |
| 33 | + position: absolute; |
| 34 | + top: 50%; |
| 35 | + -ms-transform: translate(-50%, -50%); |
| 36 | + transform: translateY(-50%); |
| 37 | +} |
| 38 | + |
| 39 | +/****** style image ******/ |
| 40 | +/* div.image { |
| 41 | + height: 150px; |
| 42 | + width: 100%; |
| 43 | +} */ |
| 44 | +img { |
| 45 | + width: auto; |
| 46 | + max-height: 100%; |
| 47 | + display: block; |
| 48 | + margin: 0 auto; |
| 49 | + /* box-shadow: rgb(97, 94, 83) 5px 5px 5px 5px;*/ |
| 50 | + |
| 51 | +} |
| 52 | + |
| 53 | +/****** style main heading `title` ******/ |
6 | 54 | h1 { |
7 | 55 | text-align: center; |
| 56 | + font-family: "Josefin Sans", sans-serif; |
8 | 57 | font-weight: 700; |
9 | 58 | font-size: 6em; |
| 59 | + margin-top: 18px; |
| 60 | + letter-spacing: -3px; |
10 | 61 | text-shadow: rgb(97, 94, 83) 1px 0 10px; |
| 62 | + |
| 63 | + @media (min-width: 481px) and (max-width: 767px) { |
| 64 | + font-size: 4.5em; |
| 65 | + } |
| 66 | + @media (min-width: 320px) and (max-width: 480px) { |
| 67 | + font-size: 4em; |
| 68 | + } |
| 69 | +} |
| 70 | + |
| 71 | +/****** style description `about-us` ******/ |
| 72 | +.about-us { |
| 73 | + text-align: center; |
| 74 | + font-family: "Josefin Sans", sans-serif; |
| 75 | + font-weight: 400; |
| 76 | + font-size: 1em; |
| 77 | + line-height: 1.5; |
| 78 | + color: #d3d3d3; |
| 79 | + background-color: #22222262; |
| 80 | + padding: 10px; |
| 81 | +} |
| 82 | + |
| 83 | +/****** style links ******/ |
| 84 | +/* all links */ |
| 85 | +div.links{ |
| 86 | + width: 60%; |
| 87 | + margin: 0 auto; |
| 88 | + box-sizing: border-box; |
| 89 | + padding-top: 36px; |
| 90 | + |
| 91 | + /* responsive */ |
| 92 | + @media (min-width: 800px) { |
| 93 | + width: 80%; |
| 94 | + } |
| 95 | + @media (min-width: 1000px) { |
| 96 | + width: 70%; |
| 97 | + } |
| 98 | + @media (min-width: 1200px) { |
| 99 | + width: 60%; |
| 100 | + } |
| 101 | +} |
| 102 | +/* single link */ |
| 103 | +a.link { |
| 104 | + box-sizing: border-box; |
| 105 | + display: inline-block; |
| 106 | + padding: 5px; |
| 107 | + text-align: center; |
| 108 | + min-height: 30px; |
| 109 | + text-decoration: none; |
| 110 | + color: black; |
| 111 | + font-weight: normal; /* 400 */ |
| 112 | + font-size: 18px; |
| 113 | + border-bottom: 1px solid black; |
| 114 | + white-space: nowrap; |
| 115 | + font-family: "Josefin Sans", sans-serif; |
| 116 | + padding: 10px; |
| 117 | +} |
| 118 | +/* hover effect in links */ |
| 119 | +a:hover { |
| 120 | + background-color: black; |
| 121 | + color: white; |
| 122 | +} |
| 123 | +/* responsive links - fix */ |
| 124 | +@media (min-width: 320px) and (max-width: 830px) { |
| 125 | + div.links{ |
| 126 | + width: 90%; |
| 127 | + display: block; |
| 128 | + flex-flow: none; |
| 129 | + |
| 130 | + justify-content: none; |
| 131 | + } |
| 132 | + a.link { |
| 133 | + display: inline-block; |
| 134 | + width: 100%; |
| 135 | + border: 1px solid black; |
| 136 | + font-size: 17px; |
| 137 | + margin-bottom: 12px; |
| 138 | + font-weight: 300; |
| 139 | + } |
| 140 | + |
| 141 | + h1{ |
| 142 | + margin-top: 18px; |
| 143 | + } |
11 | 144 | } |
0 commit comments