| 1 |
@media (max-width: 839px) { |
| 2 |
|
| 3 |
#git-nav .run { gap: var(--gap-peer); } |
| 4 |
.git-repo-name, |
| 5 |
#git-repo-name { font-size: var(--text-subhead); } |
| 6 |
.git-clone-url { font-size: var(--text-fine); word-break: break-all; } |
| 7 |
.git-tree .icon { display: none; } |
| 8 |
.git-tree td, .git-tree th { padding: var(--gap-bound) var(--gap-peer); } |
| 9 |
#git-file-header .run { justify-content: flex-start; gap: var(--gap-bound); } |
| 10 |
#git-browse .col-Code { font-size: var(--text-fine); } |
| 11 |
.git-commit-meta { flex-direction: column; gap: var(--gap-bound); } |
| 12 |
.git-release-version { flex-wrap: wrap; gap: var(--gap-peer); } |
| 13 |
#git-commit [id^="diff-header-"] { font-size: var(--text-fine); } |
| 14 |
.git-blame-author { display: none; } |
| 15 |
.git-blame-date { display: none; } |
| 16 |
|
| 17 |
.container { |
| 18 |
padding: var(--gap-section); |
| 19 |
} |
| 20 |
|
| 21 |
.padded-page { |
| 22 |
padding: var(--gap-section); |
| 23 |
} |
| 24 |
|
| 25 |
.form-row { |
| 26 |
grid-template-columns: 1fr; |
| 27 |
} |
| 28 |
|
| 29 |
.tab { |
| 30 |
padding: var(--gap-group) var(--gap-section); |
| 31 |
font-size: var(--text-note); |
| 32 |
} |
| 33 |
|
| 34 |
.tab-content { |
| 35 |
padding: var(--gap-section); |
| 36 |
} |
| 37 |
|
| 38 |
.data-table th, |
| 39 |
.data-table td { |
| 40 |
padding: var(--gap-peer) var(--gap-group); |
| 41 |
font-size: var(--text-note); |
| 42 |
} |
| 43 |
|
| 44 |
.modal { |
| 45 |
max-width: 95%; |
| 46 |
} |
| 47 |
|
| 48 |
.stats-grid { |
| 49 |
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); |
| 50 |
} |
| 51 |
|
| 52 |
.content-section { |
| 53 |
padding: var(--gap-section); |
| 54 |
} |
| 55 |
|
| 56 |
.action-buttons { |
| 57 |
flex-direction: column; |
| 58 |
} |
| 59 |
|
| 60 |
.action-buttons button { |
| 61 |
width: 100%; |
| 62 |
} |
| 63 |
|
| 64 |
.analytics-grid { |
| 65 |
grid-template-columns: 1fr; |
| 66 |
} |
| 67 |
|
| 68 |
|
| 69 |
reason the header had to become one element: the checkbox, the search box |
| 70 |
and the nav are inside `<header class="chrome-band">` and nothing else. |
| 71 |
.chrome-disclose { |
| 72 |
display: block; |
| 73 |
} |
| 74 |
|
| 75 |
.chrome-search { |
| 76 |
display: none; |
| 77 |
flex: none; |
| 78 |
margin: 0; |
| 79 |
width: 100%; |
| 80 |
} |
| 81 |
|
| 82 |
.chrome-disclose-state:checked ~ .chrome-search { |
| 83 |
display: block; |
| 84 |
position: absolute; |
| 85 |
top: 100%; |
| 86 |
left: 0; |
| 87 |
right: 0; |
| 88 |
padding: var(--gap-section) var(--gap-pane); |
| 89 |
background: var(--surface-page); |
| 90 |
border-bottom: 1px solid var(--border); |
| 91 |
z-index: var(--z-header); |
| 92 |
} |
| 93 |
|
| 94 |
.chrome-band .chrome-nav { |
| 95 |
display: none; |
| 96 |
position: absolute; |
| 97 |
top: 100%; |
| 98 |
left: 0; |
| 99 |
right: 0; |
| 100 |
background: var(--surface-page); |
| 101 |
border-bottom: 1px solid var(--border); |
| 102 |
padding: var(--gap-section) var(--gap-pane); |
| 103 |
z-index: var(--z-nav); |
| 104 |
} |
| 105 |
|
| 106 |
.chrome-band { |
| 107 |
position: relative; |
| 108 |
} |
| 109 |
|
| 110 |
.chrome-disclose-state:checked ~ .chrome-nav { |
| 111 |
display: block; |
| 112 |
} |
| 113 |
|
| 114 |
.chrome-band .chrome-nav ul { |
| 115 |
flex-direction: column; |
| 116 |
gap: var(--gap-section); |
| 117 |
} |
| 118 |
|
| 119 |
|
| 120 |
.chrome-disclose-state:checked ~ .chrome-disclose span:nth-child(1) { |
| 121 |
transform: rotate(45deg) translate(5px, 5px); |
| 122 |
} |
| 123 |
|
| 124 |
.chrome-disclose-state:checked ~ .chrome-disclose span:nth-child(2) { |
| 125 |
opacity: 0; |
| 126 |
} |
| 127 |
|
| 128 |
.chrome-disclose-state:checked ~ .chrome-disclose span:nth-child(3) { |
| 129 |
transform: rotate(-45deg) translate(5px, -5px); |
| 130 |
} |
| 131 |
} |
| 132 |
|
| 133 |
|
| 134 |
@media (max-width: 599px) { |
| 135 |
.doc-title { font-size: var(--text-title); } |
| 136 |
.doc-body { font-size: var(--text-body); } |
| 137 |
.docs-index-title { font-size: var(--text-title); } |
| 138 |
} |
| 139 |
|
| 140 |
|
| 141 |
RESPONSIVE, 480px (phone) |
| 142 |
=========================================== |
| 143 |
|
| 144 |
@media (max-width: 599px) { |
| 145 |
.container { |
| 146 |
padding: var(--gap-section); |
| 147 |
} |
| 148 |
|
| 149 |
.padded-page { |
| 150 |
padding: var(--gap-section); |
| 151 |
} |
| 152 |
|
| 153 |
h1 { |
| 154 |
font-size: var(--text-title); |
| 155 |
} |
| 156 |
|
| 157 |
.centered-page h1 { |
| 158 |
font-size: var(--text-hero); |
| 159 |
} |
| 160 |
|
| 161 |
#login-container, |
| 162 |
.login-container, |
| 163 |
.form-container { |
| 164 |
max-width: 100%; |
| 165 |
padding: var(--gap-section); |
| 166 |
} |
| 167 |
|
| 168 |
.big-button { |
| 169 |
width: 100%; |
| 170 |
} |
| 171 |
|
| 172 |
.stats-grid { |
| 173 |
grid-template-columns: repeat(2, 1fr); |
| 174 |
} |
| 175 |
|
| 176 |
.tab { |
| 177 |
padding: var(--gap-peer) var(--gap-section); |
| 178 |
font-size: var(--text-note); |
| 179 |
} |
| 180 |
|
| 181 |
.tab-content { |
| 182 |
padding: var(--gap-section); |
| 183 |
} |
| 184 |
|
| 185 |
.content-section { |
| 186 |
padding: var(--gap-section); |
| 187 |
} |
| 188 |
|
| 189 |
.section-header { |
| 190 |
flex-direction: column; |
| 191 |
align-items: flex-start; |
| 192 |
gap: var(--gap-section); |
| 193 |
} |
| 194 |
|
| 195 |
|
| 196 |
.landing-fork, |
| 197 |
.tier-selector { |
| 198 |
grid-template-columns: 1fr; |
| 199 |
} |
| 200 |
|
| 201 |
.pricing-input { |
| 202 |
font-size: var(--text-title); |
| 203 |
} |
| 204 |
|
| 205 |
.pricing-currency { |
| 206 |
font-size: var(--text-title); |
| 207 |
} |
| 208 |
|
| 209 |
.calc-verdict { |
| 210 |
font-size: var(--text-body); |
| 211 |
} |
| 212 |
|
| 213 |
.calc-dials { |
| 214 |
grid-template-columns: 1fr; |
| 215 |
} |
| 216 |
|
| 217 |
.secondary-links { |
| 218 |
flex-direction: column; |
| 219 |
align-items: center; |
| 220 |
gap: var(--gap-section); |
| 221 |
} |
| 222 |
|
| 223 |
.toast-container { |
| 224 |
left: 0.75rem; |
| 225 |
right: 0.75rem; |
| 226 |
bottom: 0.75rem; |
| 227 |
} |
| 228 |
|
| 229 |
.toast { |
| 230 |
max-width: 100%; |
| 231 |
} |
| 232 |
} |
| 233 |
|
| 234 |
|