Skip to content

Commit 68cbba7

Browse files
committed
Realign UI and add owncloud overlay
1 parent d991879 commit 68cbba7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1763
-1025
lines changed

.stylelintrc

+3
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"alpha-value-notation": number,
88
"selector-class-pattern": null,
99
"custom-property-pattern": null,
10+
"value-keyword-case": ["lower", {
11+
ignoreKeywords: ["/^[a-zA-Z]+$/"]
12+
}]
1013
}
1114
}

src/css/base.css

+113-24
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
:root {
2-
/* base.css */
3-
--color-text: #1f2939;
4-
--color-navbar-bg: #1b223d;
5-
--color-navbar-bg-focus: #0e152d;
6-
--color-navbar-text: #fff;
7-
}
8-
9-
html,
10-
body {
11-
height: 100%;
12-
}
13-
141
*,
152
*::before,
163
*::after {
@@ -19,24 +6,26 @@ body {
196

207
html {
218
box-sizing: border-box;
22-
font-family: "Open Sans", sans-serif;
23-
font-size: 1.1em;
24-
text-size-adjust: 100%;
9+
font-size: var(--body-font-size);
10+
height: 100%;
11+
scroll-behavior: smooth;
2512
}
2613

2714
@media screen and (width >= 1024px) {
2815
html {
29-
font-size: 1.2em;
16+
font-size: var(--body-font-size--desktop);
3017
}
3118
}
3219

3320
body {
34-
color: var(--color-text);
35-
line-height: 1.6;
21+
background: var(--body-background);
22+
color: var(--body-font-color);
23+
font-family: var(--body-font-family);
24+
line-height: var(--body-line-height);
3625
margin: 0;
37-
/* do not use this atm, it will break tabs. the tab frame will be compressed and looks not good
38-
tab-size: 4;
39-
word-wrap: anywhere; /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
26+
/* do not use this atm, it will break tabs. the tab frame will be compressed and looks not good */
27+
/* tab-size: 4; */
28+
/* word-wrap: anywhere; */ /* aka overflow-wrap; used when hyphens are disabled or aren't sufficient */
4029
}
4130

4231
a {
@@ -47,15 +36,115 @@ a:hover {
4736
text-decoration: underline;
4837
}
4938

39+
a:active {
40+
background-color: none;
41+
}
42+
5043
code,
5144
kbd,
5245
pre {
53-
font-family: "Roboto Mono", monospace;
46+
font-family: var(--monospace-font-family);
5447
}
5548

5649
b,
5750
dt,
5851
strong,
5952
th {
60-
font-weight: 500;
53+
font-weight: var(--body-font-weight-bold);
54+
}
55+
56+
sub,
57+
sup {
58+
font-size: 75%;
59+
line-height: 0;
60+
position: relative;
61+
vertical-align: baseline;
62+
}
63+
64+
sub {
65+
bottom: -0.25em;
66+
}
67+
68+
sup {
69+
top: -0.5em;
70+
}
71+
72+
em em { /* stylelint-disable-line */
73+
font-style: normal;
74+
}
75+
76+
strong strong { /* stylelint-disable-line */
77+
font-weight: normal;
78+
}
79+
80+
button {
81+
cursor: pointer;
82+
font-family: inherit;
83+
font-size: 1em;
84+
line-height: var(--body-line-height);
85+
margin: 0;
86+
}
87+
88+
button::-moz-focus-inner {
89+
border: none;
90+
padding: 0;
91+
}
92+
93+
summary {
94+
cursor: pointer;
95+
-webkit-tap-highlight-color: transparent;
96+
outline: none;
97+
}
98+
99+
table {
100+
border-collapse: collapse;
101+
word-wrap: normal; /* table widths aren't computed as expected when word-wrap is enabled */
102+
}
103+
104+
object[type="image/svg+xml"]:not([width]) {
105+
width: fit-content;
106+
}
107+
108+
::placeholder {
109+
opacity: 0.5;
110+
}
111+
112+
@media (pointer: fine) {
113+
@supports (scrollbar-width: thin) {
114+
html {
115+
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
116+
}
117+
118+
body * {
119+
scrollbar-width: thin;
120+
scrollbar-color: var(--scrollbar-thumb-color) transparent;
121+
}
122+
}
123+
124+
html::-webkit-scrollbar {
125+
background-color: var(--scrollbar-track-color);
126+
height: 12px;
127+
width: 12px;
128+
}
129+
130+
body ::-webkit-scrollbar {
131+
height: 6px;
132+
width: 6px;
133+
}
134+
135+
::-webkit-scrollbar-thumb {
136+
background-clip: padding-box;
137+
background-color: var(--scrollbar-thumb-color);
138+
border: 3px solid transparent;
139+
border-radius: 12px;
140+
}
141+
142+
body ::-webkit-scrollbar-thumb {
143+
border-width: 1.75px;
144+
border-radius: 6px;
145+
}
146+
147+
::-webkit-scrollbar-thumb:hover {
148+
background-color: var(--scrollbar_hover-thumb-color);
149+
}
61150
}

src/css/body.css

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@media screen and (width >= 1024px) {
2+
.body {
3+
display: flex;
4+
}
5+
}

src/css/breadcrumbs.css

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
1-
.crumbs {
1+
.breadcrumbs {
22
display: none;
33
flex: 1 1;
44
padding: 0 0.5rem 0 0.75rem;
5-
line-height: 1.35;
6-
hyphens: none;
5+
line-height: var(--nav-line-height);
76
}
87

98
@media screen and (width >= 1024px) {
10-
.crumbs {
9+
.breadcrumbs {
1110
display: block;
1211
}
1312
}
1413

15-
a + .crumbs {
14+
a + .breadcrumbs {
1615
padding-left: 0.05rem;
1716
}
1817

19-
.crumbs ul {
18+
.breadcrumbs ul {
2019
display: flex;
2120
flex-wrap: wrap;
2221
margin: 0;
2322
padding: 0;
2423
list-style: none;
2524
}
2625

27-
.crumbs li {
26+
.breadcrumbs li {
2827
display: inline;
2928
margin: 0;
3029
}
3130

32-
.crumbs li::after {
31+
.breadcrumbs li::after {
3332
content: "/";
3433
padding: 0 0.5rem;
3534
}
3635

37-
.crumbs li:last-of-type::after {
36+
.breadcrumbs li:last-of-type::after {
3837
content: none;
3938
}

0 commit comments

Comments
 (0)