Project

General

Profile

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

haketilo / html / grid.css @ 1f9ccef9

1
/*
2
 * SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
3
 *
4
 * Styling for use with `display: grid`.
5
 *
6
 * This file is part of Haketilo.
7
 *
8
 * Copyright (C) 2022 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
.grid_1 {
31
    display: grid;
32
    grid-template-columns: auto;
33
}
34

    
35
.grid_2 {
36
    display: grid;
37
    grid-template-columns: 1fr 1fr;
38
}
39

    
40
.grid_col_1 {
41
    grid-column: 1 / span 1;
42
}
43

    
44
.grid_col_2 {
45
    grid-column: 2 / span 1;
46
}
47

    
48
.grid_col_both {
49
    grid-column: 1 / span 2;
50
}
51

    
52
span.grid_col_1, label.grid_col_1 {
53
    text-align: right;
54
}
55

    
56
.grid_col_both {
57
    text-align: center;
58
}
59

    
60
div.grid_col_both {
61
    text-align: initial;
62
}
63

    
64
.grid_2>span, grid_2>label {
65
    margin-top: 0.75em;
66
}
67

    
68
.grid_form>span, .grid_form>label {
69
    margin-top: 1.5em;
70
    margin-left: 1em;
71
    margin-right: 1em;
72
}
(9-9/28)