base.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. @font-family-base: 'Rubik', 'Avenir Next', 'Helvetica Neue', sans-serif;
  2. @font-family-code: 'Roboto Mono', Consolas, 'Courier New', monospace;
  3. * {
  4. box-sizing: border-box;
  5. }
  6. *:before,
  7. *:after {
  8. box-sizing: border-box;
  9. }
  10. html {
  11. font-family: sans-serif;
  12. font-size: 100%;
  13. -ms-text-size-adjust: 100%;
  14. -webkit-text-size-adjust: 100%;
  15. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  16. height: 100%;
  17. }
  18. body {
  19. font-family: @font-family-base;
  20. margin: 0;
  21. font-size: 87.5%;
  22. line-height: 1.4;
  23. color: @gray-darker;
  24. background: @white-dark;
  25. -webkit-font-smoothing: antialiased;
  26. -moz-osx-font-smoothing: grayscale;
  27. overflow-x: hidden;
  28. min-height: 100vh;
  29. }
  30. // Applied to body
  31. body.theme-dark {
  32. // theme.surface200
  33. background: #1A141F;
  34. // theme.gray400
  35. color: #D6D0DC;
  36. }
  37. body.theme-system {
  38. @media (prefers-color-scheme: dark) {
  39. // theme.surface200
  40. background: #1A141F;
  41. // theme.gray400
  42. color: #D6D0DC;
  43. }
  44. }
  45. h1,
  46. h2,
  47. h3,
  48. h4,
  49. h5,
  50. h6 {
  51. margin: 0 0 20px;
  52. line-height: 1.2;
  53. font-weight: 600;
  54. }
  55. h1 {
  56. font-size: 2.25rem;
  57. }
  58. h2 {
  59. font-size: 1.875rem;
  60. }
  61. h3 {
  62. font-size: 1.625rem;
  63. }
  64. h4 {
  65. font-size: 1.375rem;
  66. }
  67. h5 {
  68. font-size: 1.25rem;
  69. }
  70. h6 {
  71. font-size: 1.125rem;
  72. }
  73. dl {
  74. margin-top: 0; // Remove browser default
  75. margin-bottom: @line-height-computed;
  76. }
  77. dt,
  78. dd {
  79. line-height: @line-height-base;
  80. }
  81. dt {
  82. font-weight: 700;
  83. }
  84. dd {
  85. margin-left: 0; // Undo browser default
  86. }
  87. ul,
  88. ol {
  89. margin-top: 0;
  90. margin-bottom: (@line-height-computed / 2);
  91. padding: 0 0 0 20px;
  92. ul,
  93. ol {
  94. margin-bottom: 0;
  95. }
  96. }
  97. p,
  98. pre {
  99. margin: 0 0 20px;
  100. }
  101. ul,
  102. ol {
  103. margin: 0 0 20px;
  104. }
  105. p,
  106. ul,
  107. ol,
  108. blockquote {
  109. padding-top: 0;
  110. margin-top: 0;
  111. line-height: 1.4;
  112. }
  113. input,
  114. button,
  115. select,
  116. textarea {
  117. font-family: inherit;
  118. font-size: inherit;
  119. line-height: inherit;
  120. }
  121. //
  122. // Scaffolding
  123. // --------------------------------------------------
  124. // Reset the box-sizing
  125. //
  126. // Heads up! This reset may cause conflicts with some third-party widgets.
  127. // For recommendations on resolving such conflicts, see
  128. // https://getbootstrap.com/docs/3.4/getting-started/#third-box-sizing
  129. // Reset fonts for relevant elements
  130. input,
  131. button,
  132. select,
  133. textarea {
  134. font-family: inherit;
  135. font-size: inherit;
  136. line-height: inherit;
  137. }
  138. a {
  139. cursor: pointer;
  140. transition: color linear 0.2s;
  141. color: @link-color;
  142. text-decoration: none;
  143. &:hover {
  144. text-decoration: none;
  145. }
  146. }
  147. // Figures
  148. //
  149. // We reset this here because previously Normalize had no `figure` margins. This
  150. // ensures we don't break anyone's use of the element.
  151. figure {
  152. margin: 0;
  153. }
  154. img {
  155. vertical-align: middle;
  156. max-width: 100%;
  157. }
  158. /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
  159. //
  160. // 1. Set default font family to sans-serif.
  161. // 2. Prevent iOS and IE text size adjust after device orientation change,
  162. // without disabling user zoom.
  163. //
  164. //
  165. // Remove default margin.
  166. //
  167. // HTML5 display definitions
  168. // ==========================================================================
  169. //
  170. // Correct `block` display not defined for any HTML5 element in IE 8/9.
  171. // Correct `block` display not defined for `details` or `summary` in IE 10/11
  172. // and Firefox.
  173. // Correct `block` display not defined for `main` in IE 11.
  174. //
  175. article,
  176. aside,
  177. details,
  178. figcaption,
  179. figure,
  180. footer,
  181. header,
  182. hgroup,
  183. main,
  184. menu,
  185. nav,
  186. section,
  187. summary {
  188. display: block;
  189. }
  190. //
  191. // 1. Correct `inline-block` display not defined in IE 8/9.
  192. // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  193. //
  194. audio,
  195. canvas,
  196. progress,
  197. video {
  198. display: inline-block; // 1
  199. vertical-align: baseline; // 2
  200. }
  201. //
  202. // Prevent modern browsers from displaying `audio` without controls.
  203. // Remove excess height in iOS 5 devices.
  204. //
  205. audio:not([controls]) {
  206. display: none;
  207. height: 0;
  208. }
  209. //
  210. // Address `[hidden]` styling not present in IE 8/9/10.
  211. // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
  212. //
  213. [hidden],
  214. template {
  215. display: none;
  216. }
  217. // Links
  218. // ==========================================================================
  219. //
  220. // Remove the gray background color from active links in IE 10.
  221. //
  222. a {
  223. background-color: transparent;
  224. }
  225. //
  226. // Improve readability of focused elements when they are also in an
  227. // active/hover state.
  228. //
  229. a:active,
  230. a:hover {
  231. outline: 0;
  232. }
  233. // Text-level semantics
  234. // ==========================================================================
  235. //
  236. // 1. Remove the bottom border in Chrome 57- and Firefox 39-.
  237. // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  238. //
  239. abbr[title] {
  240. border-bottom: none; // 1
  241. text-decoration: underline; // 2
  242. text-decoration: underline dotted; // 2
  243. }
  244. b,
  245. strong {
  246. font-weight: bold;
  247. }
  248. dfn {
  249. font-style: italic;
  250. }
  251. mark {
  252. background: #ff0;
  253. color: #000;
  254. }
  255. small {
  256. font-size: 14px;
  257. }
  258. //
  259. // Prevent `sub` and `sup` affecting `line-height` in all browsers.
  260. //
  261. sub,
  262. sup {
  263. font-size: 75%;
  264. line-height: 0;
  265. position: relative;
  266. vertical-align: baseline;
  267. }
  268. sup {
  269. top: -0.5em;
  270. }
  271. sub {
  272. bottom: -0.25em;
  273. }
  274. // Embedded content
  275. // ==========================================================================
  276. //
  277. // Remove border when inside `a` element in IE 8/9/10.
  278. //
  279. img {
  280. border: 0;
  281. }
  282. //
  283. // Correct overflow not hidden in IE 9/10/11.
  284. //
  285. svg:not(:root) {
  286. overflow: hidden;
  287. }
  288. // Grouping content
  289. // ==========================================================================
  290. hr {
  291. box-sizing: content-box;
  292. height: 0;
  293. }
  294. //
  295. // Code (inline and block)
  296. // --------------------------------------------------
  297. // Inline and block code styles
  298. code,
  299. kbd,
  300. pre,
  301. samp {
  302. font-family: @font-family-monospace;
  303. font-size: 1em;
  304. }
  305. // Inline code
  306. code {
  307. padding: 2px 4px;
  308. font-size: 90%;
  309. color: @code-color;
  310. background-color: @code-bg;
  311. border-radius: @border-radius-base;
  312. }
  313. // User input typically entered via keyboard
  314. kbd {
  315. padding: 2px 4px;
  316. font-size: 90%;
  317. color: @kbd-color;
  318. background-color: @kbd-bg;
  319. border-radius: @border-radius-small;
  320. box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  321. kbd {
  322. padding: 0;
  323. font-size: 100%;
  324. font-weight: 700;
  325. box-shadow: none;
  326. }
  327. }
  328. pre,
  329. code {
  330. border: 0;
  331. background-color: @white-darker;
  332. color: @gray-darker;
  333. border-radius: 3px;
  334. }
  335. pre {
  336. display: block;
  337. padding: ((@line-height-computed - 1) / 2);
  338. font-size: (@font-size-base - 1); // 14px to 13px
  339. line-height: @line-height-base;
  340. word-break: break-all;
  341. white-space: pre-wrap;
  342. word-wrap: break-word;
  343. border-radius: @border-radius-base;
  344. // Account for some code outputs that place code tags in pre tags
  345. code {
  346. padding: 0;
  347. font-size: inherit;
  348. white-space: pre-wrap;
  349. border-radius: 0;
  350. }
  351. }
  352. // Forms
  353. // ==========================================================================
  354. // 1. Correct color not being inherited.
  355. // Known issue: affects color of disabled elements.
  356. // 2. Correct font properties not being inherited.
  357. // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  358. //
  359. button,
  360. input,
  361. optgroup,
  362. select,
  363. textarea {
  364. color: inherit; // 1
  365. font: inherit; // 2
  366. margin: 0; // 3
  367. }
  368. //
  369. // Address inconsistent `text-transform` inheritance for `button` and `select`.
  370. // All other form control elements do not inherit `text-transform` values.
  371. // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  372. // Correct `select` style inheritance in Firefox.
  373. //
  374. button {
  375. overflow: visible;
  376. }
  377. button,
  378. select {
  379. text-transform: none;
  380. }
  381. //
  382. // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  383. // and `video` controls.
  384. // 2. Correct inability to style clickable `input` types in iOS.
  385. // 3. Improve usability and consistency of cursor style between image-type
  386. // `input` and others.
  387. //
  388. button,
  389. html input[type="button"], // 1
  390. input[type="reset"],
  391. input[type="submit"] {
  392. -webkit-appearance: button; // 2
  393. cursor: pointer; // 3
  394. }
  395. //
  396. // Re-set default cursor for disabled elements.
  397. //
  398. button[disabled],
  399. html input[disabled] {
  400. cursor: default;
  401. }
  402. //
  403. // Remove inner padding and border in Firefox 4+.
  404. //
  405. button::-moz-focus-inner,
  406. input::-moz-focus-inner {
  407. border: 0;
  408. padding: 0;
  409. }
  410. //
  411. // It's recommended that you don't attempt to style these elements.
  412. // Firefox's implementation doesn't respect box-sizing, padding, or width.
  413. //
  414. // 1. Address box sizing set to `content-box` in IE 8/9/10.
  415. // 2. Remove excess padding in IE 8/9/10.
  416. //
  417. input[type='checkbox'],
  418. input[type='radio'] {
  419. box-sizing: border-box; // 1
  420. padding: 0; // 2
  421. }
  422. //
  423. // Fix the cursor style for Chrome's increment/decrement buttons. For certain
  424. // `font-size` values of the `input`, it causes the cursor style of the
  425. // decrement button to change from `default` to `text`.
  426. //
  427. input[type='number']::-webkit-inner-spin-button,
  428. input[type='number']::-webkit-outer-spin-button {
  429. height: auto;
  430. }
  431. //
  432. // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  433. // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
  434. //
  435. input[type='search'] {
  436. -webkit-appearance: textfield; // 1
  437. box-sizing: content-box; //2
  438. }
  439. //
  440. // Remove inner padding and search cancel button in Safari and Chrome on OS X.
  441. // Safari (but not Chrome) clips the cancel button when the search input has
  442. // padding (and `textfield` appearance).
  443. //
  444. input[type='search']::-webkit-search-cancel-button,
  445. input[type='search']::-webkit-search-decoration {
  446. -webkit-appearance: none;
  447. }
  448. //
  449. // Define consistent border, margin, and padding.
  450. //
  451. fieldset {
  452. border: 1px solid #c0c0c0;
  453. margin: 0 2px;
  454. padding: 0.35em 0.625em 0.75em;
  455. }
  456. //
  457. // 1. Correct `color` not being inherited in IE 8/9/10/11.
  458. // 2. Remove padding so people aren't caught out if they zero out fieldsets.
  459. //
  460. legend {
  461. border: 0; // 1
  462. padding: 0; // 2
  463. }
  464. //
  465. // Remove default vertical scrollbar in IE 8/9/10/11.
  466. //
  467. textarea {
  468. overflow: auto;
  469. }
  470. //
  471. // Don't inherit the `font-weight` (applied by a rule above).
  472. // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  473. //
  474. optgroup {
  475. font-weight: bold;
  476. }
  477. // Tables
  478. // ==========================================================================
  479. table {
  480. background-color: @table-bg;
  481. border-collapse: collapse;
  482. border-spacing: 0;
  483. margin: 0 0 20px;
  484. col[class*='col-'] {
  485. position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
  486. display: table-column;
  487. float: none;
  488. }
  489. td,
  490. th {
  491. &[class*='col-'] {
  492. position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
  493. display: table-cell;
  494. float: none;
  495. }
  496. }
  497. }
  498. td,
  499. th {
  500. padding: 0;
  501. }
  502. th {
  503. text-align: left;
  504. }
  505. caption {
  506. padding-top: @table-cell-padding;
  507. padding-bottom: @table-cell-padding;
  508. color: @text-muted;
  509. text-align: left;
  510. }
  511. // These styles are still used in getsentry
  512. .table {
  513. width: 100%;
  514. max-width: 100%;
  515. margin-bottom: @line-height-computed;
  516. // Cells
  517. > thead,
  518. > tbody,
  519. > tfoot {
  520. > tr {
  521. > th,
  522. > td {
  523. padding: @table-cell-padding;
  524. line-height: @line-height-base;
  525. vertical-align: top;
  526. border-top: 1px solid @table-border-color;
  527. }
  528. }
  529. }
  530. // Bottom align for column headings
  531. > thead > tr > th {
  532. vertical-align: bottom;
  533. border-bottom: 2px solid @table-border-color;
  534. }
  535. // Remove top border from thead by default
  536. > caption + thead,
  537. > colgroup + thead,
  538. > thead:first-child {
  539. > tr:first-child {
  540. > th,
  541. > td {
  542. border-top: 0;
  543. }
  544. }
  545. }
  546. // Account for multiple tbody instances
  547. > tbody + tbody {
  548. border-top: 2px solid @table-border-color;
  549. }
  550. // Nesting
  551. .table {
  552. background-color: @body-bg;
  553. }
  554. }