aboutsummaryrefslogtreecommitdiff
path: root/css/base.css
blob: d7d0d65cbf8ba2dd7892590d2a62e23d69b7ca41 (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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
@charset "UTF-8";

/* ==================================================================
 * License information:
 * ==================================================================
 *
 * CSS stylesheet of the Maneage homepage <maneage.org>
 *
 * Maneage: a framework for managing data lineage
 *
 * Copyright (C) 2020, Pedram Ashofteh Ardakani <pedramardakani@pm.me>
 * Copyright (C) 2020, Mohammad Akhlaghi <mohammad@akhlaghi.org>
 *
 * This file is part of Maneage. Maneage is free software: you can
 * redistribute it and/or modify it under the terms of the GNU General
 * Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * Maneage is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details. See
 * <http://www.gnu.org/licenses/>.
 *
 * ==================================================================
 * Preliminary information:
 * ==================================================================
 *
 * Some helpful CSS coding standards:
 * https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/
 * https://github.com/necolas/idiomatic-css
 *
 * Baseline for ordering attributes:
 * 1. Display
 * 2. Positioning
 * 3. Box model
 * 4. Colors and Typography
 * 5. Other
 *
 * No need to specify browser specific prefixes for the border-radius
 * attribute as described here:
 * https://css-tricks.com/do-we-need-box-shadow-prefixes/
 *
 * */

/* ==================================================================
 * General style
 * ================================================================== */

body {
    background: #fbfcfc;
    font-family: Lato, Helvetica, Arial, sans-serif;
    line-height: 1.5; /* Should be unitless */
}

h1,
h2,
h3 {
    /* Bring the headers closer to the text under them, this is a
     * complementary command with the margin-top in `p` tag styling */
    padding-bottom: 0;
    margin-bottom: 0;
    /* Set line-height for headers to prevent overlap when browser is
     * forced to wrap the words. */
    line-height: 1;
}

p {
    /* Bring the headers closer to the text under them, this is a
     * complementary command with the padding & margin bottom  in the
     * header tags above */
    margin-top: 5px;
}

/* Wrap the entire content of the page in this `div` - the navigation
 * bar is an exception, because of its fixed position. */
#container {
    /* Prevent additional horizontal spacing in smaller screens */
    width: 100%;
    /* Center the whole page into a narrow column. Keeps the webpage stylish
     * and easy to look at in the widest screens. */
    max-width: 960px;
    /* The container should always have a margin-top high enough to
     * prevent content overlapping with the navigation bar */
    margin: 45px auto 0;
}

/* ==================================================================
 * Inline and blob code style
 * ================================================================== */

pre {
    /* set code block properties */
    display: block;
    min-width: 90%;
    overflow-x: auto;
    padding: 8px 12px;
    border: 1px solid #cabecf;
    border-radius: 5px;
    background: #fff;
    color: #2a1e5c;
    line-height: 1.6;
}

/* Pick the code font family from GitLab. */
code {
    color: #2a1e5c;
    font-family: Menlo, "DejaVu Sans Mono", "Liberation Mono", Consolas, "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace;
    font-size: 12px;
}

/* Mimic comment style syntax highlighting in code blobs */
.comment {
    color: #918595;
    font-style: italic;
}

/* Inline <code> properties. Clear some horizontal space between code
 * and rest of the text. Adding vertical space breaks the line-height
 * consistency. Additional styling to ease the reading.
 * */
p code,
li > code {
    padding: 0 5px;
    border-radius: 3px; /* Prevent sharp box-edges */
    background: #eadeef; /* Highlight inline codes */
}

/* ==================================================================
 * Navigation style
 * ================================================================== */

/* The top (hamburger) navigation bar:
 * ==================================================================
 *
 * For a responsive design, we used the hamburger navigation convention.
 * It will pop-up once the user's screen is narrower than a certain
 * width - as specified in the @media tags at the end of the CSS file.
 * */

/* The wrapper */
#nav-hamburger-wrapper{
    /* Stick to the top */
    position: fixed;
    top: 0;
    /* Make sure `left`, `right`, and `width` values add up to 100% to
     * help keep the navigation bar in center for big screens */
    margin: 0 auto;
    left: 0.5%;
    right: 0.5%;
    width: 99%;
    max-width: 960px; /* same as the `#container` max-width */
    margin: 0 auto;
    /* Prevent sharp edges on the top navigation bar */
    border-radius: 0 0 5px 5px;
    /* Keep link texts center-aligned */
    text-align: center;
    background: #030504;
}

