Project

General

Profile

Download (2.3 KB) Statistics
| Branch: | Tag: | Revision:

haketilo / html / base.css @ f8dedf60

1
/*
2
 * SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
3
 *
4
 * Base styling common for all Haketilo internal HTML pages
5
 *
6
 * This file is part of Haketilo.
7
 *
8
 * Copyright (C) 2021 Wojtek Kosior <koszko@koszko.org>
9
 *
10
 * File is dual-licensed. You can choose either GPLv3+, CC BY-SA or both.
11
 *
12
 * This program is free software: you can redistribute it and/or modify
13
 * it under the terms of the GNU General Public License as published by
14
 * the Free Software Foundation, either version 3 of the License, or
15
 * (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
24
 *
25
 * I, Wojtek Kosior, thereby promise not to sue for violation of this file's
26
 * licenses. Although I request that you do not make use of this code in a
27
 * proprietary program, I am not going to enforce this in court.
28
 */
29

    
30
body {
31
    font-family: sans-serif;
32
    background-color: #f0f0f0;
33
    color: #555;
34
    overflow: auto;
35
}
36

    
37
.bold, h1, h2, h3, label {
38
    font-weight: bold;
39
}
40

    
41
h1, h2, h3 {
42
    margin: 0.3em;
43
    text-shadow: 0 0 0 #454;
44
    text-align: center;
45
}
46

    
47
h2 {
48
    font-size: 120%;
49
}
50

    
51
h3 {
52
    font-size: 108%;
53
}
54

    
55
li {
56
    margin-top: 0.25em;
57
    margin-bottom: 0.25em;
58
}
59

    
60
li:first-child {
61
    margin-top: 0;
62
}
63

    
64
.hide {
65
    display: none !important;
66
}
67

    
68
button {
69
    background-color: #4CAF50;
70
    border: none;
71
    border-radius: 0.4em;
72
    color: white;
73
    text-align: center;
74
    text-decoration: none;
75
    display: inline-block;
76
    padding: 0.4em 0.8em;
77
    -moz-user-select: none;
78
    user-select: none;
79
    cursor: pointer;
80
    font: 400 0.9em sans-serif;
81
}
82

    
83
button:hover {
84
    box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
85
}
86

    
87
body {
88
    --line-height: 0.4em;
89
}
90

    
91
div.top_line {
92
    height: var(--line-height);
93
    background: linear-gradient(#555, transparent);
94
}
95
div.bottom_line {
96
    height: var(--line-height);
97
    background: linear-gradient(transparent, #555);
98
}
99

    
100
.text_center {
101
    text-align: center;
102
}
103
.text_right {
104
    text-align: right;
105
}
(2-2/28)