aboutsummaryrefslogtreecommitdiff
path: root/css/base.css
blob: f1f306ba33f95f318f086a2bd7898058f67799be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
@charset "UTF-8";

/* === FONTS  === */
body{
    font-family: "Lato", Helvetica, Arial, sans-serif;
    line-height: 1.5em;
    font-size: 1em;
}
code{
    font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono",
    "Consolas", "Ubuntu Mono", "Courier New", "andale mono",
    "lucida console", monospace; /* GitLab */
    font-size: 12px;
}
.comment{
    font-style: italic;
}

/* === PAGE COLORS  === */
/* Currently, colors are defined seperately. But this may not be a good
 * idea. So, duplicate selectors will be reunited in future commits. */
body{
    background-color: #FBFCFC; /* BABY POWDER */
}
.banner h1{
    color: #030504; /* RICH BLACK (FOGRA39)  */
}
nav{
    background-color: #030504; /* RICH BLACK (FOGRA39)  */
}
#hamnav {
    background: #000;
}
.button a, .button a:visited{
    color: #dcdfde; /* GAINSBORO */
}
.button a:hover{
    color: #ff216e; /* AWESOME */
    background-color: #121413; /* LICORICE */
}
a, p a, li a, a:visited{
    text-decoration: none;
    color: #64030B;
}
a:hover{
    text-shadow: 0px 0px 1px #FBADCE;
}
pre{
    background-color: #FFF;
    border-color: #CABECF; /* LANGUID LAVENDER */
}
pre code{
    color: #2A1E5C; /* RUSSIAN VIOLET */
}
.comment{
    color: #918595; /* TAUPE GRAY */
}
p code, li > code{
    background-color: #E0E1E1; /* PLATINUM */
    color: #1C1E1D; /* EERIE BLACK */
}
footer[role=contentinfo]{
    background-color: #F2F3F3;
    color: #1C1E1D; /* EERIE BLACK */
}

/* === DECORATION CLASSES  === */
.text-shadow{
    text-shadow: 2px 2px 1px rgba(255,255,255,1),
    4px 4px 1px rgba(50,50,50,0.25);
}
.box-shadow{
    box-shadow: 2px 2px 1px rgba(255,255,255,1),
    4px 4px 1px rgba(50,50,50,0.25);
}
.circle{
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
}

/* === BLOCKS  === */
h1, h2, h3{
    /* Set line-height for headers to prevent overlap when browser is
     * forced to wrap the words. */
    line-height: 1em;
}
pre{
    /* set code block properties */
    display: block;
    overflow-x: auto;
    min-width: 90%;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    line-height: 1.6em;
    padding: 8px 12px;
}
p code, li > code{
    /* set inline <code> properties */
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 5px;
}
/* Keep the content and the navbar focused in middle of the screen */
#container,
#hamnav {
    max-width: 950px;
    margin: 0 auto;
}
#container {
    /* The container should always have a margin-top high enough to
     * prevent content overlapping with the navigation bar */
    margin-top: 45px;
    width: 90%;
}
.clear{
    clear: both;
    /* NOTE:
     * should add the clear-fix recommended by the book
     * ********************************************* */
}

/* === HEAD NAV === */
nav li{
    float: left;
    padding: 0 5px;
}
/* hamburger default */
/* banner */
#hamnav {
    /* Stick to the top. To keep the bar in center of the screen,
     * please keep the left and right values equal, and the total
     * of percentages to 100%, i.e: left + width + right = 100%,
     * e.g: 5% + 90% + 5% = 100% */
    position: fixed;
    width: 90%;
    top: 0;
    left: 5%;
    right: 5%;
}
/* Hide Hamburger */
#hamnav label, #hamburger {
    display: none;
}
/* Horizontal Menu Items */
#hamitems {
    display: flex;
}
#hamitems a {
    width: 25%; /* 100% / 5 tabs = 20% */
    padding: 10px;
}

/* === MAIN CONTENT === */


/* === MANEAGE BANNER === */
.banner{
    width: 100%;
    margin: 0px auto;
    text-align: center;
}
.banner div{
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}
.banner h1{
    font-size: 300%;
    text-shadow: 2px 2px 1px rgba(255,255,255,1),
    4px 4px 1px rgba(50,50,50,0.25);
}
.banner h2{
    font-size: 200%;
    vertical-align: middle;
}
.banner img{
    min-width: 170px;
    min-height: 170px;
    max-width: 220px;
    max-height: 220px;
    width: 100%;
}

/* === NAVIGATION STYLE - LINKS  === */
nav{
    text-align: center; /* keep the links in the center of the screen */
    border-radius: 5px;
}
.button a{
    text-decoration: none;
    display: inline-block; /* do not wrap text in a anchor */
    padding: 15px 32px;
    transition-duration: 0.2s; /* fade back to normal */
}
.button a:hover{
    transition-duration: 0.5s; /* give the modern minimal animation */
    text-shadow: 0px 0px 1px #030504; /* RICH BLACK (FOGRA39) */
}
p a, li a{
    text-decoration: none;
    transition-duration: 0.2s; /* fade back to normal */
}
p a:hover, li a:hover{
    transition-duration: 0.5s; /* give the modern minimal animation */
}

/* === PAGE FOOTER === */
footer[role=contentinfo] {
    text-align: left;
    padding: 15px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure backward compatibility of HTML5 elements in this website
 * ************************************************************* */

article, aside, figcaption, figure, footer, header, hgroup, menu, nav,
section, {
    display: block;
}

/* === MEDIA SPECIFIC STYLES === */

/* 320px and up
 * ************************************ */
@media only screen and (min-width: 320px){
}

/* 480px and below
 * ************************************ */
@media only screen and (max-width: 480px){
    /* === hamburger navigation === */
    /* Show Hamburger Icon */
    #hamnav label{
        display: inline-block;
        color: #FFF;
        font-style: normal;
        font-size: 1.2em;
        padding: 10px;
        transition-duration: .2s;
    }

    /* Break down menu items into vertical */
    #hamitems a {
        box-sizing: border-box;
        display: block;
        width: 100%;
        border-top: 1px solid #333;
    }

    /* Toggle Show/Hide Menu */
    #hamitems {
        display: none;
    }
    #hamnav input:checked ~ #hamitems {
        display: block;
    }
}

/* 600px and up
 * ************************************ */
@media only screen and (min-width: 600px){
}

/* 768px and up
 * ************************************ */
@media only screen and (max-width: 830px){
    .banner div{
        /* Break down and center the text as soon as browser width is
         * too small for all the content to fit */
        display: block;
        text-align: center;
    }
}