base.less 11 KB

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