_common-variables.less 33 KB

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