summaryrefslogtreecommitdiff
path: root/wwwroot/styles/global.css
blob: 3ce053322591a9858502c01afa595c94f9e5e64c (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
:root {
    --col-accent-pri: #0aa;
    --col-bg:         #222;
    --col-dialog-bg:  #333;
    --col-navbar-bg:  var(--col-accent-pri);
    --col-button-pri: var(--col-accent-pri);
    --col-button-sec: #555;
}

body {
    background:     var(--col-bg);
    color:          white;
    display:        flex;
    flex-direction: column;
    font-family:    'Trebuchet MS', 'Lucida Sans Unicode';
    margin:         0;
    overflow:       hidden;
}

a {
    color:           white;
    text-decoration: none;
}

button, input[type=submit] {
    color:         white;
    background:    var(--col-button-pri);
    border-radius: 10px;
    border:        none;
    box-sizing:    border-box;
    height:        30px;
    margin:        10px 5px 0 5px;
    padding:       0 9px 0 9px;
}

button.secondary {
    background: var(--col-button-sec);
}

button:hover, input[type=submit]:hover {
    filter: grayscale(0.9) brightness(2.5);
}

button:active, input[type=submit]:active {
    filter: grayscale(0.9) brightness(3.5);
}

input {
    background:    rgba(0, 0, 0, 0);
    border-radius: 5px;
    border:        1px solid #aaa;
    box-sizing:    border-box;
    color:         white;
    height:        25px !important;
    margin-bottom: 10px;
}

/* necessary for use inside flex containers */
hr {
    width: 100%;
}

table.data-table {
    border-collapse: collapse;
    width:           100%;
}

table.data-table > tbody > tr > th {
    border-bottom: 1px solid white;
    padding:       4px;
}

table.data-table > tbody > tr > td {
    padding: 4px;
}

table.data-table > tbody > tr:nth-child(2n) {
    background: rgba(255, 255, 255, 0.2);
}

table.data-table > tbody > tr > td:not(:last-child) {
    border-right: 1px solid white;
}

div.dialog {
    background:     var(--col-dialog-bg);
    border-radius:  20px;
    box-shadow:     0px 5px 10px 10px rgb(0 0 0 / 25%);
    display:        flex;
    flex-direction: column;
    left:           50%;
    opacity:        0;
    padding:        20px;
    position:       absolute;
    top:            50%;
    transform:      translate(-50%, -50%);
    transition:     visibility 0.1s, opacity 0.1s linear;
    visibility:     hidden;
    width:          450px;
}

div.dialog.visible {
    opacity:    1;
    visibility: visible;
}