summaryrefslogtreecommitdiff
path: root/src/style.css
blob: bd731ad9d3d3d621051321ee5a7e6cb4de6bbe3a (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
html {
    height: 100%;
    color: #cccccc;
    background-color: hsl(240, 30%, 10%);/*#452b41*/ /*#2c314b*/
}

body {
    margin: auto;
    max-width: 64em;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: hsl(240, 30%, 15%);
}

nav {
    /*#3a2438*/ /*#2a3257*/
    background-color: hsl(240, 30%, 20%);
}

nav > ul {
    display: flex;
    margin: 0 auto;
}

nav > ul > li:last-child {
    margin-left: auto;
}

nav ul {
    padding: 0;
}

nav li {
    margin: 2px;
    display: block;
    list-style: none;
}

nav li:hover {
    background-color: hsl(240, 30%, 30%);
}

nav .submenu:hover .submenu-contents {
    display: block;
}

nav .submenu-contents {
    display: none;
    position: absolute;
    z-index: 10;
    background-color: red;
}

nav a,
nav span {
    text-decoration: none;
    color: #dddddd;
    display: block;
    line-height: 2em;
    height: 2em;
    margin-left: 1em;
    margin-right: 1em;
}

nav span {
    cursor: pointer;
}

.article-date {
    margin-left: auto;
}

.link-like, a {
    color: #eeeeee;
    text-decoration: underline;
}

.rel-header {
    padding: 1em 2em 1em 2em;
}

header {
    background-color: hsl(240, 30%, 10%);
}

header p {
    text-align: center;
    margin-bottom: 0.15em;
}

header p ~ h1 {
    margin-top: 0.15em;
}

main {
    padding: 2em 2em 2em 2em;
    flex-grow: 1;
}

hr {
    margin: 0;
    margin-top: auto;
}

footer {
    padding: 1em 2em 1em 2em;
}

figure {
    text-align: center;
}

figure img {
    max-width: 30em;
    object-fit: contain;
    display: block;
    margin: auto;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}