all.less 29 KB

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