all.less 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078
  1. @import 'colors.less';
  2. @import 'z-index.less';
  3. @import 'border-radius.less';
  4. //
  5. // Variables
  6. // --------------------------------------------------
  7. @editor-header-logo-background: url(../../../public/img/ol-brand/overleaf-o-white.svg)
  8. center / contain no-repeat;
  9. @editor-header-logo-background-active: url(../../../public/img/ol-brand/overleaf-o-white.svg)
  10. center / contain no-repeat;
  11. @editor-loading-logo-padding-top: 115.44%;
  12. @editor-loading-logo-background-url: url(../../../public/img/ol-brand/overleaf-o-grey.svg);
  13. @editor-loading-logo-foreground-url: url(../../../public/img/ol-brand/overleaf-o.svg);
  14. @editor-search-count-color: @neutral-70;
  15. //== Scaffolding
  16. //
  17. // ## Settings for some of the most global styles.
  18. //** Background color for `<body>`.
  19. @body-bg: #fff;
  20. //** Global text color on `<body>`.
  21. @text-color: @content-secondary;
  22. //** Global textual link color.
  23. @link-color: @blue;
  24. @link-active-color: @green-darker;
  25. //** Link hover color set via `darken()` function.
  26. @link-hover-color: @blue-dark;
  27. @link-color-alt: @green-dark;
  28. @link-hover-color-alt: @green-darker;
  29. @hr-border-alt: @gray-lighter;
  30. //== Typography
  31. //
  32. //## Font, line-height, and color for body text, headings, and more.
  33. @font-family-sans-serif: 'Lato', sans-serif;
  34. @font-family-serif: 'Merriweather', serif;
  35. //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
  36. @font-family-monospace: Menlo, Monaco, Consolas, 'Courier New', monospace;
  37. @font-family-base: @font-family-sans-serif;
  38. @font-size-base: 16px;
  39. @font-size-large: ceil((@font-size-base * 1.25)); // ~20px
  40. @font-size-small: ceil((@font-size-base * 0.85)); // ~14px
  41. @font-size-extra-small: ceil((@font-size-base * 0.7)); // ~12px
  42. @font-size-h1: floor((@font-size-base * 2)); // ~32px
  43. @font-size-h2: floor((@font-size-base * 1.6)); // ~25px
  44. @font-size-h3: ceil((@font-size-base * 1.25)); // ~20px
  45. @font-size-h4: ceil((@font-size-base * 1.1)); // ~18px
  46. @font-size-h5: @font-size-base;
  47. @font-size-h6: ceil((@font-size-base * 0.85)); // ~14px
  48. //** Unit-less `line-height` for use in components like buttons.
  49. @line-height-base: 1.5625; // 20/14
  50. //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
  51. @line-height-computed: floor((@font-size-base * @line-height-base)); // ~25px
  52. //** By default, this inherits from the `<body>`.
  53. @headings-font-family: @font-family-serif;
  54. @headings-font-weight: 500;
  55. @headings-line-height: 1.35;
  56. @headings-color: @content-primary;
  57. //-- Iconography
  58. //
  59. //## Specify custom locations of the include Glyphicons icon font. Useful for those including Bootstrap via Bower.
  60. @icon-font-path: '../fonts/';
  61. @icon-font-name: 'glyphicons-halflings-regular';
  62. @icon-font-svg-id: 'glyphicons_halflingsregular';
  63. //== Components
  64. //
  65. //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
  66. @margin-xs: 5px;
  67. @margin-sm: 10px;
  68. @margin-md: 20px;
  69. @margin-lg: 30px;
  70. @margin-xl: 40px;
  71. @margin-xxl: 50px;
  72. @padding-base-vertical: 5px;
  73. @padding-base-horizontal: 16px;
  74. @padding-large-vertical: 10px;
  75. @padding-large-horizontal: 16px;
  76. @padding-small-vertical: 5px;
  77. @padding-small-horizontal: 10px;
  78. @padding-xs-vertical: @border-size; // border size is removed in .button-size mixin
  79. @padding-xs-horizontal: 8px;
  80. @padding-xs: 5px;
  81. @padding-sm: 10px;
  82. @padding-md: 20px;
  83. @padding-lg: 30px;
  84. @padding-xl: 40px;
  85. @padding-xxl: 50px;
  86. @line-height-large: 1.33;
  87. @line-height-small: 1.5;
  88. @border-radius-base: 3px;
  89. @border-radius-base-new: 4px;
  90. @border-radius-large: 5px;
  91. @border-radius-small: 2px;
  92. @border-width-sm: 1px;
  93. @border-width-base: 3px; // only used by plans and cards
  94. @border-size: 1px;
  95. @border-color-base: @neutral-60;
  96. @border-color-disabled: @color-disabled;
  97. @spacing-00: 0px;
  98. @spacing-01: 2px;
  99. @spacing-02: 4px;
  100. @spacing-03: 6px;
  101. @spacing-04: 8px;
  102. @spacing-05: 12px;
  103. @spacing-06: 16px;
  104. @spacing-07: 20px;
  105. @spacing-08: 24px;
  106. @spacing-09: 32px;
  107. @spacing-10: 40px;
  108. @spacing-11: 48px;
  109. @spacing-12: 56px;
  110. @spacing-13: 64px;
  111. @spacing-14: 72px;
  112. @spacing-15: 80px;
  113. @spacing-16: 96px;
  114. @font-size-01: 0.75rem; // 12px
  115. @font-size-02: 0.875rem; // 14px
  116. @font-size-03: 1rem; // 16px
  117. @font-size-04: 1.125rem; // 18px
  118. @font-size-05: 1.25rem; // 20px
  119. @font-size-06: 1.5rem; // 24px
  120. @font-size-07: 1.875rem; // 30px
  121. @font-size-08: 2.25rem; // 36px
  122. @font-size-09: 3rem; // 48px
  123. @font-size-10: 3.25rem; // 52px
  124. @font-size-11: 3.75rem; // 60px
  125. @font-size-12: 4.5rem; // 72px
  126. @font-size-13: 6rem; // 96px
  127. @font-size-body-base: @font-size-03;
  128. @line-height-01: 1rem; // 16px
  129. @line-height-02: 1.25rem; // 20px
  130. @line-height-03: 1.5rem; // 24px
  131. @line-height-04: 1.75rem; // 28px
  132. @line-height-05: 2rem; // 32px
  133. @line-height-06: 2.5rem; // 40px
  134. @line-height-07: 3rem; // 48px
  135. @line-height-08: 4rem; // 64px
  136. @line-height-09: 4.25rem; // 68px
  137. @line-height-10: 5rem; // 80px
  138. @line-height-11: 6rem; // 96px
  139. @line-height-12: 8rem; // 128px
  140. //** Horizontal line color.
  141. @hr-border: @neutral-20;
  142. @btn-switch-color: @neutral-70;
  143. @btn-switch-hover-color: darken(@neutral-70, 8%);
  144. //** Global color for active items (e.g., navs or dropdowns).
  145. @component-active-color: #fff;
  146. //** Global background color for active items (e.g., navs or dropdowns).
  147. @component-active-bg: @brand-primary;
  148. //** Width of the `border` for generating carets that indicator dropdowns.
  149. @caret-width-base: 4px;
  150. //** Carets increase slightly in size for larger components.
  151. @caret-width-large: 5px;
  152. //== Tables
  153. //
  154. //## Customizes the `.table` component with basic values, each used across all table variations.
  155. //** Padding for `<th>`s and `<td>`s.
  156. @table-cell-padding: 8px;
  157. //** Padding for cells in `.table-condensed`.
  158. @table-condensed-cell-padding: 5px;
  159. //** Default background color used for all tables.
  160. @table-bg: transparent;
  161. //** Background color used for `.table-striped`.
  162. @table-bg-accent: #f9f9f9;
  163. //** Background color used for `.table-hover`.
  164. @table-bg-hover: #f5f5f5;
  165. @table-bg-active: @table-bg-hover;
  166. //** Border color for table and cell borders.
  167. @table-border-color: @neutral-20;
  168. //== Buttons
  169. //
  170. //## For each of Bootstrap's buttons, define text, background and border color.
  171. @btn-font-weight: 700;
  172. @btn-default-color: #fff;
  173. @btn-default-bg: @neutral-70;
  174. @btn-default-border: transparent;
  175. @btn-primary-color: #fff;
  176. @btn-primary-bg: @green;
  177. @btn-primary-border: transparent;
  178. @btn-info-color: #fff;
  179. @btn-info-bg: @blue;
  180. @btn-info-border: transparent;
  181. @btn-info-ghost-color: @blue-50;
  182. @btn-info-ghost-bg: transparent;
  183. @btn-info-ghost-border: transparent;
  184. @btn-warning-color: #fff;
  185. @btn-warning-bg: @orange;
  186. @btn-warning-border: transparent;
  187. @btn-danger-color: #fff;
  188. @btn-danger-bg: @red;
  189. @btn-danger-border: transparent;
  190. @btn-danger-ghost-color: @red-50;
  191. @btn-danger-ghost-bg: transparent;
  192. @btn-danger-ghost-border: transparent;
  193. @btn-link-disabled-color: @gray-light;
  194. //== Forms
  195. //
  196. //##
  197. //** `<input>` background color
  198. @input-bg: #fff;
  199. //** `<input disabled>` background color
  200. @input-bg-disabled: @color-disabled;
  201. //** Text color for `<input>`s
  202. @input-color: @neutral-90;
  203. //** `<input>` border color
  204. @input-border: @border-color-base;
  205. //** `<input>` border radius
  206. @input-border-radius: 4px;
  207. //** Border color for inputs on focus
  208. @input-border-focus: @blue-50;
  209. //** Bordersize for inputs
  210. @input-border-size: @border-size;
  211. @input-padding: @padding-sm;
  212. //** Placeholder text color
  213. @input-color-placeholder: @neutral-60;
  214. //** Default `.form-control` height
  215. @input-height-base: @line-height-computed + (@padding-base-vertical * 2); // Make inputs at least the height of their button counterpart. buttons and inputs have same border height
  216. //** Large `.form-control` height
  217. @input-height-large: (
  218. ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) +
  219. 2
  220. );
  221. //** Small `.form-control` height
  222. @input-height-small: (
  223. floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) +
  224. 2
  225. );
  226. @legend-color: @gray-dark;
  227. @legend-border-color: #e5e5e5;
  228. //** Background color for textual input addons
  229. @input-group-addon-bg: @gray-lighter;
  230. //** Border color for textual input addons
  231. @input-group-addon-border-color: @input-border;
  232. //== Dropdowns
  233. //
  234. //## Dropdown menu container and contents.
  235. //** Background for the dropdown menu.
  236. @dropdown-bg: #fff;
  237. //** Dropdown menu `border-color`.
  238. @dropdown-border: rgba(0, 0, 0, 0.15);
  239. //** Dropdown menu `border-color` **for IE8**.
  240. @dropdown-fallback-border: #ccc;
  241. //** Divider color for between dropdown items.
  242. @dropdown-divider-bg: #e5e5e5;
  243. //** Dropdown link text color.
  244. @dropdown-link-color: @gray-dark;
  245. //** Hover color for dropdown links.
  246. @dropdown-link-hover-color: #fff;
  247. //** Hover background for dropdown links.
  248. @dropdown-link-hover-bg: @brand-primary;
  249. //** Active dropdown menu item text color.
  250. @dropdown-link-active-color: @component-active-color;
  251. //** Active dropdown menu item background color.
  252. @dropdown-link-active-bg: @component-active-bg;
  253. //** Disabled dropdown menu item background color.
  254. @dropdown-link-disabled-color: @gray-light;
  255. //** Text color for headers within dropdown menus.
  256. @dropdown-header-color: @gray-light;
  257. // Note: Deprecated @dropdown-caret-color as of v3.1.0
  258. @dropdown-caret-color: #000;
  259. //== List group
  260. //
  261. //##
  262. //** Background color on `.list-group-item`
  263. @list-group-bg: #fff;
  264. //** `.list-group-item` border color
  265. @list-group-border: #ddd;
  266. //** List group border radius
  267. @list-group-border-radius: @border-radius-base;
  268. //** Background color of single list elements on hover
  269. @list-group-hover-bg: @component-active-bg;
  270. //** Text color of single list elements on hover
  271. @list-group-hover-color: @component-active-color;
  272. //** Text color of active list elements
  273. @list-group-active-color: @component-active-color;
  274. //** Background color of active list elements
  275. @list-group-active-bg: @component-active-bg;
  276. //** Border color of active list elements
  277. @list-group-active-border: @list-group-active-bg;
  278. @list-group-active-text-color: lighten(@list-group-active-bg, 40%);
  279. @list-group-link-color: #555;
  280. @list-group-link-heading-color: #333;
  281. //-- Z-index master list
  282. //
  283. // Warning: Avoid customizing these values. They're used for a bird's eye view
  284. // of components dependent on the z-axis and are designed to all work together.
  285. //
  286. // Note: These variables are not generated into the Customizer.
  287. @zindex-navbar: 1000;
  288. @zindex-dropdown: 1000;
  289. @zindex-navbar-fixed: 1030;
  290. @zindex-modal-background: 1040;
  291. @zindex-modal: 1050;
  292. @zindex-popover: 1060;
  293. @zindex-tooltip: 1070;
  294. //== Media queries breakpoints
  295. //
  296. //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
  297. // Extra small screen / phone
  298. // Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
  299. @screen-xs: 480px;
  300. @screen-xs-min: @screen-xs;
  301. @screen-phone: @screen-xs-min;
  302. // Small screen / tablet
  303. // Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
  304. @screen-sm: 768px;
  305. @screen-sm-min: @screen-sm;
  306. @screen-tablet: @screen-sm-min;
  307. // Medium screen / desktop
  308. // Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
  309. @screen-md: 992px;
  310. @screen-md-min: @screen-md;
  311. @screen-desktop: @screen-md-min;
  312. // Large screen / wide desktop
  313. // Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
  314. @screen-lg: 1200px;
  315. @screen-lg-min: @screen-lg;
  316. @screen-lg-desktop: @screen-lg-min;
  317. // So media queries don't overlap when required, provide a maximum
  318. @screen-xs-max: (@screen-sm-min - 1);
  319. @screen-sm-max: (@screen-md-min - 1);
  320. @screen-md-max: (@screen-lg-min - 1);
  321. //== Grid system
  322. //
  323. //## Define your custom responsive grid.
  324. //** Number of columns in the grid.
  325. @grid-columns: 12;
  326. //** Padding between columns. Gets divided in half for the left and right.
  327. @grid-gutter-width: 30px;
  328. // Navbar collapse
  329. //** Point at which the navbar becomes uncollapsed.
  330. @grid-float-breakpoint: @screen-md-min;
  331. //** Point at which the navbar begins collapsing.
  332. @grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
  333. //== Container sizes
  334. //
  335. //## Define the maximum width of `.container` for different screen sizes.
  336. // Small screen / tablet
  337. @container-tablet: ((720px + @grid-gutter-width));
  338. //** For `@screen-sm-min` and up.
  339. @container-sm: @container-tablet;
  340. // Medium screen / desktop
  341. @container-desktop: ((940px + @grid-gutter-width));
  342. //** For `@screen-md-min` and up.
  343. @container-md: @container-desktop;
  344. // Large screen / wide desktop
  345. @container-large-desktop: ((1140px + @grid-gutter-width));
  346. //** For `@screen-lg-min` and up.
  347. @container-lg: @container-large-desktop;
  348. //== Navbar
  349. //
  350. //##
  351. // Basics of a navbar
  352. @navbar-height: 60px;
  353. @navbar-margin-bottom: 0;
  354. @navbar-border-radius: 0;
  355. @navbar-padding-horizontal: floor((@grid-gutter-width / 2));
  356. @navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);
  357. @navbar-default-color: #fff;
  358. @navbar-default-color-website-redesign: @neutral-90;
  359. @navbar-default-bg: @neutral-90;
  360. @navbar-default-bg-website-redesign: @white;
  361. @navbar-default-border: transparent;
  362. // Navbar links
  363. @navbar-default-link-color: #fff;
  364. @navbar-default-link-color-website-redesign: @neutral-90;
  365. @navbar-default-link-border-color: @navbar-default-link-color;
  366. @navbar-default-link-hover-color: @green;
  367. @navbar-default-link-hover-bg: @green;
  368. @navbar-default-link-hover-bg-website-redesign: @neutral-90;
  369. @navbar-default-link-active-color: #fff;
  370. @navbar-default-link-active-color-website-redesign: @neutral-90;
  371. @navbar-default-link-active-bg: @green;
  372. @navbar-default-link-active-bg-website-redesign: @neutral-90;
  373. @navbar-default-link-disabled-color: #ccc;
  374. @navbar-default-link-disabled-color-website-redesign: @neutral-80;
  375. @navbar-default-link-disabled-bg: transparent;
  376. // Navbar brand label
  377. @navbar-default-brand-color: @navbar-default-link-color;
  378. @navbar-default-brand-hover-color: darken(@navbar-default-brand-color, 10%);
  379. @navbar-default-brand-hover-bg: transparent;
  380. // Navbar toggle
  381. @navbar-default-toggle-hover-bg: @link-hover-color;
  382. @navbar-default-toggle-hover-bg-website-redesign: @neutral-90;
  383. @navbar-default-toggle-border-color: @link-color;
  384. @navbar-default-toggle-border-color-website-redesign: @neutral-90;
  385. //== Navs
  386. //
  387. //##
  388. //=== Shared nav styles
  389. @nav-link-padding: 10px 15px;
  390. @nav-link-hover-bg: @link-color;
  391. @nav-disabled-link-color: @gray-light;
  392. @nav-disabled-link-hover-color: @gray-light;
  393. @nav-open-link-hover-color: #fff;
  394. //== Tabs
  395. @nav-tabs-border-color: #ddd;
  396. @nav-tabs-link-hover-border-color: @link-color;
  397. @nav-tabs-active-link-hover-bg: @body-bg;
  398. @nav-tabs-active-link-hover-color: @gray;
  399. @nav-tabs-active-link-hover-border-color: #ddd;
  400. @nav-tabs-justified-link-border-color: #ddd;
  401. @nav-tabs-justified-active-link-border-color: @body-bg;
  402. //== Pills
  403. @nav-pills-link-color: @btn-default-bg;
  404. @nav-pills-link-hover-color: @nav-link-hover-bg;
  405. @nav-pills-link-hover-bg: darken(@neutral-70, 8%); // match button-variant mixin
  406. @nav-pills-border-radius: @border-radius-base;
  407. @nav-pills-active-link-hover-bg: @green-darker;
  408. @nav-pills-active-link-hover-color: @component-active-color;
  409. //== Pagination
  410. //
  411. //##
  412. @pagination-color: @green-darker;
  413. @pagination-bg: #fff;
  414. @pagination-border: @gray-lighter;
  415. @pagination-hover-color: @green-darker;
  416. @pagination-hover-bg: @gray-lightest;
  417. @pagination-hover-border: @gray-lighter;
  418. @pagination-active-color: #fff;
  419. @pagination-active-bg: @green-darker;
  420. @pagination-active-border: @gray-lighter;
  421. @pagination-disabled-color: @gray-dark;
  422. @pagination-disabled-bg: @gray-lightest;
  423. @pagination-disabled-border: @gray-lighter;
  424. // Plans
  425. @table-hover-bg: @neutral-10;
  426. @plans-non-highlighted: white;
  427. //== Form states and alerts
  428. //
  429. //## Define colors for form feedback states and, by default, alerts.
  430. @state-success-text: @brand-success;
  431. @state-success-bg: lighten(@brand-success, 50%);
  432. @state-success-border: @brand-success;
  433. @state-info-text: @content-secondary;
  434. @state-info-bg: lighten(@brand-info, 47%);
  435. @state-info-border: @content-secondary;
  436. @state-warning-text: @brand-warning;
  437. @state-warning-bg: lighten(@brand-warning, 45%);
  438. @state-warning-border: @brand-warning;
  439. @state-danger-text: @brand-danger;
  440. @state-danger-bg: lighten(@brand-danger, 50%);
  441. @state-danger-border: @brand-danger;
  442. //== Tooltips
  443. //
  444. //##
  445. //** Tooltip max width
  446. @tooltip-max-width: 220px;
  447. //** Tooltip text color
  448. @tooltip-color: #fff;
  449. //** Tooltip background color
  450. @tooltip-bg: #000;
  451. @tooltip-opacity: 0.9;
  452. //** Tooltip arrow width
  453. @tooltip-arrow-width: 5px;
  454. //** Tooltip arrow color
  455. @tooltip-arrow-color: @tooltip-bg;
  456. //== Popovers
  457. //
  458. //##
  459. //** Popover body background color
  460. @popover-bg: #fff;
  461. //** Popover maximum width
  462. @popover-max-width: 276px;
  463. //** Popover border color
  464. @popover-border-color: rgba(0, 0, 0, 0.2);
  465. //** Popover fallback border color
  466. @popover-fallback-border-color: #ccc;
  467. //** Popover title background color
  468. @popover-title-bg: darken(@popover-bg, 3%);
  469. //** Popover arrow width
  470. @popover-arrow-width: 10px;
  471. //** Popover arrow color
  472. @popover-arrow-color: #fff;
  473. //** Popover outer arrow width
  474. @popover-arrow-outer-width: (@popover-arrow-width + 1);
  475. //** Popover outer arrow color
  476. @popover-arrow-outer-color: fadein(@popover-border-color, 5%);
  477. //** Popover outer arrow fallback color
  478. @popover-arrow-outer-fallback-color: darken(
  479. @popover-fallback-border-color,
  480. 20%
  481. );
  482. //== Popovers dark theme
  483. //
  484. //##
  485. //** Popover body background color
  486. @popover-dark-bg: #000;
  487. //** Popover font color
  488. @popover-dark-color: #fff;
  489. //** Popover maximum width
  490. @popover-dark-max-width: 512px;
  491. //** Popover border color
  492. @popover-dark-border-color: #000;
  493. //** Popover title background color
  494. @popover-dark-title-bg: #000;
  495. //** Popover arrow color
  496. @popover-dark-arrow-color: #000;
  497. //** Popover outer arrow color
  498. @popover-dark-arrow-outer-color: fadein(@popover-dark-border-color, 5%);
  499. //== Labels
  500. //
  501. //##
  502. //** Default label background color
  503. @label-default-bg: @gray-light;
  504. //** Primary label background color
  505. @label-primary-bg: @brand-primary;
  506. //** Success label background color
  507. @label-success-bg: @brand-success;
  508. //** Info label background color
  509. @label-info-bg: @brand-info;
  510. //** Warning label background color
  511. @label-warning-bg: @brand-warning;
  512. //** Danger label background color
  513. @label-danger-bg: @brand-danger;
  514. //** Default label text color
  515. @label-color: #fff;
  516. //** Default text color of a linked label
  517. @label-link-hover-color: #fff;
  518. //== Modals
  519. //
  520. //##
  521. //** Padding applied to the modal body
  522. @modal-inner-padding: 20px;
  523. //** Padding applied to the modal title
  524. @modal-title-padding: 15px;
  525. //** Modal title line-height
  526. @modal-title-line-height: @line-height-base;
  527. //** Background color of modal content area
  528. @modal-content-bg: #fff;
  529. //** Modal content border color
  530. @modal-content-border-color: rgba(0, 0, 0, 0.2);
  531. //** Modal content border color **for IE8**
  532. @modal-content-fallback-border-color: #999;
  533. //** Modal backdrop background color
  534. @modal-backdrop-bg: #000;
  535. //** Modal backdrop opacity
  536. @modal-backdrop-opacity: 0.5;
  537. //** Modal header border color
  538. @modal-header-border-color: #e5e5e5;
  539. //** Modal footer border color
  540. @modal-footer-border-color: @modal-header-border-color;
  541. @modal-footer-background-color: @gray-lightest;
  542. @modal-lg: 900px;
  543. @modal-md: 600px;
  544. @modal-sm: 300px;
  545. //== Alerts
  546. //
  547. //## Define alert colors, border radius, and padding.
  548. @alert-padding: 15px;
  549. @alert-border-radius: @border-radius-base;
  550. @alert-link-font-weight: bold;
  551. @alert-success-bg: @brand-success;
  552. @alert-success-text: #fff;
  553. @alert-success-border: transparent;
  554. @alert-info-bg: @brand-info;
  555. @alert-info-text: #fff;
  556. @alert-info-border: transparent;
  557. @alert-info-alt-bg: @v2-dash-pane-bg;
  558. @alert-info-alt-text: @v2-dash-pane-subdued-color;
  559. @alert-info-alt-border: transparent;
  560. @alert-warning-bg: @brand-warning;
  561. @alert-warning-text: #fff;
  562. @alert-warning-border: transparent;
  563. @alert-danger-bg: @brand-danger;
  564. @alert-danger-text: #fff;
  565. @alert-danger-border: transparent;
  566. @alert-alt-bg: @neutral-20;
  567. @alert-alt-text: @content-secondary;
  568. @alert-alt-border: transparent;
  569. //== Progress bars
  570. //
  571. //##
  572. //** Background color of the whole progress component
  573. @progress-bg: white;
  574. @progress-border-color: @gray-lighter;
  575. //** Progress bar text color
  576. @progress-bar-color: #fff;
  577. //** Default progress bar color
  578. @progress-bar-bg: @neutral-70;
  579. //** Success progress bar color
  580. @progress-bar-success-bg: @green;
  581. //** Warning progress bar color
  582. @progress-bar-warning-bg: @brand-warning;
  583. //** Danger progress bar color
  584. @progress-bar-danger-bg: @red;
  585. //** Info progress bar color
  586. @progress-bar-info-bg: @blue;
  587. //== Thumbnails
  588. //
  589. //##
  590. //** Padding around the thumbnail image
  591. @thumbnail-padding: 4px;
  592. //** Thumbnail background color
  593. @thumbnail-bg: @body-bg;
  594. //** Thumbnail border color
  595. @thumbnail-border: #ddd;
  596. //** Thumbnail border radius
  597. @thumbnail-border-radius: @border-radius-base;
  598. //** Custom text color for thumbnail captions
  599. @thumbnail-caption-color: @text-color;
  600. //** Padding around the thumbnail caption
  601. @thumbnail-caption-padding: 9px;
  602. //== Close
  603. //
  604. //##
  605. @close-font-weight: bold;
  606. @close-color: #000;
  607. @close-text-shadow: 0 1px 0 #fff;
  608. //== Type
  609. //
  610. //##
  611. //** Text muted color
  612. @text-muted: @gray-light;
  613. //** Abbreviations and acronyms border color
  614. @abbr-border-color: @gray-light;
  615. //** Headings small color
  616. @headings-small-color: @gray-light;
  617. //** Blockquote small color
  618. @blockquote-small-color: @neutral-60;
  619. //** Blockquote font size
  620. @blockquote-font-size: (@font-size-base * 1.125);
  621. //** Blockquote border color
  622. @blockquote-border-color: @gray-lighter;
  623. //** Page header border color
  624. @page-header-border-color: @hr-border;
  625. //== Miscellaneous
  626. @editor-search-count-color: @neutral-70;
  627. //##
  628. //** Horizontal offset for forms and lists.
  629. @component-offset-horizontal: 180px;
  630. @content-margin-vertical: @line-height-computed;
  631. @left-menu-width: 320px;
  632. @left-menu-animation-duration: 0.35s;
  633. @toolbar-border-color: @neutral-80;
  634. @toolbar-header-btn-border-color: @toolbar-border-color;
  635. @toolbar-btn-height: 26px;
  636. @common-border-color: @gray-lighter;
  637. @editor-border-color: @neutral-80;
  638. @editor-dark-background-color: #333;
  639. @editor-dark-toolbar-border-color: #222;
  640. @editor-dark-highlight-color: #ffa03a;
  641. // Custom
  642. @header-height: 68px;
  643. @footer-height: 50px;
  644. // Backgrounds
  645. @content-alt-bg-color: @neutral-10;
  646. // Typography
  647. @text-small-color: @content-secondary;
  648. // Navbar
  649. @navbar-title-color: @neutral-20;
  650. @navbar-title-color-hover: @neutral-40;
  651. @navbar-default-padding-v: (@grid-gutter-width / 2);
  652. @navbar-default-padding-h: 10px;
  653. @navbar-default-padding: @navbar-default-padding-v @navbar-default-padding-h;
  654. @navbar-brand-width: 130px;
  655. @navbar-btn-font-size: @font-size-base;
  656. @navbar-btn-border-radius: @btn-border-radius-base;
  657. @navbar-btn-font-weight: 400;
  658. @navbar-btn-padding: (@padding-base-vertical - 1) @padding-base-horizontal
  659. @padding-base-vertical;
  660. @navbar-btn-line-height: @line-height-base;
  661. @navbar-subdued-padding: (@padding-base-vertical + 1)
  662. (@padding-base-horizontal + 1) (@padding-base-vertical + 2);
  663. @navbar-subdued-color: #fff;
  664. @navbar-subdued-color-website-redesign: @neutral-90;
  665. @navbar-subdued-hover-bg: #fff;
  666. @navbar-subdued-hover-bg-website-redesign: @neutral-90;
  667. @navbar-subdued-hover-color: @green;
  668. @navbar-subdued-hover-color-website-redesign: #fff;
  669. @navbar-brand-image-url: url(../../../public/img/ol-brand/overleaf-white.svg);
  670. @navbar-brand-image-url-website-redesign: url(../../../public/img/ol-brand/overleaf-black.svg);
  671. @dropdown-divider-margin: 6px;
  672. @dropdown-item-padding: 4px 20px;
  673. @navbar-default-link-bg: transparent;
  674. // Button colors and sizing
  675. @btn-border-radius-large: 9999px;
  676. @btn-border-radius-base: 9999px;
  677. @btn-border-radius-small: 9999px;
  678. @btn-border-width: 0;
  679. @btn-border-bottom-width: 0;
  680. @btn-primary-hover-bg-color: @green-dark;
  681. @btn-secondary-hover-bg-color: @neutral-20;
  682. // Shadows
  683. @box-shadow:
  684. 0px 4px 12px rgba(30, 37, 48, 0.12),
  685. 0px 2px 4px rgba(30, 37, 48, 0.08);
  686. // Cards
  687. @card-border-radius: @border-radius-base-new;
  688. @card-gray-bg-color: @neutral-10; // only some variations of cards
  689. @card-box-shadow: @box-shadow; // only some variations of cards
  690. // Project table
  691. @structured-list-link-color: @blue;
  692. @structured-header-border-color: shade(@neutral-20, 5%);
  693. @structured-list-border-color: @neutral-20;
  694. @structured-list-hover-color: lighten(@neutral-20, 5%);
  695. @structured-list-line-height: 2.5;
  696. // Sidebar
  697. @sidebar-bg: @neutral-80;
  698. @sidebar-color: @neutral-40;
  699. @sidebar-link-color: #fff;
  700. @sidebar-active-border-radius: 0;
  701. @sidebar-active-bg: @neutral-90;
  702. @sidebar-active-color: #fff;
  703. @sidebar-active-font-weight: 700;
  704. @sidebar-hover-bg: @neutral-70;
  705. @sidebar-hover-text-decoration: none;
  706. @v2-dash-pane-bg: @neutral-70;
  707. @v2-dash-pane-link-color: #fff;
  708. @v2-dash-pane-color: #fff;
  709. @v2-dash-pane-subdued-color: @neutral-20;
  710. @v2-dash-pane-toggle-color: #fff;
  711. @v2-dash-pane-btn-bg: @neutral-80;
  712. @v2-dash-pane-btn-hover-bg: @neutral-90;
  713. @folders-menu-margin: 0 - (@grid-gutter-width / 2);
  714. @folders-menu-line-height: @structured-list-line-height;
  715. @folders-menu-item-v-padding: (@line-height-computed / 4);
  716. @folders-menu-item-h-padding: (@grid-gutter-width / 2);
  717. @folders-title-padding: @folders-menu-item-v-padding 0;
  718. @folders-title-margin-top: 0;
  719. @folders-title-margin-bottom: 0;
  720. @folders-title-font-size: @font-size-small;
  721. @folders-title-font-weight: normal;
  722. @folders-title-line-height: @headings-line-height;
  723. @folders-title-color: @neutral-40;
  724. @folders-title-text-transform: uppercase;
  725. @folders-tag-padding: @folders-menu-item-v-padding 30px
  726. @folders-menu-item-v-padding @folders-menu-item-h-padding;
  727. @folders-tag-line-height: 1.4;
  728. @folders-tag-display: block;
  729. @folders-tag-menu-color: #fff;
  730. @folders-tag-hover: @sidebar-hover-bg;
  731. @folders-tag-border-color: @folders-tag-menu-color;
  732. @folders-tag-menu-active-hover: rgba(0, 0, 0, 0.1);
  733. @folders-tag-menu-hover: rgba(0, 0, 0, 0.1);
  734. @info-badge-bg: @blue;
  735. // Progress bars
  736. @progress-border-radius: @line-height-computed;
  737. @progress-border-width: 0;
  738. @progress-bar-shadow: none;
  739. // Footer
  740. @footer-link-color: @link-color-alt;
  741. @footer-link-hover-color: @link-hover-color-alt;
  742. @footer-bg-color: #fff;
  743. @footer-padding: 2em 0;
  744. @fat-footer-social-font-size: 30px;
  745. // Editor header
  746. @ide-body-top-offset: 40px;
  747. @toolbar-header-bg-color: @neutral-90;
  748. @toolbar-header-shadow: none;
  749. @toolbar-header-branded-btn-bg-color: transparent;
  750. @toolbar-btn-color: #fff;
  751. @toolbar-btn-hover-color: #fff;
  752. @toolbar-btn-hover-bg-color: @neutral-80;
  753. @toolbar-btn-hover-text-shadow: none;
  754. @toolbar-btn-active-color: #fff;
  755. @toolbar-btn-active-bg-color: @green;
  756. @toolbar-btn-active-shadow: none;
  757. @toolbar-font-size: 13px;
  758. @toolbar-alt-bg-color: @neutral-80;
  759. @toolbar-icon-btn-color: #fff;
  760. @toolbar-icon-btn-hover-color: #fff;
  761. @toolbar-icon-btn-hover-shadow: none;
  762. @toolbar-icon-btn-hover-boxshadow: none;
  763. @toolbar-border-bottom: 1px solid @toolbar-border-color;
  764. @toolbar-small-height: 32px;
  765. @toolbar-tall-height: 58px;
  766. @project-name-color: @neutral-40;
  767. @project-rename-link-color: @neutral-40;
  768. @project-rename-link-color-hover: @neutral-20;
  769. @global-alerts-padding: 7px;
  770. // Editor file-tree
  771. @file-tree-bg: @neutral-70;
  772. @file-tree-line-height: 2.05;
  773. @file-tree-item-color: #fff;
  774. @file-tree-item-focus-color: @file-tree-item-color;
  775. @file-tree-item-selected-color: @file-tree-item-color;
  776. @file-tree-item-toggle-color: @neutral-40;
  777. @file-tree-item-icon-color: @neutral-40;
  778. @file-tree-item-input-color: @input-color;
  779. @file-tree-item-folder-color: @neutral-40;
  780. @file-tree-item-hover-bg: @neutral-80;
  781. @file-tree-item-selected-bg: @green;
  782. @file-tree-multiselect-bg: @blue;
  783. @file-tree-multiselect-hover-bg: @blue-dark;
  784. @file-tree-droppable-bg-color: @neutral-40;
  785. @file-tree-error-color: @neutral-20;
  786. // File outline
  787. @outline-v-rhythm: 24px;
  788. @outline-h-rhythm: 24px;
  789. @outline-item-h-padding: @outline-h-rhythm * 0.25;
  790. @outline-line-guide-color: @neutral-60;
  791. @outline-expand-collapse-color: @neutral-40;
  792. @outline-no-items-color: @file-tree-item-color;
  793. @outline-header-hover-bg: @neutral-90;
  794. @outline-highlight-bg: tint(@file-tree-bg, 15%);
  795. @vertical-resizable-resizer-bg: @neutral-80;
  796. @vertical-resizable-resizer-hover-bg: @neutral-90;
  797. // Editor resizers
  798. @editor-resizer-bg-color: @neutral-80;
  799. @editor-resizer-bg-color-dragging: @neutral-80;
  800. @editor-toggler-bg-color: darken(@neutral-40, 15%);
  801. @editor-toggler-hover-bg-color: @green;
  802. @synctex-controls-z-index: 6;
  803. @synctex-controls-padding: 0;
  804. // Editor toolbar
  805. @editor-toolbar-height: 32px;
  806. @editor-toolbar-bg: @neutral-80;
  807. // Toggle switch
  808. @toggle-switch-bg: @neutral-20;
  809. @toggle-switch-highlight-color: @green;
  810. // Formatting buttons
  811. @formatting-btn-color: #fff;
  812. @formatting-btn-bg: @neutral-80;
  813. @formatting-btn-border: @neutral-70;
  814. @formatting-menu-bg: @neutral-80;
  815. // Chat
  816. @chat-bg: @neutral-80;
  817. @chat-instructions-color: @neutral-20;
  818. @chat-message-color: #fff;
  819. @chat-message-date-color: @neutral-40;
  820. @chat-message-name-color: #fff;
  821. @chat-message-box-shadow: none;
  822. @chat-message-border-radius: @border-radius-large;
  823. @chat-message-padding: 5px 10px;
  824. @chat-message-weight: bold;
  825. @chat-new-message-bg: @neutral-70;
  826. @chat-new-message-textarea-bg: @neutral-20;
  827. @chat-new-message-textarea-color: @neutral-90;
  828. @chat-new-message-border-color: @editor-border-color;
  829. // PDF and logs
  830. @pdf-top-offset: @toolbar-small-height;
  831. @pdf-bg: @neutral-10;
  832. @pdfjs-bg: transparent;
  833. @pdf-page-shadow-color: rgba(0, 0, 0, 0.5);
  834. @logs-pane-bg: @neutral-80;
  835. @log-line-no-color: #fff;
  836. @log-hints-color: @neutral-70;
  837. @pdf-toolbar-btn-hover-color: rgba(125, 125, 125, 0.2);
  838. // Tags
  839. @tag-border-radius: 9999px;
  840. @tag-color: @neutral-70;
  841. @tag-bg-color: @neutral-20;
  842. @tag-bg-hover-color: darken(@neutral-20, 5%);
  843. @tag-max-width: 150px;
  844. @tag-top-adjustment: 2px;
  845. @labels-font-size: 85%;
  846. // System messages
  847. @sys-msg-background: @blue;
  848. @sys-msg-color: #fff;
  849. @sys-msg-border: solid 1px lighten(@blue, 10%);
  850. // Portals
  851. @black-alpha-strong: rgba(0, 0, 0, 0.8);
  852. @btn-portal-width: 200px;
  853. // v2 History
  854. @history-base-font-size: @font-size-small;
  855. @history-base-bg: @neutral-20;
  856. @history-entry-label-bg-color: @blue;
  857. @history-entry-pseudo-label-bg-color: @green;
  858. @history-entry-label-color: #fff;
  859. @history-entry-selected-label-bg-color: #fff;
  860. @history-entry-selected-label-color: @blue;
  861. @history-entry-selected-pseudo-label-color: @green;
  862. @history-entry-day-bg: @neutral-20;
  863. @history-entry-day-color: @neutral-60;
  864. @history-entry-selected-bg: @green;
  865. @history-entry-handle-bg: darken(@green, 10%);
  866. @history-entry-handle-height: 8px;
  867. @history-base-color: @neutral-60;
  868. @history-highlight-color: @content-secondary;
  869. @history-toolbar-bg-color: @editor-toolbar-bg;
  870. @history-toolbar-color: #fff;
  871. @history-file-badge-bg: rgba(255, 255, 255, 0.25);
  872. @history-file-badge-color: @file-tree-item-color;
  873. // Input suggestions
  874. @input-suggestion-v-offset: 4px;
  875. // Symbol Palette
  876. @symbol-palette-bg: @neutral-70;
  877. @symbol-palette-color: #fff;
  878. @symbol-palette-header-background: @neutral-80;
  879. @symbol-palette-item-bg: @neutral-80;
  880. @symbol-palette-item-color: #fff;
  881. @symbol-palette-selected-tab-bg: @neutral-70;
  882. @symbol-palette-selected-tab-color: #fff;
  883. @symbol-palette-text-shadow-color: @neutral-90;
  884. // Editor fonts
  885. @editor-font-lucida: 'Lucida Console', 'Source Code Pro', monospace;
  886. @editor-font-monaco: Monaco, Menlo, 'Ubuntu Mono', 'Consolas', monospace;
  887. @mobile-action-element-width: 48px;
  888. @mobile-action-element-height: @mobile-action-element-width;
  889. // React History
  890. @history-react-header-bg: @neutral-80;
  891. @history-react-header-color: #fff;
  892. @history-react-separator-color: @neutral-80;
  893. @history-main-bg: #fff;
  894. // Gradients
  895. @premium-gradient: linear-gradient(
  896. 246deg,
  897. @blue-70 0%,
  898. #254c84 29%,
  899. @blue-40 97%
  900. );