all.less 27 KB

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