summaryrefslogtreecommitdiff
path: root/ctftilde/src/resources/ctftilde.css
blob: 9ee148e8f0b4b591918f35c8af2993187097e26a (about) (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
/*
 * SPDX-License-Identifier: CC0-1.0
 * Copyright (C) 2024 W. Kosior <koszko@koszko.org>
 */

html {
    font-size: 16px;
    line-height: 1.6;
    color: #5D6166;
    background-color: #D3DAE1;
    --width: calc(100vw - 20px);
    --height: calc(100vh - 20px);
    width: var(--width);
    height: var(--height);
    border: #B3BAC1 solid 10px;
    overflow-y: hidden;
}
    
body {
    padding: 10px;
    margin: 0 auto;
    max-width: calc(var(--width) - 20px);
    max-height: calc(var(--height) - 20px);
    overflow-y: scroll;
}

main {
    max-width: 700px;
    padding: 1rem 2rem;
}

form {
    display: flex;
    flex-direction: column;
}
    
pre {
    background-color: #eee;
    margin: 0 -1rem;
    padding: 1rem;
    overflow-x: auto;
}
    
a {
    color: #AA2E00;
}
    
a:visited {
    color: #802200;
}

h1 {
    margin-top: 10px;
    margin-bottom: 10px;
}

label, aside, input {
    margin-top: 4px;
    margin-bottom: 4px;
}

label {
    font-weight: bold;
    font-style: italic;
}

input {
    display: block;
    border: none;
    border-radius: 0;
    border-left: 4px solid #5D6166;
    padding: 4px;
    margin-bottom: 8px;
}

aside {
    padding: 8px;
}

aside.error{
    border-left: 4px solid red;
    background-color: #eed2d2;
}

button {
    padding: 8px;
    font-weight: bold;
    color: white;
    background-color: #5D6166;
    border: none;
}

button {
    margin-top: 8px;
    margin-bottom: 8px;
}

button:active, button:hover {
    background-color: #3d4146;
}