]> jfr.im git - irc/freenode/web-7.0.git/blame - css/mock2.css
Margin
[irc/freenode/web-7.0.git] / css / mock2.css
CommitLineData
cc545bdc 1/* reset css for browser compat */
2* {
3 margin: 0;
4 padding: 0;
5 box-sizing: border-box;
6}
7
8body {
9 font-family: Verdana, Helvetica, sans-serif;
10 font-size: 16px;
11 color: #222222;
12}
13
14/* navbar */
15.navbar {
16 width: 100%;
17 height: 50px;
18 background-color: white;
19 position: fixed;
20 left: 0;
21 right: 0;
22 top: 0;
23 display: flex;
24 flex-wrap: nowrap;
25 align-items: center;
26 border-bottom: 1px solid #ccc;
27 z-index: 100;
28}
29.nlogo {
30 height: 40px;
31}
32/* navigation links */
33.navlinks {
34 position: relative;
35 display: table;
36 height: 50px;
37 margin: 0 20px;
38 list-style-type: none;
39}
40
41.navlinks > li {
42 text-decoration: none;
43 font-size: 20px;
44 color: black;
45 float: left;
46 display: table-cell;
47 margin: 0 15px;
48 padding-top: 25px;
49 transform: translate(0, -25%); /* I have no idea how or why this works but it just does. */
50 cursor: pointer; /* for pseudo-links to still feel like links */
51}
52
53/* main */
54.container {
55 margin: 51px 0 0; /* merged margins into one */
56 padding: 0;
57 width: 100%;
58 position: relative;
59 height: auto;
60 min-height: 100%; /* height is needed for some properties */
61}
62
63/* jumbotron */
64.jumbotron {
65 color: white;
66 height: 50%;
67 width: 100%;
68 top: 50%;
69 margin: 5% 0;
70 position: relative;
71 display: flex;
72 padding: 25px;
73 wrap-flex: wrap;
74 justify-content: center;
75 align-items: center;
76}
77.child {
78 text-align: center;
79}
80.box {
81 text-align: center;
82 text-decoration: none;
83 color: black;
84 margin: 0 1%;
85 margin-bottom: 5px;
86 border: 1px solid #000;
87 height: 250px;
88 background-color: #fff;
89 border-radius: 10px;
90 width: 350px;
91 display: inline-block;
92}
93.box:hover, .box:active {
94 background-color: #eee;
95}
96.title {
97 text-align: center;
98}
99
100/* a big welcome for newcomers ;) */
101.welcome-big {
102 position: relative;
103 margin-top: 51px;
104 border-bottom: 1px solid #888;
105 width: 100%;
106
107 background: rgb(65,225,64); /* fallback */
108 background: rgba(15, 75, 14, .6);
109
110 padding: 10%;
111
112 text-align: center;
113 color: white;
114 text-shadow: 0 3px 6px rgba(0,0,0, 0.16), 0 3px 6px rgba(0,0,0, 0.21);
115
116 box-shadow: 0 3px 5px rgba(0,0,0, 0.36);
117
118 height: 50%;
119
120 overflow: hidden;
121 vertical-align: bottom;
122}
123
124.welcome-big h1 { /* make this stand out */
125 font-size: 50px;
126 line-height: 80px;
127}
128
129.welcome-big h3 {
130 font-size: 22px;
131 width: 70%;
132 margin: 0 auto;
133 vertical-align: middle;
134 }
135
136.welcome-learnmore {
137 border: 1px solid #666;
138 background-color: white;
139 font-size: 18px;
140 line-height: 24px;
141 font-weight: 400;
142
143 padding: 5px 8px;
144
145 border-radius: 8px;
146
147 box-shadow: 0 3px 6px rgba(0,0,0, 0.16), 0 3px 6px rgba(0,0,0, 0.21);
148
149 display: block;
150 position: relative;
151 margin: 0 auto;
152 vertical-align: middle;
153 bottom: -50%;
154 transform: translate(0, 50%);
155
156 }
157/* articles feed */
158div.art {
159 border-bottom: 1px solid #eee;
160}
161div.art:last-child {
162 border-bottom: none;
163}
164h3.art {
165 margin: 0;
166}
167p.art {
168 margin: 0;
169}
170p.art-ingress {
171 font-style: italic;
172 margin: 0;
173}
174p.art-date {
175 color: #ccc;
176 margin-top: 0;
177}
178a {
179 color: #0645AD;
180 text-decoration: none;
181}
182p.art-link {
183 margin-top: 0;
184}
185
186/* footer */
187.footer {
188 background: #666; /* >:^) */
189 width: 100%;
190 /* margin and padding are reset at line 1-5 */
191 display: flex;
192 flex-wrap: wrap;
193 color: #eee;
194 font-size: 18px;
195 line-height: 22px;
196
197 min-height: 22px;
198 height: auto;
199
200 position: fixed;
201 bottom: 0;
202} /* plz no justify ;_; */
203
204.footer a {
205 text-decoration: none;
206 color: #7bf;
207 }
208
209.footer-links {
210 position: absolute;
211 right: 0;
212 margin-right: 8px;
213 }