Skip to content

Commit 1838395

Browse files
authored
Merge pull request #179 from cpprefjp/fix_ui_size
CSS の長さの単位 vw, vh を dvw, dvh に置換
2 parents e3d6b7e + 501f1d2 commit 1838395

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

css/kunai/site/goog.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ main div[itemtype="http://schema.org/Article"] {
1515

1616
box-sizing: border-box;
1717

18-
max-height: 60vh;
18+
max-height: 60dvh;
1919
overflow-x: auto;
2020
overflow-y: scroll;
2121

css/kunai/site/layout.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ body {
4141
nav[role="navigation"] {
4242
display: flex;
4343
// min-height: 3rem;
44-
// max-height: 8vh;
44+
// max-height: 8dvh;
4545

4646
padding: 0 .8rem;
4747
box-sizing: border-box;
@@ -69,7 +69,7 @@ nav[role="navigation"] {
6969

7070
z-index: $navbar-expand-z;
7171

72-
width: 100vw;
72+
width: 100dvw;
7373
min-height: 4rem;
7474

7575
background: #EFEFEF;
@@ -275,20 +275,20 @@ main {
275275
.crsearch {
276276
flex-basis: auto;
277277
min-width: 92%;
278-
max-width: 94vw;
278+
max-width: 94dvw;
279279
margin: .5rem 0 0 0;
280280
}
281281
}
282282
}
283283

284284
div[itemtype="http://schema.org/Article"] + div {
285-
// flex-basis: 100vw;
285+
// flex-basis: 100dvw;
286286
flex-basis: unset;
287287

288288
border: none;
289289

290290
/* box-shadow: 0px 9px 16px 2px rgba(0, 0, 0, 0.8); GPUメモリ削減のため無効化 */
291-
padding: 0 4vw;
291+
padding: 0 4dvw;
292292
}
293293
}
294294
}
@@ -316,7 +316,7 @@ main {
316316

317317
main {
318318
div[itemtype="http://schema.org/Article"] + div {
319-
padding: 0 2vw;
319+
padding: 0 2dvw;
320320
}
321321
}
322322
}

css/kunai/site/sidebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ main[role="main"] .kunai-sidebar.force-legacy {
774774
&[data-branch-for="headers"] {
775775
order: 3;
776776
margin-bottom: 2em;
777-
max-height: 70vh;
777+
max-height: 70dvh;
778778
}
779779
&[data-branch-for="articles"] {
780780
order: 4;

css/kunai/variables.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$navbar-height: 5vh;
2-
$main-height: calc(100vh - $navbar-height);
1+
$navbar-height: 5dvh;
2+
$main-height: calc(100dvh - $navbar-height);
33

44
$nav-bg: #f8f8f8;
55

0 commit comments

Comments
 (0)