github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/doc/rapidoc.scss (about) 1 @import 'variables'; 2 3 .nav-bar { 4 top: 0; 5 border-right: solid 1px #EFEFEF; 6 7 > div:first-child { 8 padding: 0!important; 9 10 .m-btn.toolbar-btn { 11 position: absolute; 12 right: $spacing2; 13 margin-top: $spacing1; 14 font-size: $fontSize5; 15 } 16 } 17 18 > div:nth-child(2) { 19 --nav-hover-bg-color: transparent; 20 flex-shrink: 0; 21 } 22 } 23 24 #nav-bar-search { 25 --nav-hover-bg-color: #{$mutedBackground}; 26 padding: $spacing3; 27 font-size: $fontSize4; 28 font-family: var(--font-regular); 29 30 & + div { 31 --title-font-size: #{$fontSize3}; 32 padding-top: $spacing2; 33 } 34 35 &::-webkit-input-placeholder { 36 text-transform: capitalize; 37 color: $colorSecondaryForeground; 38 } 39 &::-moz-placeholder { 40 text-transform: capitalize; 41 color: $colorSecondaryForeground; 42 } 43 &:-ms-input-placeholder { 44 text-transform: capitalize; 45 color: $colorSecondaryForeground; 46 } 47 &:-moz-placeholder { 48 text-transform: capitalize; 49 color: $colorSecondaryForeground; 50 } 51 &::placeholder { 52 text-transform: capitalize; 53 color: $colorSecondaryForeground; 54 } 55 } 56 57 .nav-bar-info { 58 color: $colorPrimaryForeground; 59 } 60 61 .nav-bar-tag { 62 margin-left: $spacing5; 63 color: $colorPrimaryForeground; 64 display: flex; 65 66 & + & { 67 /* hides empty search results */ 68 margin-top: -48px; 69 background: #eee; 70 z-index: 1; 71 position: relative; 72 } 73 74 @at-root { 75 div#{&}:last-of-type { 76 color: transparent; 77 pointer-events: none; 78 } 79 } 80 } 81 82 div.nav-bar-path { 83 margin-left: 12px; 84 85 &.active { 86 --nav-accent-color: #{$colorPrimaryBorder}; 87 } 88 } 89 90 div.nav-bar-h2 { 91 &.active { 92 --nav-accent-color: #{$colorPrimaryBorder}; 93 } 94 } 95 96 div.nav-bar-tag { 97 &.active { 98 --nav-accent-color: #{$colorPrimaryBorder}; 99 } 100 } 101 102 103 .nav-scroll .nav-bar-section { 104 font-size: $fontSize4; 105 border-left: solid $spacing2 transparent; 106 border-bottom: 0; 107 padding-left: $spacing4; 108 color: $colorPrimaryForeground; 109 filter: none; 110 text-align: left; 111 text-transform: lowercase; 112 113 &:first-letter { text-transform: uppercase; } 114 } 115 116 .main-header { 117 background: $colorAccentBackground; 118 119 .hamburger-btn { 120 --primary-color: #{$colorAccentForeground}; 121 position: absolute; 122 right: $spacing2; 123 border-color: $colorAccentBackground; 124 } 125 } 126 127 .body .main-content { 128 &::before { 129 content: ''; 130 display: block; 131 height: 50px; 132 133 @media (min-width: 768px) { 134 height: 34px; 135 } 136 } 137 } 138 139 div.tag.title { 140 padding-bottom: $spacing7; 141 text-transform: none; 142 } 143 144 .m-markdown { 145 --font-size-regular: #{$fontSize4}; 146 } 147 148 .section-gap--read-mode { 149 --font-size-regular: #{$fontSize5}; 150 --font-size-small: #{$fontSize4}; 151 152 margin-bottom: $spacing8; 153 border-top: 0!important; 154 font-weight: $fontWeightLight; 155 156 &[id=overview] { 157 margin-top: -$mobileHeaderHeight; 158 padding-top: $mobileHeaderHeight + $spacing8; 159 160 @media (min-width: 768px) { 161 margin-top: 0; 162 padding-top: $spacing8; 163 } 164 } 165 166 h2 { 167 margin-top: -$mobileHeaderHeight; 168 margin-bottom: $spacing7; 169 padding-top: $mobileHeaderHeight + $spacing8; 170 171 @media (min-width: 768px) { 172 margin-top: $spacing8; 173 padding-top: 0; 174 } 175 176 & + .mono-font.regular-font-size { 177 --font-size-regular: #{$fontSize4}; 178 179 margin-bottom: $spacing5; 180 border-left: solid $spacing5 $colorEmphasizedBackground; 181 background: $colorEmphasizedBackground; 182 183 & + .m-markdown { 184 margin-bottom: $spacing8; 185 } 186 } 187 } 188 } 189 190 table:not(.m-table) { 191 border-spacing: 0; 192 border-collapse: collapse; 193 margin-bottom: $spacing8; 194 width: 100%; 195 table-layout: fixed; 196 197 td:not(:empty) { 198 border: solid 1px $colorPrimaryBorder; 199 padding: 4px !important; 200 line-height: 28 / 16 * 1rem; // $fontSize5 + $spacing4 in rem 201 } 202 } 203 204 .table-responsive { 205 table:not(.basic-table) { 206 overflow-wrap: break-word; 207 208 colgroup col { 209 width: 25%!important; 210 211 &:nth-child(3) { 212 width: 50%!important; 213 } 214 } 215 } 216 } 217 218 .basic-table__cell { 219 white-space: normal!important; 220 } 221 222 .table-title.top-gap { 223 --font-size-small: #{$fontSize5}; 224 225 margin-top: $spacing3; 226 display: inline-block; 227 text-transform: lowercase; 228 font-weight: $fontWeightNormal; 229 230 &:first-letter { text-transform: uppercase; } 231 232 &.row { 233 span:not(.mono-font):not(:empty) { 234 padding: $spacing1 $spacing2; 235 font-size: $fontSize4; 236 vertical-align: top; 237 background: $mutedBackground; 238 border-radius: $borderRadius2; 239 } 240 } 241 } 242 243 .expanded-endpoint-body { 244 margin-top: -$mobileHeaderHeight; 245 border-top: solid $mobileHeaderHeight + $spacing7 transparent; 246 247 @media (min-width: 768px) { 248 margin-top: 0; 249 border-top: 0; 250 padding-top: $spacing7!important; 251 } 252 253 > .mono-font.regular-font-size { 254 > .regular-font.upper.method-fg.bold-text + span { 255 overflow-wrap: break-word; 256 } 257 } 258 } 259 260 table.m-table { 261 margin-bottom: $spacing3; 262 } 263 264 .divider { 265 --primary-color: transparent; 266 } 267 268 .tab-buttons { 269 .tab-btn { 270 border: 0!important; 271 border-radius: $borderRadius2 $borderRadius2 0 0; 272 padding: 0 $spacing5; 273 font: inherit; 274 font-size: $fontSize3; 275 font-weight: $fontWeightNormal; 276 277 &.active { 278 color: #fff; 279 background: #545454; 280 font-weight: $fontWeightNormal; 281 } 282 } 283 } 284 285 .tab-content.m-markdown { 286 .toolbar-btn { 287 margin-right: $spacing3; 288 } 289 290 pre { 291 margin-top: 0; 292 border-radius: 0 $borderRadius2 $borderRadius2; 293 background-color: $colorDarkGrey; 294 295 code { 296 color: $colorLightGrey; 297 } 298 } 299 } 300 301 .expanded-req-resp-container { 302 padding-top: $spacing4; 303 } 304 305 .response-panel.read-mode { 306 border-top: 0; 307 } 308 309 .collapsed-descr { 310 .bold-text.upper { 311 text-transform: capitalize; 312 } 313 } 314 315 .req-res-title, .resp-headers.upper { 316 display: inline-block; 317 text-transform: lowercase; 318 font-weight: $fontWeightNormal; 319 320 &:first-letter { text-transform: uppercase; } 321 } 322