all.less 26 KB

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