all.less 29 KB

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