base.less 11 KB

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