Skip to content

Commit 359a7b6

Browse files
author
rakeshAlgo
committed
Responsive UI fixes
1 parent 6063a37 commit 359a7b6

File tree

4 files changed

+77
-8
lines changed

4 files changed

+77
-8
lines changed

src/css/doc.css

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@
417417

418418
.doc ul {
419419
margin: 0;
420-
padding: 0 0 0 8px;
420+
padding: 0 0 0 1rem;
421421
}
422422

423423
.doc ol {
424424
margin: 0;
425-
padding: 0 0 0 8px;
425+
padding: 0 0 0 1rem;
426426
}
427427

428428
.doc ul.checklist {
@@ -913,7 +913,7 @@ code.language-console.hljs.shell {
913913
font-weight: var(--weight-bold);
914914
min-height: 2.5rem;
915915
line-height: 1;
916-
margin-right: 0.25rem;
916+
/* margin-right: 0.25rem; */
917917
padding: 0 1.5rem 5px;
918918
position: relative;
919919
text-decoration: none;
@@ -942,6 +942,8 @@ code.language-console.hljs.shell {
942942
display: flex;
943943
align-items: center;
944944
color: #333;
945+
border-bottom: 1px solid var(--color-border);
946+
padding-left: 0.5rem;
945947
}
946948

947949
.doc .tabs .dropddown-btn .fas {
@@ -998,3 +1000,45 @@ code.language-console.hljs.shell {
9981000
display: block;
9991001
}
10001002
}
1003+
1004+
@media screen and (max-width: 767px) {
1005+
1006+
.doc h1 {
1007+
font-size: var(--heading-h1-sm);
1008+
}
1009+
1010+
.doc h1.page {
1011+
font-size: var(--heading-h1-sm);
1012+
margin-bottom: 10px;
1013+
}
1014+
1015+
.doc h2 {
1016+
font-size: var(--heading-h2-sm);
1017+
margin: 1rem 0 1rem;
1018+
}
1019+
1020+
.doc h3 {
1021+
font-size: var(--heading-h3-sm);
1022+
}
1023+
1024+
.doc h4 {
1025+
font-size: var(--heading-h4-sm);
1026+
}
1027+
1028+
.doc h5 {
1029+
font-size: var(--heading-h4-sm);
1030+
}
1031+
1032+
.doc .admonitionblock td.content {
1033+
padding-left: 1rem;
1034+
}
1035+
1036+
.doc .sidebarblock > .content {
1037+
padding: 1.5rem;
1038+
}
1039+
1040+
.doc h1 > a.anchor, .doc h2 > a.anchor, .doc h3 > a.anchor, .doc h4 > a.anchor, .doc h5 > a.anchor, .doc h6 > a.anchor {
1041+
font-size: 18px;
1042+
}
1043+
1044+
}

src/css/footer.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
margin: 1rem 0;
8080
display: inline-block;
8181
/* FIXME this should be max-height 52px */
82-
padding: 1rem 3.5rem;
82+
padding: 0.75rem 2.5rem;
8383
border: 2px solid var(--color-footer-text);
8484
font-weight: var(--weight-bold);
8585
font-size: 1.125rem;
@@ -190,6 +190,10 @@
190190
}
191191

192192
@media screen and (min-width: 769px) {
193+
.footer-links a.white-btn {
194+
padding: 1rem 3.5rem;
195+
}
196+
193197
.footer-links .col {
194198
flex-basis: 22%;
195199
}

src/css/main.css

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ main p {
5050
color: var(--color-brand-blue-secondary);
5151
display: flex;
5252
line-height: 1;
53-
margin: calc(-1 * var(--height-spacer)) calc(-1 * var(--width-container-gutter)) var(--height-spacer);
53+
margin: var(--base-small-space) 0 var(--base-space);
54+
/* margin: calc(-1 * var(--height-spacer)) calc(-1 * var(--width-container-gutter)) var(--height-spacer); */
5455
padding: var(--base-space);
5556
border-radius: 3px;
5657
font-family: "Open Sans", sans-serif;
@@ -126,10 +127,9 @@ main p {
126127
padding-left: var(--width-container-gutter);
127128
}
128129

129-
.article-banner {
130-
/* margin: 0 calc(-1 * var(--width-main-gutter)) 1rem; */
130+
/* .article-banner {
131131
margin: var(--base-small-space) 0 var(--base-space);
132-
}
132+
} */
133133

134134
.article-header {
135135
margin-bottom: 0;
@@ -142,4 +142,18 @@ main p {
142142
.main {
143143
padding-bottom: 2rem;
144144
}
145+
146+
.article-banner a.btn {
147+
padding: 0.675rem 1rem;
148+
font-size: var(--font-small);
149+
}
150+
151+
.article-banner p {
152+
font-size: var(--font-small);
153+
}
154+
155+
.article-banner p .fab {
156+
font-size: 1.2rem;
157+
}
158+
145159
}

src/css/vars.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,11 @@
120120
--column-space: 2.5rem;
121121
--admonition-icon-space: 1rem;
122122
--admonition-content-space: 1rem;
123+
124+
/* Heading fonts for responsive */
125+
--heading-h1-sm: 2.25rem; /* ~36px */
126+
--heading-h2-sm: 1.75rem; /* ~28px */
127+
--heading-h3-sm: 1.25rem; /* ~20px */
128+
--heading-h4-sm: 0.875rem; /* ~14px */
129+
123130
}

0 commit comments

Comments
 (0)