Skip to content

Commit 80de285

Browse files
authored
Merge pull request #864 from owncloud/update_the_navigation
Update navigation, related files and some css
2 parents 944c1f0 + 3b7e961 commit 80de285

17 files changed

+522
-264
lines changed

src/css/doc.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@
234234

235235
.doc .admonitionblock .icon {
236236
position: absolute;
237-
top: 0;
238-
left: 0;
237+
inset-block-start: 0;
238+
inset-inline-start: 0;
239239
font-size: 0.75rem;
240240
padding: 0 0.5rem;
241241
height: 1.25rem;
@@ -506,8 +506,8 @@
506506
color: #DCDCDC;
507507
display: flex;
508508
position: absolute;
509-
top: 0.5rem;
510-
right: 0.5rem;
509+
inset-block-start: 0.5rem;
510+
inset-inline-end: 0.5rem;
511511
font-family: var(--body-font-family);
512512
font-size: 0.7rem;
513513
line-height: 1;
@@ -567,8 +567,8 @@
567567
position: relative;
568568
display: inline-flex;
569569
justify-content: center;
570-
right: 1.05rem;
571-
top: .3rem;
570+
inset-inline-end: 1.05rem;
571+
inset-block-start: .3rem;
572572
background-color: var(--doc-font-color);
573573
border-radius: 0.25em;
574574
color: var(--color-white);
@@ -580,7 +580,7 @@
580580
.doc .source-toolbox .copy-toast::after {
581581
content: "";
582582
position: absolute;
583-
top: 0;
583+
inset-block-start: 0;
584584
width: 1em;
585585
height: 1em;
586586
border: 0.55em solid transparent;

src/css/header.css

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body {
1616
font-size: 0.8333rem;
1717
height: var(--navbar-height);
1818
position: fixed;
19-
top: 0;
19+
inset-block-start: 0;
2020
width: 100%;
2121
word-wrap: break-word;
2222
z-index: 3;
@@ -112,10 +112,10 @@ body {
112112
background-color: var(--color-navbar-text);
113113
display: block;
114114
height: 1px;
115-
left: 50%;
116115
margin-left: -7px;
117116
position: absolute;
118-
top: 50%;
117+
inset-inline-start: 50%;
118+
inset-block-start: 50%;
119119
width: 15px;
120120
}
121121

@@ -248,8 +248,8 @@ body {
248248
border: 1px solid #e1e1e1;
249249
display: none;
250250
font-size: 0.875rem;
251-
top: 100%;
252-
left: 0;
251+
inset-block-start: 100%;
252+
inset-inline-start: 0;
253253
min-width: 100%;
254254
position: absolute;
255255
}
@@ -269,8 +269,8 @@ body {
269269
transform: rotate(-45deg);
270270
width: 0.5em;
271271
margin-top: -0.375em;
272-
right: 1.125em;
273-
top: 50%;
272+
inset-inline-end: 1.125em;
273+
inset-block-start: 50%;
274274
}
275275

276276
.navbar-menu {
@@ -292,8 +292,7 @@ body {
292292
}
293293

294294
.navbar-dropdown.is-right {
295-
left: auto;
296-
right: 0;
295+
inset-inline: auto 0;
297296
}
298297

299298
.navbar-dropdown a.navbar-item:hover {
@@ -327,8 +326,8 @@ body {
327326
position: absolute;
328327
width: 10px;
329328
height: 100%;
330-
right: 20px;
331-
top: 0;
329+
inset-inline-end: 20px;
330+
inset-block-start: 0;
332331
justify-content: center;
333332
align-items: center;
334333
color: #000;
@@ -338,8 +337,8 @@ body {
338337
.search .results {
339338
position: absolute;
340339
color: initial;
341-
right: 20px;
342-
top: 100%;
340+
inset-inline-end: 20px;
341+
inset-block-start: 100%;
343342
background: #fff;
344343
border: 1px solid #fafafa;
345344
border-radius: 0;

0 commit comments

Comments
 (0)