ol-variables.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. @import "./_common-variables.less";
  2. @font-family-sans-serif: "Lato", sans-serif;
  3. @header-height: 68px;
  4. @footer-height: 50px;
  5. // Styleguide colors
  6. @ol-blue-gray-0 : #F4F5F8;
  7. @ol-blue-gray-1 : #E4E8EE;
  8. @ol-blue-gray-2 : #9DA7B7;
  9. @ol-blue-gray-3 : #5D6879;
  10. @ol-blue-gray-4 : #455265;
  11. @ol-blue-gray-5 : #2C3645;
  12. @ol-blue-gray-6 : #1E2530;
  13. @ol-green : #4F9C45;
  14. @ol-dark-green : #1C5B26;
  15. @ol-blue : #4B7FD1;
  16. @ol-dark-blue : #2857A1;
  17. @ol-red : #C9453E;
  18. @ol-dark-red : #A6312B;
  19. @ol-type-color : @ol-blue-gray-3;
  20. @accent-color-primary: @ol-green;
  21. @accent-color-secondary: @ol-dark-green;
  22. // Navbar customization
  23. @navbar-title-color : @ol-blue-gray-1;
  24. @navbar-title-color-hover : @ol-blue-gray-2;
  25. @navbar-brand-width : 130px;
  26. @navbar-default-color : #FFF;
  27. @navbar-default-bg : @ol-blue-gray-6;
  28. @navbar-default-border : transparent;
  29. @navbar-brand-image-url : url(/img/ol-brand/overleaf-white.svg);
  30. @navbar-default-link-bg : transparent;
  31. // Backgrounds
  32. @body-bg : #FFF;
  33. @content-alt-bg-color : @ol-blue-gray-1;
  34. // Typography
  35. @text-small-color : @ol-type-color;
  36. @text-color : @ol-type-color;
  37. @link-color : @ol-blue;
  38. @link-hover-color : @ol-dark-blue;
  39. // Button colors and sizing
  40. @btn-border-width : 0;
  41. @btn-border-bottom-width : 0;
  42. @btn-border-radius-large : 9999px;
  43. @btn-border-radius-base : 9999px;
  44. @btn-border-radius-small : 9999px;
  45. @btn-default-color : #FFF;
  46. @btn-default-bg : @ol-blue-gray-4;
  47. @btn-default-border : transparent;
  48. @btn-primary-color : #FFF;
  49. @btn-primary-bg : @ol-green;
  50. @btn-primary-border : transparent;
  51. @btn-success-color : #FFF;
  52. @btn-success-bg : @ol-green;
  53. @btn-success-border : transparent;
  54. @btn-info-color : #FFF;
  55. @btn-info-bg : @ol-blue;
  56. @btn-info-border : transparent;
  57. // Padding
  58. @padding-xs-horizontal : 8px;
  59. @padding-sm: 10px;
  60. @padding-md: 20px;
  61. @padding-lg: 30px;
  62. @padding-xl: 40px;
  63. // Alerts
  64. @alert-padding : 15px;
  65. @alert-border-radius : @border-radius-base;
  66. @alert-link-font-weight : bold;
  67. @alert-success-bg : @brand-success;
  68. @alert-success-text : #FFF;
  69. @alert-success-border: transparent;
  70. @alert-info-bg : @brand-info;
  71. @alert-info-text : #FFF;
  72. @alert-info-border : transparent;
  73. @alert-warning-bg : @brand-warning;
  74. @alert-warning-text : #FFF;
  75. @alert-warning-border: transparent;
  76. @alert-danger-bg : @brand-danger;
  77. @alert-danger-text : #FFF;
  78. @alert-danger-border : transparent;
  79. // Tags
  80. @tag-border-radius : 9999px;
  81. @tag-bg-color : @ol-green;
  82. @tag-bg-hover-color : @ol-dark-green;
  83. @tag-top-adjustment : 2px;
  84. @labels-font-size : 85%;
  85. // Navbar
  86. @navbar-default-padding-v : (@grid-gutter-width / 2);
  87. @navbar-default-padding-h : 10px;
  88. @navbar-default-padding : @navbar-default-padding-v @navbar-default-padding-h;
  89. @navbar-default-link-color : #FFF;
  90. @navbar-default-link-border-color : @navbar-default-link-color;
  91. @navbar-default-link-hover-bg : @ol-green;
  92. @navbar-default-link-active-bg : @ol-green;
  93. @navbar-default-link-hover-color : @ol-green;
  94. @navbar-btn-font-size : @font-size-base;
  95. @navbar-btn-border-radius : @btn-border-radius-base;
  96. @navbar-btn-font-weight : 400;
  97. @navbar-btn-padding : (@padding-base-vertical - 1) @padding-base-horizontal @padding-base-vertical;
  98. @navbar-btn-line-height : @line-height-base;
  99. @navbar-subdued-color : #FFF;
  100. @navbar-subdued-padding : (@padding-base-vertical + 1) (@padding-base-horizontal + 1) (@padding-base-vertical + 2);
  101. @navbar-subdued-hover-bg : #FFF;
  102. @navbar-subdued-hover-color : @ol-green;
  103. @dropdown-divider-margin : 6px;
  104. @dropdown-item-padding : 4px 20px;
  105. // Forms
  106. @input-color : @ol-blue-gray-3;
  107. @input-border-radius : unit(@line-height-base, em);
  108. @input-height-base : @line-height-computed + (@padding-base-vertical * 2) - 1;
  109. // TODO Warning color-orange?
  110. @btn-warning-color : #FFF;
  111. @btn-warning-bg : @ol-red;
  112. @btn-warning-border : transparent;
  113. @btn-danger-color : #FFF;
  114. @btn-danger-bg : @ol-red;
  115. @btn-danger-border : transparent;
  116. // Cards
  117. @card-box-shadow : none;
  118. // Sidebar
  119. @sidebar-bg : @ol-blue-gray-5;
  120. @sidebar-color : @ol-blue-gray-2;
  121. @sidebar-link-color : #FFF;
  122. @sidebar-active-border-radius : 0;
  123. @sidebar-active-bg : @ol-blue-gray-6;
  124. @sidebar-active-color : #FFF;
  125. @sidebar-active-font-weight : 700;
  126. @sidebar-hover-bg : @ol-blue-gray-4;
  127. @sidebar-hover-text-decoration : none;
  128. @v2-dash-pane-bg : @ol-blue-gray-4;
  129. @v2-dash-pane-link-color : #FFF;
  130. @v2-dash-pane-color : #FFF;
  131. @v2-dash-pane-toggle-color : #FFF;
  132. @v2-dash-pane-btn-bg : @ol-blue-gray-5;
  133. @v2-dash-pane-btn-hover-bg : @ol-blue-gray-6;
  134. @folders-menu-margin : 0 -(@grid-gutter-width / 2);
  135. @folders-menu-line-height : @structured-list-line-height;
  136. @folders-menu-item-v-padding : (@line-height-computed / 4);
  137. @folders-menu-item-h-padding : (@grid-gutter-width / 2);
  138. @folders-title-padding : @folders-menu-item-v-padding 0;
  139. @folders-title-margin-top : 0;
  140. @folders-title-margin-bottom : 0;
  141. @folders-title-font-weight : normal;
  142. @folders-title-font-size : @font-size-small;
  143. @folders-title-color : @ol-blue-gray-2;
  144. @folders-title-text-transform : uppercase;
  145. @folders-tag-display : block;
  146. @folders-tag-line-height : 1.4;
  147. @folders-tag-padding : @folders-menu-item-v-padding 20px @folders-menu-item-v-padding @folders-menu-item-h-padding;
  148. @folders-tag-menu-color : #FFF;
  149. @folders-tag-hover : @sidebar-hover-bg;
  150. @folders-tag-border-color : @folders-tag-menu-color;
  151. @folders-tag-menu-hover : rgba(0, 0, 0, .1);
  152. @folders-tag-menu-active-hover : rgba(0, 0, 0, .1);
  153. // Portal
  154. @btn-portal-width : 200px;
  155. // Project table
  156. @structured-list-line-height : 2.5;
  157. @structured-list-link-color : @ol-blue;
  158. @structured-header-border-color : shade(@ol-blue-gray-1, 5%);
  159. @structured-list-border-color : @ol-blue-gray-1;
  160. @structured-list-hover-color : lighten(@ol-blue-gray-1, 5%);
  161. // Progress bars
  162. @progress-border-radius : @line-height-computed;
  163. @progress-border-width : 0;
  164. @progress-bar-bg : @ol-blue-gray-4;
  165. @progress-bar-success-bg : @ol-green;
  166. @progress-bar-warning-bg : @brand-warning;
  167. @progress-bar-danger-bg : @ol-red;
  168. @progress-bar-info-bg : @ol-blue;
  169. @progress-bar-shadow : none;
  170. // Footer
  171. @footer-bg-color : #FFF;
  172. @footer-link-color : @ol-green;
  173. @footer-link-hover-color : @ol-dark-green;
  174. @footer-padding : 2em 0;
  175. // Editor header
  176. @toolbar-header-bg-color : @ol-blue-gray-6;
  177. @toolbar-header-shadow : none;
  178. @toolbar-btn-color : #FFF;
  179. @toolbar-btn-hover-color : #FFF;
  180. @toolbar-btn-hover-bg-color : @ol-blue-gray-5;
  181. @toolbar-btn-hover-text-shadow : none;
  182. @toolbar-btn-active-color : #FFF;
  183. @toolbar-btn-active-bg-color : @ol-green;
  184. @toolbar-btn-active-shadow : none;
  185. @toolbar-border-color : @ol-blue-gray-5;
  186. @toolbar-header-btn-border-color : @toolbar-border-color;
  187. @toolbar-alt-bg-color : @ol-blue-gray-5;
  188. @toolbar-icon-btn-color : #FFF;
  189. @toolbar-icon-btn-hover-color : #FFF;
  190. @toolbar-icon-btn-hover-shadow : none;
  191. @toolbar-border-bottom : 1px solid @toolbar-border-color;
  192. @toolbar-icon-btn-hover-boxshadow : none;
  193. @toolbar-font-size : 13px;
  194. @project-name-color : @ol-blue-gray-2;
  195. @project-rename-link-color : @ol-blue-gray-2;
  196. @project-rename-link-color-hover : @ol-blue-gray-1;
  197. @global-alerts-padding : 7px;
  198. // Editor file-tree
  199. @file-tree-bg : @ol-blue-gray-4;
  200. @file-tree-line-height : 2.05;
  201. @file-tree-item-color : #FFF;
  202. @file-tree-item-selected-color : @file-tree-item-color;
  203. @file-tree-item-input-color : @ol-blue-gray-5;
  204. @file-tree-item-toggle-color : @ol-blue-gray-2;
  205. @file-tree-item-icon-color : @ol-blue-gray-2;
  206. @file-tree-item-folder-color : @ol-blue-gray-2;
  207. @file-tree-item-hover-bg : @ol-blue-gray-5;
  208. @file-tree-item-selected-bg : @ol-green;
  209. @file-tree-multiselect-bg : @ol-blue;
  210. @file-tree-multiselect-hover-bg : @ol-dark-blue;
  211. @file-tree-droppable-bg-color : tint(@ol-green, 5%);
  212. // Editor resizers
  213. @editor-resizer-bg-color : @ol-blue-gray-5;
  214. @editor-resizer-bg-color-dragging : @ol-blue-gray-5;
  215. @editor-toggler-bg-color : darken(@ol-blue-gray-2, 15%);
  216. @editor-toggler-hover-bg-color : @ol-green;
  217. @synctex-controls-z-index : 6;
  218. @synctex-controls-padding : 0;
  219. @editor-border-color : @ol-blue-gray-5;
  220. // Editor toolbar
  221. @editor-toolbar-bg : @ol-blue-gray-5;
  222. // Toggle switch
  223. @toggle-switch-bg : @ol-blue-gray-1;
  224. @toggle-switch-highlight-color : @ol-green;
  225. @toggle-switch-radius-left : @btn-border-radius-base 0 0 @btn-border-radius-base;
  226. @toggle-switch-radius-right : 0 @btn-border-radius-base @btn-border-radius-base 0;
  227. // Formatting buttons
  228. @formatting-btn-color : #FFF;
  229. @formatting-btn-bg : @ol-blue-gray-5;
  230. @formatting-btn-border : @ol-blue-gray-4;
  231. @formatting-menu-bg : @ol-blue-gray-5;
  232. // Chat
  233. @chat-bg : @ol-blue-gray-5;
  234. @chat-message-color : #FFF;
  235. @chat-message-name-color : #FFF;
  236. @chat-message-date-color : @ol-blue-gray-2;
  237. @chat-message-box-shadow : none;
  238. @chat-message-padding : 5px 10px;
  239. @chat-message-border-radius : @border-radius-large;
  240. @chat-message-weight : bold;
  241. @chat-new-message-bg : @ol-blue-gray-4;
  242. @chat-new-message-textarea-bg : @ol-blue-gray-1;
  243. @chat-new-message-textarea-color : @ol-blue-gray-6;
  244. @chat-new-message-border-color : @editor-border-color;
  245. // Pagination
  246. @pagination-active-bg : @ol-dark-green;
  247. @pagination-active-border : @gray-lighter;
  248. @pagination-active-color : #FFF;
  249. @pagination-bg : #FFF;
  250. @pagination-border : @gray-lighter;
  251. @pagination-color : @ol-dark-green;
  252. @pagination-disabled-color : @gray-dark;
  253. @pagination-disabled-bg : @gray-lightest;
  254. @pagination-disabled-border : @gray-lighter;
  255. @pagination-hover-color : @ol-dark-green;
  256. @pagination-hover-bg : @gray-lightest;
  257. @pagination-hover-border : @gray-lighter;
  258. // PDF
  259. @pdf-top-offset : @toolbar-small-height;
  260. @pdf-bg : @ol-blue-gray-1;
  261. @pdfjs-bg : transparent;
  262. @pdf-page-shadow-color : rgba(0, 0, 0, 0.5);
  263. @log-line-no-color : #FFF;
  264. @log-hints-color : @ol-blue-gray-4;
  265. // Portals
  266. @black-alpha-strong : rgba(0,0,0,0.8);
  267. // v2 History
  268. @history-base-font-size : @font-size-small;
  269. @history-base-bg : @ol-blue-gray-1;
  270. @history-entry-label-bg-color : @ol-blue;
  271. @history-entry-label-color : #FFF;
  272. @history-entry-selected-label-bg-color: #FFF;
  273. @history-entry-selected-label-color : @ol-blue;
  274. @history-entry-day-bg : @ol-blue-gray-2;
  275. @history-entry-selected-bg : @ol-green;
  276. @history-base-color : @ol-blue-gray-2;
  277. @history-highlight-color : @ol-type-color;
  278. @history-toolbar-bg-color : @editor-toolbar-bg;
  279. @history-toolbar-color : #FFF;
  280. // Screens
  281. // added -size to not conflict with common_variables
  282. @screen-size-sm-max : 767px;
  283. @screen-size-md-min : 768px;
  284. @screen-size-md-max : 991px;
  285. // System messages
  286. @sys-msg-background : @ol-blue;
  287. @sys-msg-color : #FFF;
  288. @sys-msg-border : solid 1px lighten(@ol-blue, 10%);
  289. @input-suggestion-v-offset : 4px;
  290. //== Colors
  291. //
  292. //## Gray and brand colors for use across Bootstrap.
  293. @gray-darker: #252525;
  294. @gray-dark: #505050;
  295. @gray: #7a7a7a;
  296. @gray-light: #a4a4a4;
  297. @gray-lighter: #cfcfcf;
  298. @gray-lightest: #f0f0f0;
  299. @white: #ffffff;
  300. @blue: #405ebf;
  301. @blueDark: #040D2D;
  302. @green: #46a546;
  303. @red: #a93529;
  304. @yellow: #A1A729;
  305. @orange: #f89406;
  306. @pink: #c3325f;
  307. @purple: #7a43b6;
  308. @brand-primary: @ol-green;
  309. @brand-success: @green;
  310. @brand-info: @ol-blue;
  311. @brand-warning: @orange;
  312. @brand-danger: @ol-red;
  313. @editor-header-logo-background: url(/img/ol-brand/overleaf-o-white.svg) center / contain no-repeat;
  314. @editor-loading-logo-padding-top: 115.44%;
  315. @editor-loading-logo-background-url: url(/img/ol-brand/overleaf-o-grey.svg);
  316. @editor-loading-logo-foreground-url: url(/img/ol-brand/overleaf-o.svg);