_common-variables.less 31 KB

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