/* By default, hide the hamburger label and check-box */
#nav-hamburger-wrapper label,
#nav-hamburger-input {
    display: none;
    transform: rotate(90deg);
    transition-duration: 0.3s;
}

#nav-hamburger-wrapper input:checked + label {
    color: #ff216e;
    transform: rotate(270deg);
}

/* Horizontal hamburger menu items. Keep the tabs in one line and don't
 * wrap them in narrower screens */
#nav-hamburger-items {
    display: flex;
}

#nav-hamburger-items a {
    padding: 10px;
    /* Set width according to available number of tabs */
    width: 25%; /* 25% = 100% / 4 tabs */
}

/* Button class:
 * ================================================================== */

/* Define a general `button` class, so it can be used randomly inside
 * the webpage contents, and don't just limit it to the top navigation
 * bar.
 *
 * Keep the same style for `:visited` separate the button style from
 * simple link and anchor style */

.button a,
.button a:visited {
    display: inline-block; /* do not wrap text in a anchor */
    padding: 15px 32px;
    text-decoration: none;
    color: #dcdfde;
    transition-duration: 0.2s; /* fade back to normal */
}

.button a:hover {
    color: #ff216e; /* AWESOME */
    background-color: #121413; /* LICORICE */
    text-shadow: 0px 0px 1px #030504; /* RICH BLACK (FOGRA39) */
    transition-duration: 0.5s; /* give the modern minimal animation */
}

/* Inline links - the anchors or <a> tag:
 * ================================================================== */

/* Same style for visited and unvisited links */
a,
a:visited {
    text-decoration: none;
    color: #64030B;
    transition-duration: 0.3s; /* Fade back to normal smoothly */
}

/* Let the user feel they're hovering on a link */
a:hover {
    text-shadow: 0px 0px 1px #fbadce;
    transition-duration: 0.5s; /* Give the modern minimal animation */
}

/* ==================================================================
 * Maneage banner at top of every page:
 * ================================================================== */

.banner {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Wide banner style. This style will be in place for wide @media
 * screens as specified at the end of this CSS file */
.banner div {
    display: inline-block;
    /* Keep headers aligned in the middle next to Maneage logo */
    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%;
}

.banner img {
    width: 100%;
    min-width: 170px;
    min-height: 170px;
    max-width: 220px;
    max-height: 220px;
    /* Keep headers aligned in the middle next to Maneage logo */
    vertical-align: middle;
}

/* ==================================================================
 * The sponsors
 * ================================================================== */

.support {
    display: flex;
    flex-flow: row wrap; /* stack horizontally and allow wrapping */
    justify-content: space-around; /* display items with space between */
    align-items: center; /* align the items in middle of container */
    margin: 10px auto;
}

.support img {
    width: 120px;
    height: auto;
}

/* Try to scale the logos for a better look */

#logo-rda img {
    width: 150px;
    height: auto;
}

#logo-mext img {
    width: 200px;
    height: auto;
}

/* ==================================================================
 * Page footer
 * ================================================================== */

/* Looks like a mirror of the header, but it is not fixed. */
footer[role=contentinfo] {
    /* Make sure `left`, `right`, and `width` values add up to 100% to
     * help keep the navigation bar in center for big screens */
    margin: 0 auto;
    max-width: 960px; /* same as the `#container` max-width */
    padding: 5px 15px;
    /* Prevent sharp edges on the bottom navigation bar */
    border-radius: 5px 5px 0 0;
    /* Keep link texts center-aligned */
    text-align: left;
    font-size: small;
    color: #dcdfde;
    background: #030504;
}

/* Put the footer contents in an unordered list */
footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Reduce line spacing between <li> in footer */
footer p {
    margin: 0;
    /* Do not use `line-height` attribute. This effects the line
     * wrapping in a bad way. */
}

/* Footer links */
footer a, footer a:visited, footer a:hover {
    /* Use a lighter color because of the dark background */
    color: #ff216e;
}

/* ==================================================================
 * 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 === */
    /* Let the navigation fill the entire top for smaller screens */
    #nav-hamburger-wrapper {
        left: 0;
        width: 100%;
    }
    /* Show Hamburger Icon */
    #nav-hamburger-wrapper label {
        display: inline-block;
        padding: 10px;
        color: #fff;
        font-style: normal;
        font-size: 1.2em;
    }

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

    /* Toggle Show/Hide Menu */
    #nav-hamburger-items {
        display: none;
    }
    #nav-hamburger-wrapper input:checked ~ #nav-hamburger-items {
        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;
    }
}