all.less 30 KB

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