all.less 28 KB

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