all.less 31 KB

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