base.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  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. 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.4;
  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. pre,
  285. samp {
  286. font-family: @font-family-monospace;
  287. font-size: 1em;
  288. }
  289. // Inline code
  290. code {
  291. padding: 2px 4px;
  292. font-size: 90%;
  293. color: @code-color;
  294. background-color: @code-bg;
  295. border-radius: @border-radius-base;
  296. }
  297. pre,
  298. code {
  299. border: 0;
  300. background-color: @white-darker;
  301. color: @gray-darker;
  302. border-radius: 3px;
  303. }
  304. pre {
  305. display: block;
  306. padding: ((@line-height-computed - 1) / 2);
  307. font-size: (@font-size-base - 1); // 14px to 13px
  308. line-height: @line-height-base;
  309. word-break: break-all;
  310. white-space: pre-wrap;
  311. word-wrap: break-word;
  312. border-radius: @border-radius-base;
  313. // Account for some code outputs that place code tags in pre tags
  314. code {
  315. padding: 0;
  316. font-size: inherit;
  317. white-space: pre-wrap;
  318. border-radius: 0;
  319. }
  320. }
  321. // Forms
  322. // ==========================================================================
  323. // 1. Correct color not being inherited.
  324. // Known issue: affects color of disabled elements.
  325. // 2. Correct font properties not being inherited.
  326. // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  327. //
  328. button,
  329. input,
  330. optgroup,
  331. select,
  332. textarea {
  333. color: inherit; // 1
  334. font: inherit; // 2
  335. margin: 0; // 3
  336. }
  337. //
  338. // Address inconsistent `text-transform` inheritance for `button` and `select`.
  339. // All other form control elements do not inherit `text-transform` values.
  340. // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  341. // Correct `select` style inheritance in Firefox.
  342. //
  343. button {
  344. overflow: visible;
  345. }
  346. button,
  347. select {
  348. text-transform: none;
  349. }
  350. //
  351. // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  352. // and `video` controls.
  353. // 2. Correct inability to style clickable `input` types in iOS.
  354. // 3. Improve usability and consistency of cursor style between image-type
  355. // `input` and others.
  356. //
  357. button,
  358. html input[type="button"], // 1
  359. input[type="reset"],
  360. input[type="submit"] {
  361. -webkit-appearance: button; // 2
  362. cursor: pointer; // 3
  363. }
  364. //
  365. // Re-set default cursor for disabled elements.
  366. //
  367. button[disabled],
  368. html input[disabled] {
  369. cursor: default;
  370. }
  371. //
  372. // Remove inner padding and border in Firefox 4+.
  373. //
  374. button::-moz-focus-inner,
  375. input::-moz-focus-inner {
  376. border: 0;
  377. padding: 0;
  378. }
  379. //
  380. // It's recommended that you don't attempt to style these elements.
  381. // Firefox's implementation doesn't respect box-sizing, padding, or width.
  382. //
  383. // 1. Address box sizing set to `content-box` in IE 8/9/10.
  384. // 2. Remove excess padding in IE 8/9/10.
  385. //
  386. input[type='checkbox'],
  387. input[type='radio'] {
  388. box-sizing: border-box; // 1
  389. padding: 0; // 2
  390. }
  391. //
  392. // Fix the cursor style for Chrome's increment/decrement buttons. For certain
  393. // `font-size` values of the `input`, it causes the cursor style of the
  394. // decrement button to change from `default` to `text`.
  395. //
  396. input[type='number']::-webkit-inner-spin-button,
  397. input[type='number']::-webkit-outer-spin-button {
  398. height: auto;
  399. }
  400. //
  401. // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  402. // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
  403. //
  404. input[type='search'] {
  405. -webkit-appearance: textfield; // 1
  406. box-sizing: content-box; //2
  407. }
  408. //
  409. // Remove inner padding and search cancel button in Safari and Chrome on OS X.
  410. // Safari (but not Chrome) clips the cancel button when the search input has
  411. // padding (and `textfield` appearance).
  412. //
  413. input[type='search']::-webkit-search-cancel-button,
  414. input[type='search']::-webkit-search-decoration {
  415. -webkit-appearance: none;
  416. }
  417. //
  418. // Define consistent border, margin, and padding.
  419. //
  420. fieldset {
  421. border: 1px solid #c0c0c0;
  422. margin: 0 2px;
  423. padding: 0.35em 0.625em 0.75em;
  424. }
  425. //
  426. // 1. Correct `color` not being inherited in IE 8/9/10/11.
  427. // 2. Remove padding so people aren't caught out if they zero out fieldsets.
  428. //
  429. legend {
  430. border: 0; // 1
  431. padding: 0; // 2
  432. }
  433. //
  434. // Remove default vertical scrollbar in IE 8/9/10/11.
  435. //
  436. textarea {
  437. overflow: auto;
  438. }
  439. //
  440. // Don't inherit the `font-weight` (applied by a rule above).
  441. // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  442. //
  443. optgroup {
  444. font-weight: bold;
  445. }
  446. // Tables
  447. // ==========================================================================
  448. table {
  449. background-color: @table-bg;
  450. border-collapse: collapse;
  451. border-spacing: 0;
  452. margin: 0 0 20px;
  453. col[class*='col-'] {
  454. position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
  455. display: table-column;
  456. float: none;
  457. }
  458. td,
  459. th {
  460. &[class*='col-'] {
  461. position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
  462. display: table-cell;
  463. float: none;
  464. }
  465. }
  466. }
  467. td,
  468. th {
  469. padding: 0;
  470. }
  471. th {
  472. text-align: left;
  473. }
  474. caption {
  475. padding-top: @table-cell-padding;
  476. padding-bottom: @table-cell-padding;
  477. color: @text-muted;
  478. text-align: left;
  479. }
  480. // These styles are still used in getsentry
  481. .table {
  482. width: 100%;
  483. max-width: 100%;
  484. margin-bottom: @line-height-computed;
  485. // Cells
  486. > thead,
  487. > tbody,
  488. > tfoot {
  489. > tr {
  490. > th,
  491. > td {
  492. padding: @table-cell-padding;
  493. line-height: @line-height-base;
  494. vertical-align: top;
  495. border-top: 1px solid @table-border-color;
  496. }
  497. }
  498. }
  499. // Bottom align for column headings
  500. > thead > tr > th {
  501. vertical-align: bottom;
  502. border-bottom: 2px solid @table-border-color;
  503. }
  504. // Remove top border from thead by default
  505. > caption + thead,
  506. > colgroup + thead,
  507. > thead:first-child {
  508. > tr:first-child {
  509. > th,
  510. > td {
  511. border-top: 0;
  512. }
  513. }
  514. }
  515. // Account for multiple tbody instances
  516. > tbody + tbody {
  517. border-top: 2px solid @table-border-color;
  518. }
  519. // Nesting
  520. .table {
  521. background-color: @body-bg;
  522. }
  523. }