base.less 11 KB

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