bootstrap-dialog.less 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044
  1. //
  2. // Variables
  3. // --------------------------------------------------
  4. //== Colors
  5. //
  6. //## Gray and brand colors for use across Bootstrap.
  7. @gray-base: #000;
  8. @gray-darker: lighten(@gray-base, 13.5%); // #222
  9. @gray-dark: lighten(@gray-base, 20%); // #333
  10. @gray: lighten(@gray-base, 33.5%); // #555
  11. @gray-light: lighten(@gray-base, 46.7%); // #777
  12. @gray-lighter: lighten(@gray-base, 93.5%); // #eee
  13. @brand-primary: darken(#428bca, 6.5%); // #337ab7
  14. @brand-success: #5cb85c;
  15. @brand-info: #5bc0de;
  16. @brand-warning: #f0ad4e;
  17. @brand-danger: #d9534f;
  18. //== Scaffolding
  19. //
  20. //## Settings for some of the most global styles.
  21. //** Background color for `<body>`.
  22. @body-bg: #fff;
  23. //** Global text color on `<body>`.
  24. @text-color: @gray-dark;
  25. //** Global textual link color.
  26. @link-color: @brand-primary;
  27. //** Link hover color set via `darken()` function.
  28. @link-hover-color: darken(@link-color, 15%);
  29. //** Link hover decoration.
  30. @link-hover-decoration: underline;
  31. //== Typography
  32. //
  33. //## Font, line-height, and color for body text, headings, and more.
  34. @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  35. @font-family-serif: Georgia, "Times New Roman", Times, serif;
  36. //** Default monospace fonts for `<code>`, `<kbd>`, and `<pre>`.
  37. @font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
  38. @font-family-base: @font-family-sans-serif;
  39. @font-size-base: 14px;
  40. @font-size-large: ceil((@font-size-base * 1.25)); // ~18px
  41. @font-size-small: ceil((@font-size-base * 0.85)); // ~12px
  42. @font-size-h1: floor((@font-size-base * 2.6)); // ~36px
  43. @font-size-h2: floor((@font-size-base * 2.15)); // ~30px
  44. @font-size-h3: ceil((@font-size-base * 1.7)); // ~24px
  45. @font-size-h4: ceil((@font-size-base * 1.25)); // ~18px
  46. @font-size-h5: @font-size-base;
  47. @font-size-h6: ceil((@font-size-base * 0.85)); // ~12px
  48. //** Unit-less `line-height` for use in components like buttons.
  49. @line-height-base: 1.428571429; // 20/14
  50. //** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
  51. @line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px
  52. //** By default, this inherits from the `<body>`.
  53. @headings-font-family: inherit;
  54. @headings-font-weight: 500;
  55. @headings-line-height: 1.1;
  56. @headings-color: inherit;
  57. //== Iconography
  58. //
  59. //## Specify custom location and filename of the included Glyphicons icon font. Useful for those including Bootstrap via Bower.
  60. //** Load fonts from this directory.
  61. @icon-font-path: "../fonts/";
  62. //** File name for all font files.
  63. @icon-font-name: "glyphicons-halflings-regular";
  64. //** Element ID within SVG icon file.
  65. @icon-font-svg-id: "glyphicons_halflingsregular";
  66. //== Components
  67. //
  68. //## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
  69. @padding-base-vertical: 6px;
  70. @padding-base-horizontal: 12px;
  71. @padding-large-vertical: 10px;
  72. @padding-large-horizontal: 16px;
  73. @padding-small-vertical: 5px;
  74. @padding-small-horizontal: 10px;
  75. @padding-xs-vertical: 1px;
  76. @padding-xs-horizontal: 5px;
  77. @line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
  78. @line-height-small: 1.5;
  79. @border-radius-base: 4px;
  80. @border-radius-large: 6px;
  81. @border-radius-small: 3px;
  82. //** Global color for active items (e.g., navs or dropdowns).
  83. @component-active-color: #fff;
  84. //** Global background color for active items (e.g., navs or dropdowns).
  85. @component-active-bg: @brand-primary;
  86. //** Width of the `border` for generating carets that indicator dropdowns.
  87. @caret-width-base: 4px;
  88. //** Carets increase slightly in size for larger components.
  89. @caret-width-large: 5px;
  90. //== Tables
  91. //
  92. //## Customizes the `.table` component with basic values, each used across all table variations.
  93. //** Padding for `<th>`s and `<td>`s.
  94. @table-cell-padding: 8px;
  95. //** Padding for cells in `.table-condensed`.
  96. @table-condensed-cell-padding: 5px;
  97. //** Default background color used for all tables.
  98. @table-bg: transparent;
  99. //** Background color used for `.table-striped`.
  100. @table-bg-accent: #f9f9f9;
  101. //** Background color used for `.table-hover`.
  102. @table-bg-hover: #f5f5f5;
  103. @table-bg-active: @table-bg-hover;
  104. //** Border color for table and cell borders.
  105. @table-border-color: #ddd;
  106. //== Buttons
  107. //
  108. //## For each of Bootstrap's buttons, define text, background and border color.
  109. @btn-font-weight: normal;
  110. @btn-default-color: #333;
  111. @btn-default-bg: #fff;
  112. @btn-default-border: #ccc;
  113. @btn-primary-color: #fff;
  114. @btn-primary-bg: @brand-primary;
  115. @btn-primary-border: darken(@btn-primary-bg, 5%);
  116. @btn-success-color: #fff;
  117. @btn-success-bg: @brand-success;
  118. @btn-success-border: darken(@btn-success-bg, 5%);
  119. @btn-info-color: #fff;
  120. @btn-info-bg: @brand-info;
  121. @btn-info-border: darken(@btn-info-bg, 5%);
  122. @btn-warning-color: #fff;
  123. @btn-warning-bg: @brand-warning;
  124. @btn-warning-border: darken(@btn-warning-bg, 5%);
  125. @btn-danger-color: #fff;
  126. @btn-danger-bg: @brand-danger;
  127. @btn-danger-border: darken(@btn-danger-bg, 5%);
  128. @btn-link-disabled-color: @gray-light;
  129. // Allows for customizing button radius independently from global border radius
  130. @btn-border-radius-base: @border-radius-base;
  131. @btn-border-radius-large: @border-radius-large;
  132. @btn-border-radius-small: @border-radius-small;
  133. //== Forms
  134. //
  135. //##
  136. //** `<input>` background color
  137. @input-bg: #fff;
  138. //** `<input disabled>` background color
  139. @input-bg-disabled: @gray-lighter;
  140. //** Text color for `<input>`s
  141. @input-color: @gray;
  142. //** `<input>` border color
  143. @input-border: #ccc;
  144. // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
  145. //** Default `.form-control` border radius
  146. // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
  147. @input-border-radius: @border-radius-base;
  148. //** Large `.form-control` border radius
  149. @input-border-radius-large: @border-radius-large;
  150. //** Small `.form-control` border radius
  151. @input-border-radius-small: @border-radius-small;
  152. //** Border color for inputs on focus
  153. @input-border-focus: #66afe9;
  154. //** Placeholder text color
  155. @input-color-placeholder: #999;
  156. //** Default `.form-control` height
  157. @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
  158. //** Large `.form-control` height
  159. @input-height-large: (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
  160. //** Small `.form-control` height
  161. @input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
  162. //** `.form-group` margin
  163. @form-group-margin-bottom: 15px;
  164. @legend-color: @gray-dark;
  165. @legend-border-color: #e5e5e5;
  166. //** Background color for textual input addons
  167. @input-group-addon-bg: @gray-lighter;
  168. //** Border color for textual input addons
  169. @input-group-addon-border-color: @input-border;
  170. //** Disabled cursor for form controls and buttons.
  171. @cursor-disabled: not-allowed;
  172. //== Dropdowns
  173. //
  174. //## Dropdown menu container and contents.
  175. //** Background for the dropdown menu.
  176. @dropdown-bg: #fff;
  177. //** Dropdown menu `border-color`.
  178. @dropdown-border: rgba(0,0,0,.15);
  179. //** Dropdown menu `border-color` **for IE8**.
  180. @dropdown-fallback-border: #ccc;
  181. //** Divider color for between dropdown items.
  182. @dropdown-divider-bg: #e5e5e5;
  183. //** Dropdown link text color.
  184. @dropdown-link-color: @gray-dark;
  185. //** Hover color for dropdown links.
  186. @dropdown-link-hover-color: darken(@gray-dark, 5%);
  187. //** Hover background for dropdown links.
  188. @dropdown-link-hover-bg: #f5f5f5;
  189. //** Active dropdown menu item text color.
  190. @dropdown-link-active-color: @component-active-color;
  191. //** Active dropdown menu item background color.
  192. @dropdown-link-active-bg: @component-active-bg;
  193. //** Disabled dropdown menu item background color.
  194. @dropdown-link-disabled-color: @gray-light;
  195. //** Text color for headers within dropdown menus.
  196. @dropdown-header-color: @gray-light;
  197. //** Deprecated `@dropdown-caret-color` as of v3.1.0
  198. @dropdown-caret-color: #000;
  199. //-- Z-index master list
  200. //
  201. // Warning: Avoid customizing these values. They're used for a bird's eye view
  202. // of components dependent on the z-axis and are designed to all work together.
  203. //
  204. // Note: These variables are not generated into the Customizer.
  205. @zindex-navbar: 1000;
  206. @zindex-dropdown: 1000;
  207. @zindex-popover: 1060;
  208. @zindex-tooltip: 1070;
  209. @zindex-navbar-fixed: 1030;
  210. @zindex-modal-background: 1040;
  211. @zindex-modal: 1050;
  212. //== Media queries breakpoints
  213. //
  214. //## Define the breakpoints at which your layout will change, adapting to different screen sizes.
  215. // Extra small screen / phone
  216. //** Deprecated `@screen-xs` as of v3.0.1
  217. @screen-xs: 480px;
  218. //** Deprecated `@screen-xs-min` as of v3.2.0
  219. @screen-xs-min: @screen-xs;
  220. //** Deprecated `@screen-phone` as of v3.0.1
  221. @screen-phone: @screen-xs-min;
  222. // Small screen / tablet
  223. //** Deprecated `@screen-sm` as of v3.0.1
  224. @screen-sm: 768px;
  225. @screen-sm-min: @screen-sm;
  226. //** Deprecated `@screen-tablet` as of v3.0.1
  227. @screen-tablet: @screen-sm-min;
  228. // Medium screen / desktop
  229. //** Deprecated `@screen-md` as of v3.0.1
  230. @screen-md: 992px;
  231. @screen-md-min: @screen-md;
  232. //** Deprecated `@screen-desktop` as of v3.0.1
  233. @screen-desktop: @screen-md-min;
  234. // Large screen / wide desktop
  235. //** Deprecated `@screen-lg` as of v3.0.1
  236. @screen-lg: 1200px;
  237. @screen-lg-min: @screen-lg;
  238. //** Deprecated `@screen-lg-desktop` as of v3.0.1
  239. @screen-lg-desktop: @screen-lg-min;
  240. // So media queries don't overlap when required, provide a maximum
  241. @screen-xs-max: (@screen-sm-min - 1);
  242. @screen-sm-max: (@screen-md-min - 1);
  243. @screen-md-max: (@screen-lg-min - 1);
  244. //== Grid system
  245. //
  246. //## Define your custom responsive grid.
  247. //** Number of columns in the grid.
  248. @grid-columns: 12;
  249. //** Padding between columns. Gets divided in half for the left and right.
  250. @grid-gutter-width: 30px;
  251. // Navbar collapse
  252. //** Point at which the navbar becomes uncollapsed.
  253. @grid-float-breakpoint: @screen-sm-min;
  254. //** Point at which the navbar begins collapsing.
  255. @grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
  256. //== Container sizes
  257. //
  258. //## Define the maximum width of `.container` for different screen sizes.
  259. // Small screen / tablet
  260. @container-tablet: (720px + @grid-gutter-width);
  261. //** For `@screen-sm-min` and up.
  262. @container-sm: @container-tablet;
  263. // Medium screen / desktop
  264. @container-desktop: (940px + @grid-gutter-width);
  265. //** For `@screen-md-min` and up.
  266. @container-md: @container-desktop;
  267. // Large screen / wide desktop
  268. @container-large-desktop: (1140px + @grid-gutter-width);
  269. //** For `@screen-lg-min` and up.
  270. @container-lg: @container-large-desktop;
  271. //== Navbar
  272. //
  273. //##
  274. // Basics of a navbar
  275. @navbar-height: 50px;
  276. @navbar-margin-bottom: @line-height-computed;
  277. @navbar-border-radius: @border-radius-base;
  278. @navbar-padding-horizontal: floor((@grid-gutter-width / 2));
  279. @navbar-padding-vertical: ((@navbar-height - @line-height-computed) / 2);
  280. @navbar-collapse-max-height: 340px;
  281. @navbar-default-color: #777;
  282. @navbar-default-bg: #f8f8f8;
  283. @navbar-default-border: darken(@navbar-default-bg, 6.5%);
  284. // Navbar links
  285. @navbar-default-link-color: #777;
  286. @navbar-default-link-hover-color: #333;
  287. @navbar-default-link-hover-bg: transparent;
  288. @navbar-default-link-active-color: #555;
  289. @navbar-default-link-active-bg: darken(@navbar-default-bg, 6.5%);
  290. @navbar-default-link-disabled-color: #ccc;
  291. @navbar-default-link-disabled-bg: transparent;
  292. // Navbar brand label
  293. @navbar-default-brand-color: @navbar-default-link-color;
  294. @navbar-default-brand-hover-color: darken(@navbar-default-brand-color, 10%);
  295. @navbar-default-brand-hover-bg: transparent;
  296. // Navbar toggle
  297. @navbar-default-toggle-hover-bg: #ddd;
  298. @navbar-default-toggle-icon-bar-bg: #888;
  299. @navbar-default-toggle-border-color: #ddd;
  300. //=== Inverted navbar
  301. // Reset inverted navbar basics
  302. @navbar-inverse-color: lighten(@gray-light, 15%);
  303. @navbar-inverse-bg: #222;
  304. @navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
  305. // Inverted navbar links
  306. @navbar-inverse-link-color: lighten(@gray-light, 15%);
  307. @navbar-inverse-link-hover-color: #fff;
  308. @navbar-inverse-link-hover-bg: transparent;
  309. @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
  310. @navbar-inverse-link-active-bg: darken(@navbar-inverse-bg, 10%);
  311. @navbar-inverse-link-disabled-color: #444;
  312. @navbar-inverse-link-disabled-bg: transparent;
  313. // Inverted navbar brand label
  314. @navbar-inverse-brand-color: @navbar-inverse-link-color;
  315. @navbar-inverse-brand-hover-color: #fff;
  316. @navbar-inverse-brand-hover-bg: transparent;
  317. // Inverted navbar toggle
  318. @navbar-inverse-toggle-hover-bg: #333;
  319. @navbar-inverse-toggle-icon-bar-bg: #fff;
  320. @navbar-inverse-toggle-border-color: #333;
  321. //== Navs
  322. //
  323. //##
  324. //=== Shared nav styles
  325. @nav-link-padding: 10px 15px;
  326. @nav-link-hover-bg: @gray-lighter;
  327. @nav-disabled-link-color: @gray-light;
  328. @nav-disabled-link-hover-color: @gray-light;
  329. //== Tabs
  330. @nav-tabs-border-color: #ddd;
  331. @nav-tabs-link-hover-border-color: @gray-lighter;
  332. @nav-tabs-active-link-hover-bg: @body-bg;
  333. @nav-tabs-active-link-hover-color: @gray;
  334. @nav-tabs-active-link-hover-border-color: #ddd;
  335. @nav-tabs-justified-link-border-color: #ddd;
  336. @nav-tabs-justified-active-link-border-color: @body-bg;
  337. //== Pills
  338. @nav-pills-border-radius: @border-radius-base;
  339. @nav-pills-active-link-hover-bg: @component-active-bg;
  340. @nav-pills-active-link-hover-color: @component-active-color;
  341. //== Pagination
  342. //
  343. //##
  344. @pagination-color: @link-color;
  345. @pagination-bg: #fff;
  346. @pagination-border: #ddd;
  347. @pagination-hover-color: @link-hover-color;
  348. @pagination-hover-bg: @gray-lighter;
  349. @pagination-hover-border: #ddd;
  350. @pagination-active-color: #fff;
  351. @pagination-active-bg: @brand-primary;
  352. @pagination-active-border: @brand-primary;
  353. @pagination-disabled-color: @gray-light;
  354. @pagination-disabled-bg: #fff;
  355. @pagination-disabled-border: #ddd;
  356. //== Pager
  357. //
  358. //##
  359. @pager-bg: @pagination-bg;
  360. @pager-border: @pagination-border;
  361. @pager-border-radius: 15px;
  362. @pager-hover-bg: @pagination-hover-bg;
  363. @pager-active-bg: @pagination-active-bg;
  364. @pager-active-color: @pagination-active-color;
  365. @pager-disabled-color: @pagination-disabled-color;
  366. //== Jumbotron
  367. //
  368. //##
  369. @jumbotron-padding: 30px;
  370. @jumbotron-color: inherit;
  371. @jumbotron-bg: @gray-lighter;
  372. @jumbotron-heading-color: inherit;
  373. @jumbotron-font-size: ceil((@font-size-base * 1.5));
  374. @jumbotron-heading-font-size: ceil((@font-size-base * 4.5));
  375. //== Form states and alerts
  376. //
  377. //## Define colors for form feedback states and, by default, alerts.
  378. @state-success-text: #3c763d;
  379. @state-success-bg: #dff0d8;
  380. @state-success-border: darken(spin(@state-success-bg, -10), 5%);
  381. @state-info-text: #31708f;
  382. @state-info-bg: #d9edf7;
  383. @state-info-border: darken(spin(@state-info-bg, -10), 7%);
  384. @state-warning-text: #8a6d3b;
  385. @state-warning-bg: #fcf8e3;
  386. @state-warning-border: darken(spin(@state-warning-bg, -10), 5%);
  387. @state-danger-text: #a94442;
  388. @state-danger-bg: #f2dede;
  389. @state-danger-border: darken(spin(@state-danger-bg, -10), 5%);
  390. //== Tooltips
  391. //
  392. //##
  393. //** Tooltip max width
  394. @tooltip-max-width: 200px;
  395. //** Tooltip text color
  396. @tooltip-color: #fff;
  397. //** Tooltip background color
  398. @tooltip-bg: #000;
  399. @tooltip-opacity: .9;
  400. //** Tooltip arrow width
  401. @tooltip-arrow-width: 5px;
  402. //** Tooltip arrow color
  403. @tooltip-arrow-color: @tooltip-bg;
  404. //== Popovers
  405. //
  406. //##
  407. //** Popover body background color
  408. @popover-bg: #fff;
  409. //** Popover maximum width
  410. @popover-max-width: 276px;
  411. //** Popover border color
  412. @popover-border-color: rgba(0,0,0,.2);
  413. //** Popover fallback border color
  414. @popover-fallback-border-color: #ccc;
  415. //** Popover title background color
  416. @popover-title-bg: darken(@popover-bg, 3%);
  417. //** Popover arrow width
  418. @popover-arrow-width: 10px;
  419. //** Popover arrow color
  420. @popover-arrow-color: @popover-bg;
  421. //** Popover outer arrow width
  422. @popover-arrow-outer-width: (@popover-arrow-width + 1);
  423. //** Popover outer arrow color
  424. @popover-arrow-outer-color: fadein(@popover-border-color, 5%);
  425. //** Popover outer arrow fallback color
  426. @popover-arrow-outer-fallback-color: darken(@popover-fallback-border-color, 20%);
  427. //== Labels
  428. //
  429. //##
  430. //** Default label background color
  431. @label-default-bg: @gray-light;
  432. //** Primary label background color
  433. @label-primary-bg: @brand-primary;
  434. //** Success label background color
  435. @label-success-bg: @brand-success;
  436. //** Info label background color
  437. @label-info-bg: @brand-info;
  438. //** Warning label background color
  439. @label-warning-bg: @brand-warning;
  440. //** Danger label background color
  441. @label-danger-bg: @brand-danger;
  442. //** Default label text color
  443. @label-color: #fff;
  444. //** Default text color of a linked label
  445. @label-link-hover-color: #fff;
  446. //== Modals
  447. //
  448. //##
  449. //** Padding applied to the modal body
  450. @modal-inner-padding: 15px;
  451. //** Padding applied to the modal title
  452. @modal-title-padding: 15px;
  453. //** Modal title line-height
  454. @modal-title-line-height: @line-height-base;
  455. //** Background color of modal content area
  456. @modal-content-bg: #fff;
  457. //** Modal content border color
  458. @modal-content-border-color: rgba(0,0,0,.2);
  459. //** Modal content border color **for IE8**
  460. @modal-content-fallback-border-color: #999;
  461. //** Modal backdrop background color
  462. @modal-backdrop-bg: #000;
  463. //** Modal backdrop opacity
  464. @modal-backdrop-opacity: .5;
  465. //** Modal header border color
  466. @modal-header-border-color: #e5e5e5;
  467. //** Modal footer border color
  468. @modal-footer-border-color: @modal-header-border-color;
  469. @modal-lg: 900px;
  470. @modal-md: 600px;
  471. @modal-sm: 300px;
  472. //== Alerts
  473. //
  474. //## Define alert colors, border radius, and padding.
  475. @alert-padding: 15px;
  476. @alert-border-radius: @border-radius-base;
  477. @alert-link-font-weight: bold;
  478. @alert-success-bg: @state-success-bg;
  479. @alert-success-text: @state-success-text;
  480. @alert-success-border: @state-success-border;
  481. @alert-info-bg: @state-info-bg;
  482. @alert-info-text: @state-info-text;
  483. @alert-info-border: @state-info-border;
  484. @alert-warning-bg: @state-warning-bg;
  485. @alert-warning-text: @state-warning-text;
  486. @alert-warning-border: @state-warning-border;
  487. @alert-danger-bg: @state-danger-bg;
  488. @alert-danger-text: @state-danger-text;
  489. @alert-danger-border: @state-danger-border;
  490. //== Progress bars
  491. //
  492. //##
  493. //** Background color of the whole progress component
  494. @progress-bg: #f5f5f5;
  495. //** Progress bar text color
  496. @progress-bar-color: #fff;
  497. //** Variable for setting rounded corners on progress bar.
  498. @progress-border-radius: @border-radius-base;
  499. //** Default progress bar color
  500. @progress-bar-bg: @brand-primary;
  501. //** Success progress bar color
  502. @progress-bar-success-bg: @brand-success;
  503. //** Warning progress bar color
  504. @progress-bar-warning-bg: @brand-warning;
  505. //** Danger progress bar color
  506. @progress-bar-danger-bg: @brand-danger;
  507. //** Info progress bar color
  508. @progress-bar-info-bg: @brand-info;
  509. //== List group
  510. //
  511. //##
  512. //** Background color on `.list-group-item`
  513. @list-group-bg: #fff;
  514. //** `.list-group-item` border color
  515. @list-group-border: #ddd;
  516. //** List group border radius
  517. @list-group-border-radius: @border-radius-base;
  518. //** Background color of single list items on hover
  519. @list-group-hover-bg: #f5f5f5;
  520. //** Text color of active list items
  521. @list-group-active-color: @component-active-color;
  522. //** Background color of active list items
  523. @list-group-active-bg: @component-active-bg;
  524. //** Border color of active list elements
  525. @list-group-active-border: @list-group-active-bg;
  526. //** Text color for content within active list items
  527. @list-group-active-text-color: lighten(@list-group-active-bg, 40%);
  528. //** Text color of disabled list items
  529. @list-group-disabled-color: @gray-light;
  530. //** Background color of disabled list items
  531. @list-group-disabled-bg: @gray-lighter;
  532. //** Text color for content within disabled list items
  533. @list-group-disabled-text-color: @list-group-disabled-color;
  534. @list-group-link-color: #555;
  535. @list-group-link-hover-color: @list-group-link-color;
  536. @list-group-link-heading-color: #333;
  537. //== Panels
  538. //
  539. //##
  540. @panel-bg: #fff;
  541. @panel-body-padding: 15px;
  542. @panel-heading-padding: 10px 15px;
  543. @panel-footer-padding: @panel-heading-padding;
  544. @panel-border-radius: @border-radius-base;
  545. //** Border color for elements within panels
  546. @panel-inner-border: #ddd;
  547. @panel-footer-bg: #f5f5f5;
  548. @panel-default-text: @gray-dark;
  549. @panel-default-border: #ddd;
  550. @panel-default-heading-bg: #f5f5f5;
  551. @panel-primary-text: #fff;
  552. @panel-primary-border: @brand-primary;
  553. @panel-primary-heading-bg: @brand-primary;
  554. @panel-success-text: @state-success-text;
  555. @panel-success-border: @state-success-border;
  556. @panel-success-heading-bg: @state-success-bg;
  557. @panel-info-text: @state-info-text;
  558. @panel-info-border: @state-info-border;
  559. @panel-info-heading-bg: @state-info-bg;
  560. @panel-warning-text: @state-warning-text;
  561. @panel-warning-border: @state-warning-border;
  562. @panel-warning-heading-bg: @state-warning-bg;
  563. @panel-danger-text: @state-danger-text;
  564. @panel-danger-border: @state-danger-border;
  565. @panel-danger-heading-bg: @state-danger-bg;
  566. //== Thumbnails
  567. //
  568. //##
  569. //** Padding around the thumbnail image
  570. @thumbnail-padding: 4px;
  571. //** Thumbnail background color
  572. @thumbnail-bg: @body-bg;
  573. //** Thumbnail border color
  574. @thumbnail-border: #ddd;
  575. //** Thumbnail border radius
  576. @thumbnail-border-radius: @border-radius-base;
  577. //** Custom text color for thumbnail captions
  578. @thumbnail-caption-color: @text-color;
  579. //** Padding around the thumbnail caption
  580. @thumbnail-caption-padding: 9px;
  581. //== Wells
  582. //
  583. //##
  584. @well-bg: #f5f5f5;
  585. @well-border: darken(@well-bg, 7%);
  586. //== Badges
  587. //
  588. //##
  589. @badge-color: #fff;
  590. //** Linked badge text color on hover
  591. @badge-link-hover-color: #fff;
  592. @badge-bg: @gray-light;
  593. //** Badge text color in active nav link
  594. @badge-active-color: @link-color;
  595. //** Badge background color in active nav link
  596. @badge-active-bg: #fff;
  597. @badge-font-weight: bold;
  598. @badge-line-height: 1;
  599. @badge-border-radius: 10px;
  600. //== Breadcrumbs
  601. //
  602. //##
  603. @breadcrumb-padding-vertical: 8px;
  604. @breadcrumb-padding-horizontal: 15px;
  605. //** Breadcrumb background color
  606. @breadcrumb-bg: #f5f5f5;
  607. //** Breadcrumb text color
  608. @breadcrumb-color: #ccc;
  609. //** Text color of current page in the breadcrumb
  610. @breadcrumb-active-color: @gray-light;
  611. //** Textual separator for between breadcrumb elements
  612. @breadcrumb-separator: "/";
  613. //== Carousel
  614. //
  615. //##
  616. @carousel-text-shadow: 0 1px 2px rgba(0,0,0,.6);
  617. @carousel-control-color: #fff;
  618. @carousel-control-width: 15%;
  619. @carousel-control-opacity: .5;
  620. @carousel-control-font-size: 20px;
  621. @carousel-indicator-active-bg: #fff;
  622. @carousel-indicator-border-color: #fff;
  623. @carousel-caption-color: #fff;
  624. //== Close
  625. //
  626. //##
  627. @close-font-weight: bold;
  628. @close-color: #000;
  629. @close-text-shadow: 0 1px 0 #fff;
  630. //== Code
  631. //
  632. //##
  633. @code-color: #c7254e;
  634. @code-bg: #f9f2f4;
  635. @kbd-color: #fff;
  636. @kbd-bg: #333;
  637. @pre-bg: #f5f5f5;
  638. @pre-color: @gray-dark;
  639. @pre-border-color: #ccc;
  640. @pre-scrollable-max-height: 340px;
  641. //== Type
  642. //
  643. //##
  644. //** Horizontal offset for forms and lists.
  645. @component-offset-horizontal: 180px;
  646. //** Text muted color
  647. @text-muted: @gray-light;
  648. //** Abbreviations and acronyms border color
  649. @abbr-border-color: @gray-light;
  650. //** Headings small color
  651. @headings-small-color: @gray-light;
  652. //** Blockquote small color
  653. @blockquote-small-color: @gray-light;
  654. //** Blockquote font size
  655. @blockquote-font-size: (@font-size-base * 1.25);
  656. //** Blockquote border color
  657. @blockquote-border-color: @gray-lighter;
  658. //** Page header border color
  659. @page-header-border-color: @gray-lighter;
  660. //** Width of horizontal description list titles
  661. @dl-horizontal-offset: @component-offset-horizontal;
  662. //** Horizontal line color.
  663. @hr-border: @gray-lighter;
  664. // Alerts
  665. .alert-variant(@background; @border; @text-color) {
  666. background-color: @background;
  667. border-color: @border;
  668. color: @text-color;
  669. hr {
  670. border-top-color: darken(@border, 5%);
  671. }
  672. .alert-link {
  673. color: darken(@text-color, 10%);
  674. }
  675. }
  676. // Contextual backgrounds
  677. .bg-variant(@color) {
  678. background-color: @color;
  679. a&:hover,
  680. a&:focus {
  681. background-color: darken(@color, 10%);
  682. }
  683. }
  684. // Single side border-radius
  685. .border-top-radius(@radius) {
  686. border-top-right-radius: @radius;
  687. border-top-left-radius: @radius;
  688. }
  689. .border-right-radius(@radius) {
  690. border-bottom-right-radius: @radius;
  691. border-top-right-radius: @radius;
  692. }
  693. .border-bottom-radius(@radius) {
  694. border-bottom-right-radius: @radius;
  695. border-bottom-left-radius: @radius;
  696. }
  697. .border-left-radius(@radius) {
  698. border-bottom-left-radius: @radius;
  699. border-top-left-radius: @radius;
  700. }
  701. // Button variants
  702. //
  703. // Easily pump out default styles, as well as :hover, :focus, :active,
  704. // and disabled options for all buttons
  705. .button-variant(@color; @background; @border) {
  706. color: @color;
  707. background-color: @background;
  708. border-color: @border;
  709. &:focus,
  710. &.focus {
  711. color: @color;
  712. background-color: darken(@background, 10%);
  713. border-color: darken(@border, 25%);
  714. }
  715. &:hover {
  716. color: @color;
  717. background-color: darken(@background, 10%);
  718. border-color: darken(@border, 12%);
  719. }
  720. &:active,
  721. &.active,
  722. .open > .dropdown-toggle& {
  723. color: @color;
  724. background-color: darken(@background, 10%);
  725. border-color: darken(@border, 12%);
  726. &:hover,
  727. &:focus,
  728. &.focus {
  729. color: @color;
  730. background-color: darken(@background, 17%);
  731. border-color: darken(@border, 25%);
  732. }
  733. }
  734. &:active,
  735. &.active,
  736. .open > .dropdown-toggle& {
  737. background-image: none;
  738. }
  739. &.disabled,
  740. &[disabled],
  741. fieldset[disabled] & {
  742. &,
  743. &:hover,
  744. &:focus,
  745. &.focus,
  746. &:active,
  747. &.active {
  748. background-color: @background;
  749. border-color: @border;
  750. }
  751. }
  752. .badge {
  753. color: @background;
  754. background-color: @color;
  755. }
  756. }
  757. // Button sizes
  758. .button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
  759. padding: @padding-vertical @padding-horizontal;
  760. font-size: @font-size;
  761. line-height: @line-height;
  762. border-radius: @border-radius;
  763. }
  764. // Center-align a block level element
  765. .center-block() {
  766. display: block;
  767. margin-left: auto;
  768. margin-right: auto;
  769. }
  770. // Clearfix
  771. //
  772. // For modern browsers
  773. // 1. The space content is one way to avoid an Opera bug when the
  774. // contenteditable attribute is included anywhere else in the document.
  775. // Otherwise it causes space to appear at the top and bottom of elements
  776. // that are clearfixed.
  777. // 2. The use of `table` rather than `block` is only necessary if using
  778. // `:before` to contain the top-margins of child elements.
  779. //
  780. // Source: http://nicolasgallagher.com/micro-clearfix-hack/
  781. .clearfix() {
  782. &:before,
  783. &:after {
  784. content: " "; // 1
  785. display: table; // 2
  786. }
  787. &:after {
  788. clear: both;
  789. }
  790. }
  791. // Form validation states
  792. //
  793. // Used in forms.less to generate the form validation CSS for warnings, errors,
  794. // and successes.
  795. .form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
  796. // Color the label and help text
  797. .help-block,
  798. .control-label,
  799. .radio,
  800. .checkbox,
  801. .radio-inline,
  802. .checkbox-inline,
  803. &.radio label,
  804. &.checkbox label,
  805. &.radio-inline label,
  806. &.checkbox-inline label {
  807. color: @text-color;
  808. }
  809. // Set the border and box shadow on specific inputs to match
  810. .form-control {
  811. border-color: @border-color;
  812. .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
  813. &:focus {
  814. border-color: darken(@border-color, 10%);
  815. @shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
  816. .box-shadow(@shadow);
  817. }
  818. }
  819. // Set validation states also for addons
  820. .input-group-addon {
  821. color: @text-color;
  822. border-color: @border-color;
  823. background-color: @background-color;
  824. }
  825. // Optional feedback icon
  826. .form-control-feedback {
  827. color: @text-color;
  828. }
  829. }
  830. // Form control focus state
  831. //
  832. // Generate a customized focus state and for any input with the specified color,
  833. // which defaults to the `@input-border-focus` variable.
  834. //
  835. // We highly encourage you to not customize the default value, but instead use
  836. // this to tweak colors on an as-needed basis. This aesthetic change is based on
  837. // WebKit's default styles, but applicable to a wider range of browsers. Its
  838. // usability and accessibility should be taken into account with any change.
  839. //
  840. // Example usage: change the default blue border and shadow to white for better
  841. // contrast against a dark gray background.
  842. .form-control-focus(@color: @input-border-focus) {
  843. @color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
  844. &:focus {
  845. border-color: @color;
  846. outline: 0;
  847. .box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
  848. }
  849. }
  850. // Form control sizing
  851. //
  852. // Relative text size, padding, and border-radii changes for form controls. For
  853. // horizontal sizing, wrap controls in the predefined grid classes. `<select>`
  854. // element gets special love because it's special, and that's a fact!
  855. .input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
  856. height: @input-height;
  857. padding: @padding-vertical @padding-horizontal;
  858. font-size: @font-size;
  859. line-height: @line-height;
  860. border-radius: @border-radius;
  861. select& {
  862. height: @input-height;
  863. line-height: @input-height;
  864. }
  865. textarea&,
  866. select[multiple]& {
  867. height: auto;
  868. }
  869. }
  870. // Gradients
  871. #gradient {
  872. // Horizontal gradient, from left to right
  873. //
  874. // Creates two color stops, start and end, by specifying a color and position for each color stop.
  875. // Color stops are not available in IE9 and below.
  876. .horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
  877. background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
  878. background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
  879. background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
  880. background-repeat: repeat-x;
  881. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
  882. }
  883. // Vertical gradient, from top to bottom
  884. //
  885. // Creates two color stops, start and end, by specifying a color and position for each color stop.
  886. // Color stops are not available in IE9 and below.
  887. .vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
  888. background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
  889. background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
  890. background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
  891. background-repeat: repeat-x;
  892. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
  893. }
  894. .directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
  895. background-repeat: repeat-x;
  896. background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
  897. background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
  898. background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
  899. }
  900. .horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
  901. background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
  902. background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
  903. background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
  904. background-repeat: no-repeat;
  905. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
  906. }
  907. .vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
  908. background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
  909. background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
  910. background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
  911. background-repeat: no-repeat;
  912. filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
  913. }
  914. .radial(@inner-color: #555; @outer-color: #333) {
  915. background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
  916. background-image: radial-gradient(circle, @inner-color, @outer-color);
  917. background-repeat: no-repeat;
  918. }
  919. .striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
  920. background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
  921. background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
  922. background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
  923. }
  924. }
  925. // Framework grid generation
  926. //
  927. // Used only by Bootstrap to generate the correct number of grid classes given
  928. // any value of `@grid-columns`.
  929. .make-grid-columns() {
  930. // Common styles for all sizes of grid columns, widths 1-12
  931. .col(@index) { // initial
  932. @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
  933. .col((@index + 1), @item);
  934. }
  935. .col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
  936. @item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
  937. .col((@index + 1), ~"@{list}, @{item}");
  938. }
  939. .col(@index, @list) when (@index > @grid-columns) { // terminal
  940. @{list} {
  941. position: relative;
  942. // Prevent columns from collapsing when empty
  943. min-height: 1px;
  944. // Inner gutter via padding
  945. padding-left: ceil((@grid-gutter-width / 2));
  946. padding-right: floor((@grid-gutter-width / 2));
  947. }
  948. }
  949. .col(1); // kickstart it
  950. }
  951. .float-grid-columns(@class) {
  952. .col(@index) { // initial
  953. @item: ~".col-@{class}-@{index}";
  954. .col((@index + 1), @item);
  955. }
  956. .col(@index, @list) when (@index =< @grid-columns) { // general
  957. @item: ~".col-@{class}-@{index}";
  958. .col((@index + 1), ~"@{list}, @{item}");
  959. }
  960. .col(@index, @list) when (@index > @grid-columns) { // terminal
  961. @{list} {
  962. float: left;
  963. }
  964. }
  965. .col(1); // kickstart it
  966. }
  967. .calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
  968. .col-@{class}-@{index} {
  969. width: percentage((@index / @grid-columns));
  970. }
  971. }
  972. .calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
  973. .col-@{class}-push-@{index} {
  974. left: percentage((@index / @grid-columns));
  975. }
  976. }
  977. .calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
  978. .col-@{class}-push-0 {
  979. left: auto;
  980. }
  981. }
  982. .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
  983. .col-@{class}-pull-@{index} {
  984. right: percentage((@index / @grid-columns));
  985. }
  986. }
  987. .calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
  988. .col-@{class}-pull-0 {
  989. right: auto;
  990. }
  991. }
  992. .calc-grid-column(@index, @class, @type) when (@type = offset) {
  993. .col-@{class}-offset-@{index} {
  994. margin-left: percentage((@index / @grid-columns));
  995. }
  996. }
  997. // Basic looping in LESS
  998. .loop-grid-columns(@index, @class, @type) when (@index >= 0) {
  999. .calc-grid-column(@index, @class, @type);
  1000. // next iteration
  1001. .loop-grid-columns((@index - 1), @class, @type);
  1002. }
  1003. // Create grid for specific class
  1004. .make-grid(@class) {
  1005. .float-grid-columns(@class);
  1006. .loop-grid-columns(@grid-columns, @class, width);
  1007. .loop-grid-columns(@grid-columns, @class, pull);
  1008. .loop-grid-columns(@grid-columns, @class, push);
  1009. .loop-grid-columns(@grid-columns, @class, offset);
  1010. }
  1011. // Grid system
  1012. //
  1013. // Generate semantic grid columns with these mixins.
  1014. // Centered container element
  1015. .container-fixed(@gutter: @grid-gutter-width) {
  1016. margin-right: auto;
  1017. margin-left: auto;
  1018. padding-left: (@gutter / 2);
  1019. padding-right: (@gutter / 2);
  1020. &:extend(.clearfix all);
  1021. }
  1022. // Creates a wrapper for a series of columns
  1023. .make-row(@gutter: @grid-gutter-width) {
  1024. margin-left: ceil((@gutter / -2));
  1025. margin-right: floor((@gutter / -2));
  1026. &:extend(.clearfix all);
  1027. }
  1028. // Generate the extra small columns
  1029. .make-xs-column(@columns; @gutter: @grid-gutter-width) {
  1030. position: relative;
  1031. float: left;
  1032. width: percentage((@columns / @grid-columns));
  1033. min-height: 1px;
  1034. padding-left: (@gutter / 2);
  1035. padding-right: (@gutter / 2);
  1036. }
  1037. .make-xs-column-offset(@columns) {
  1038. margin-left: percentage((@columns / @grid-columns));
  1039. }
  1040. .make-xs-column-push(@columns) {
  1041. left: percentage((@columns / @grid-columns));
  1042. }
  1043. .make-xs-column-pull(@columns) {
  1044. right: percentage((@columns / @grid-columns));
  1045. }
  1046. // Generate the small columns
  1047. .make-sm-column(@columns; @gutter: @grid-gutter-width) {
  1048. position: relative;
  1049. min-height: 1px;
  1050. padding-left: (@gutter / 2);
  1051. padding-right: (@gutter / 2);
  1052. @media (min-width: @screen-sm-min) {
  1053. float: left;
  1054. width: percentage((@columns / @grid-columns));
  1055. }
  1056. }
  1057. .make-sm-column-offset(@columns) {
  1058. @media (min-width: @screen-sm-min) {
  1059. margin-left: percentage((@columns / @grid-columns));
  1060. }
  1061. }
  1062. .make-sm-column-push(@columns) {
  1063. @media (min-width: @screen-sm-min) {
  1064. left: percentage((@columns / @grid-columns));
  1065. }
  1066. }
  1067. .make-sm-column-pull(@columns) {
  1068. @media (min-width: @screen-sm-min) {
  1069. right: percentage((@columns / @grid-columns));
  1070. }
  1071. }
  1072. // Generate the medium columns
  1073. .make-md-column(@columns; @gutter: @grid-gutter-width) {
  1074. position: relative;
  1075. min-height: 1px;
  1076. padding-left: (@gutter / 2);
  1077. padding-right: (@gutter / 2);
  1078. @media (min-width: @screen-md-min) {
  1079. float: left;
  1080. width: percentage((@columns / @grid-columns));
  1081. }
  1082. }
  1083. .make-md-column-offset(@columns) {
  1084. @media (min-width: @screen-md-min) {
  1085. margin-left: percentage((@columns / @grid-columns));
  1086. }
  1087. }
  1088. .make-md-column-push(@columns) {
  1089. @media (min-width: @screen-md-min) {
  1090. left: percentage((@columns / @grid-columns));
  1091. }
  1092. }
  1093. .make-md-column-pull(@columns) {
  1094. @media (min-width: @screen-md-min) {
  1095. right: percentage((@columns / @grid-columns));
  1096. }
  1097. }
  1098. // Generate the large columns
  1099. .make-lg-column(@columns; @gutter: @grid-gutter-width) {
  1100. position: relative;
  1101. min-height: 1px;
  1102. padding-left: (@gutter / 2);
  1103. padding-right: (@gutter / 2);
  1104. @media (min-width: @screen-lg-min) {
  1105. float: left;
  1106. width: percentage((@columns / @grid-columns));
  1107. }
  1108. }
  1109. .make-lg-column-offset(@columns) {
  1110. @media (min-width: @screen-lg-min) {
  1111. margin-left: percentage((@columns / @grid-columns));
  1112. }
  1113. }
  1114. .make-lg-column-push(@columns) {
  1115. @media (min-width: @screen-lg-min) {
  1116. left: percentage((@columns / @grid-columns));
  1117. }
  1118. }
  1119. .make-lg-column-pull(@columns) {
  1120. @media (min-width: @screen-lg-min) {
  1121. right: percentage((@columns / @grid-columns));
  1122. }
  1123. }
  1124. // CSS image replacement
  1125. //
  1126. // Heads up! v3 launched with only `.hide-text()`, but per our pattern for
  1127. // mixins being reused as classes with the same name, this doesn't hold up. As
  1128. // of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
  1129. //
  1130. // Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
  1131. // Deprecated as of v3.0.1 (will be removed in v4)
  1132. .hide-text() {
  1133. font: ~"0/0" a;
  1134. color: transparent;
  1135. text-shadow: none;
  1136. background-color: transparent;
  1137. border: 0;
  1138. }
  1139. // New mixin to use as of v3.0.1
  1140. .text-hide() {
  1141. .hide-text();
  1142. }
  1143. // Image Mixins
  1144. // - Responsive image
  1145. // - Retina image
  1146. // Responsive image
  1147. //
  1148. // Keep images from scaling beyond the width of their parents.
  1149. .img-responsive(@display: block) {
  1150. display: @display;
  1151. max-width: 100%; // Part 1: Set a maximum relative to the parent
  1152. height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
  1153. }
  1154. // Retina image
  1155. //
  1156. // Short retina mixin for setting background-image and -size. Note that the
  1157. // spelling of `min--moz-device-pixel-ratio` is intentional.
  1158. .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {
  1159. background-image: url("@{file-1x}");
  1160. @media
  1161. only screen and (-webkit-min-device-pixel-ratio: 2),
  1162. only screen and ( min--moz-device-pixel-ratio: 2),
  1163. only screen and ( -o-min-device-pixel-ratio: 2/1),
  1164. only screen and ( min-device-pixel-ratio: 2),
  1165. only screen and ( min-resolution: 192dpi),
  1166. only screen and ( min-resolution: 2dppx) {
  1167. background-image: url("@{file-2x}");
  1168. background-size: @width-1x @height-1x;
  1169. }
  1170. }
  1171. // Labels
  1172. .label-variant(@color) {
  1173. background-color: @color;
  1174. &[href] {
  1175. &:hover,
  1176. &:focus {
  1177. background-color: darken(@color, 10%);
  1178. }
  1179. }
  1180. }
  1181. // List Groups
  1182. .list-group-item-variant(@state; @background; @color) {
  1183. .list-group-item-@{state} {
  1184. color: @color;
  1185. background-color: @background;
  1186. a&,
  1187. button& {
  1188. color: @color;
  1189. .list-group-item-heading {
  1190. color: inherit;
  1191. }
  1192. &:hover,
  1193. &:focus {
  1194. color: @color;
  1195. background-color: darken(@background, 5%);
  1196. }
  1197. &.active,
  1198. &.active:hover,
  1199. &.active:focus {
  1200. color: #fff;
  1201. background-color: @color;
  1202. border-color: @color;
  1203. }
  1204. }
  1205. }
  1206. }
  1207. // Horizontal dividers
  1208. //
  1209. // Dividers (basically an hr) within dropdowns and nav lists
  1210. .nav-divider(@color: #e5e5e5) {
  1211. height: 1px;
  1212. margin: ((@line-height-computed / 2) - 1) 0;
  1213. overflow: hidden;
  1214. background-color: @color;
  1215. }
  1216. // Navbar vertical align
  1217. //
  1218. // Vertically center elements in the navbar.
  1219. // Example: an element has a height of 30px, so write out `.navbar-vertical-align(30px);` to calculate the appropriate top margin.
  1220. .navbar-vertical-align(@element-height) {
  1221. margin-top: ((@navbar-height - @element-height) / 2);
  1222. margin-bottom: ((@navbar-height - @element-height) / 2);
  1223. }
  1224. // Opacity
  1225. .opacity(@opacity) {
  1226. opacity: @opacity;
  1227. // IE8 filter
  1228. @opacity-ie: (@opacity * 100);
  1229. filter: ~"alpha(opacity=@{opacity-ie})";
  1230. }
  1231. // Pagination
  1232. .pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
  1233. > li {
  1234. > a,
  1235. > span {
  1236. padding: @padding-vertical @padding-horizontal;
  1237. font-size: @font-size;
  1238. line-height: @line-height;
  1239. }
  1240. &:first-child {
  1241. > a,
  1242. > span {
  1243. .border-left-radius(@border-radius);
  1244. }
  1245. }
  1246. &:last-child {
  1247. > a,
  1248. > span {
  1249. .border-right-radius(@border-radius);
  1250. }
  1251. }
  1252. }
  1253. }
  1254. // Panels
  1255. .panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border) {
  1256. border-color: @border;
  1257. & > .panel-heading {
  1258. color: @heading-text-color;
  1259. background-color: @heading-bg-color;
  1260. border-color: @heading-border;
  1261. + .panel-collapse > .panel-body {
  1262. border-top-color: @border;
  1263. }
  1264. .badge {
  1265. color: @heading-bg-color;
  1266. background-color: @heading-text-color;
  1267. }
  1268. }
  1269. & > .panel-footer {
  1270. + .panel-collapse > .panel-body {
  1271. border-bottom-color: @border;
  1272. }
  1273. }
  1274. }
  1275. // Progress bars
  1276. .progress-bar-variant(@color) {
  1277. background-color: @color;
  1278. // Deprecated parent class requirement as of v3.2.0
  1279. .progress-striped & {
  1280. #gradient > .striped();
  1281. }
  1282. }
  1283. // Reset filters for IE
  1284. //
  1285. // When you need to remove a gradient background, do not forget to use this to reset
  1286. // the IE filter for IE9 and below.
  1287. .reset-filter() {
  1288. filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
  1289. }
  1290. .reset-text() {
  1291. font-family: @font-family-base;
  1292. // We deliberately do NOT reset font-size.
  1293. font-style: normal;
  1294. font-weight: normal;
  1295. letter-spacing: normal;
  1296. line-break: auto;
  1297. line-height: @line-height-base;
  1298. text-align: left; // Fallback for where `start` is not supported
  1299. text-align: start;
  1300. text-decoration: none;
  1301. text-shadow: none;
  1302. text-transform: none;
  1303. white-space: normal;
  1304. word-break: normal;
  1305. word-spacing: normal;
  1306. word-wrap: normal;
  1307. }
  1308. // Resize anything
  1309. .resizable(@direction) {
  1310. resize: @direction; // Options: horizontal, vertical, both
  1311. overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
  1312. }
  1313. // Responsive utilities
  1314. //
  1315. // More easily include all the states for responsive-utilities.less.
  1316. .responsive-visibility() {
  1317. display: block !important;
  1318. table& { display: table !important; }
  1319. tr& { display: table-row !important; }
  1320. th&,
  1321. td& { display: table-cell !important; }
  1322. }
  1323. .responsive-invisibility() {
  1324. display: none !important;
  1325. }
  1326. // Sizing shortcuts
  1327. .size(@width; @height) {
  1328. width: @width;
  1329. height: @height;
  1330. }
  1331. .square(@size) {
  1332. .size(@size; @size);
  1333. }
  1334. // WebKit-style focus
  1335. .tab-focus() {
  1336. // Default
  1337. outline: thin dotted;
  1338. // WebKit
  1339. outline: 5px auto -webkit-focus-ring-color;
  1340. outline-offset: -2px;
  1341. }
  1342. // Tables
  1343. .table-row-variant(@state; @background) {
  1344. // Exact selectors below required to override `.table-striped` and prevent
  1345. // inheritance to nested tables.
  1346. .table > thead > tr,
  1347. .table > tbody > tr,
  1348. .table > tfoot > tr {
  1349. > td.@{state},
  1350. > th.@{state},
  1351. &.@{state} > td,
  1352. &.@{state} > th {
  1353. background-color: @background;
  1354. }
  1355. }
  1356. // Hover states for `.table-hover`
  1357. // Note: this is not available for cells or rows within `thead` or `tfoot`.
  1358. .table-hover > tbody > tr {
  1359. > td.@{state}:hover,
  1360. > th.@{state}:hover,
  1361. &.@{state}:hover > td,
  1362. &:hover > .@{state},
  1363. &.@{state}:hover > th {
  1364. background-color: darken(@background, 5%);
  1365. }
  1366. }
  1367. }
  1368. // Typography
  1369. .text-emphasis-variant(@color) {
  1370. color: @color;
  1371. a&:hover,
  1372. a&:focus {
  1373. color: darken(@color, 10%);
  1374. }
  1375. }
  1376. // Text overflow
  1377. // Requires inline-block or block for proper styling
  1378. .text-overflow() {
  1379. overflow: hidden;
  1380. text-overflow: ellipsis;
  1381. white-space: nowrap;
  1382. }
  1383. // Vendor Prefixes
  1384. //
  1385. // All vendor mixins are deprecated as of v3.2.0 due to the introduction of
  1386. // Autoprefixer in our Gruntfile. They will be removed in v4.
  1387. // - Animations
  1388. // - Backface visibility
  1389. // - Box shadow
  1390. // - Box sizing
  1391. // - Content columns
  1392. // - Hyphens
  1393. // - Placeholder text
  1394. // - Transformations
  1395. // - Transitions
  1396. // - User Select
  1397. // Animations
  1398. .animation(@animation) {
  1399. -webkit-animation: @animation;
  1400. -o-animation: @animation;
  1401. animation: @animation;
  1402. }
  1403. .animation-name(@name) {
  1404. -webkit-animation-name: @name;
  1405. animation-name: @name;
  1406. }
  1407. .animation-duration(@duration) {
  1408. -webkit-animation-duration: @duration;
  1409. animation-duration: @duration;
  1410. }
  1411. .animation-timing-function(@timing-function) {
  1412. -webkit-animation-timing-function: @timing-function;
  1413. animation-timing-function: @timing-function;
  1414. }
  1415. .animation-delay(@delay) {
  1416. -webkit-animation-delay: @delay;
  1417. animation-delay: @delay;
  1418. }
  1419. .animation-iteration-count(@iteration-count) {
  1420. -webkit-animation-iteration-count: @iteration-count;
  1421. animation-iteration-count: @iteration-count;
  1422. }
  1423. .animation-direction(@direction) {
  1424. -webkit-animation-direction: @direction;
  1425. animation-direction: @direction;
  1426. }
  1427. .animation-fill-mode(@fill-mode) {
  1428. -webkit-animation-fill-mode: @fill-mode;
  1429. animation-fill-mode: @fill-mode;
  1430. }
  1431. // Backface visibility
  1432. // Prevent browsers from flickering when using CSS 3D transforms.
  1433. // Default value is `visible`, but can be changed to `hidden`
  1434. .backface-visibility(@visibility){
  1435. -webkit-backface-visibility: @visibility;
  1436. -moz-backface-visibility: @visibility;
  1437. backface-visibility: @visibility;
  1438. }
  1439. // Drop shadows
  1440. //
  1441. // Note: Deprecated `.box-shadow()` as of v3.1.0 since all of Bootstrap's
  1442. // supported browsers that have box shadow capabilities now support it.
  1443. .box-shadow(@shadow) {
  1444. -webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
  1445. box-shadow: @shadow;
  1446. }
  1447. // Box sizing
  1448. .box-sizing(@boxmodel) {
  1449. -webkit-box-sizing: @boxmodel;
  1450. -moz-box-sizing: @boxmodel;
  1451. box-sizing: @boxmodel;
  1452. }
  1453. // CSS3 Content Columns
  1454. .content-columns(@column-count; @column-gap: @grid-gutter-width) {
  1455. -webkit-column-count: @column-count;
  1456. -moz-column-count: @column-count;
  1457. column-count: @column-count;
  1458. -webkit-column-gap: @column-gap;
  1459. -moz-column-gap: @column-gap;
  1460. column-gap: @column-gap;
  1461. }
  1462. // Optional hyphenation
  1463. .hyphens(@mode: auto) {
  1464. word-wrap: break-word;
  1465. -webkit-hyphens: @mode;
  1466. -moz-hyphens: @mode;
  1467. -ms-hyphens: @mode; // IE10+
  1468. -o-hyphens: @mode;
  1469. hyphens: @mode;
  1470. }
  1471. // Placeholder text
  1472. .placeholder(@color: @input-color-placeholder) {
  1473. // Firefox
  1474. &::-moz-placeholder {
  1475. color: @color;
  1476. opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
  1477. }
  1478. &:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
  1479. &::-webkit-input-placeholder { color: @color; } // Safari and Chrome
  1480. }
  1481. // Transformations
  1482. .scale(@ratio) {
  1483. -webkit-transform: scale(@ratio);
  1484. -ms-transform: scale(@ratio); // IE9 only
  1485. -o-transform: scale(@ratio);
  1486. transform: scale(@ratio);
  1487. }
  1488. .scale(@ratioX; @ratioY) {
  1489. -webkit-transform: scale(@ratioX, @ratioY);
  1490. -ms-transform: scale(@ratioX, @ratioY); // IE9 only
  1491. -o-transform: scale(@ratioX, @ratioY);
  1492. transform: scale(@ratioX, @ratioY);
  1493. }
  1494. .scaleX(@ratio) {
  1495. -webkit-transform: scaleX(@ratio);
  1496. -ms-transform: scaleX(@ratio); // IE9 only
  1497. -o-transform: scaleX(@ratio);
  1498. transform: scaleX(@ratio);
  1499. }
  1500. .scaleY(@ratio) {
  1501. -webkit-transform: scaleY(@ratio);
  1502. -ms-transform: scaleY(@ratio); // IE9 only
  1503. -o-transform: scaleY(@ratio);
  1504. transform: scaleY(@ratio);
  1505. }
  1506. .skew(@x; @y) {
  1507. -webkit-transform: skewX(@x) skewY(@y);
  1508. -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885; IE9+
  1509. -o-transform: skewX(@x) skewY(@y);
  1510. transform: skewX(@x) skewY(@y);
  1511. }
  1512. .translate(@x; @y) {
  1513. -webkit-transform: translate(@x, @y);
  1514. -ms-transform: translate(@x, @y); // IE9 only
  1515. -o-transform: translate(@x, @y);
  1516. transform: translate(@x, @y);
  1517. }
  1518. .translate3d(@x; @y; @z) {
  1519. -webkit-transform: translate3d(@x, @y, @z);
  1520. transform: translate3d(@x, @y, @z);
  1521. }
  1522. .rotate(@degrees) {
  1523. -webkit-transform: rotate(@degrees);
  1524. -ms-transform: rotate(@degrees); // IE9 only
  1525. -o-transform: rotate(@degrees);
  1526. transform: rotate(@degrees);
  1527. }
  1528. .rotateX(@degrees) {
  1529. -webkit-transform: rotateX(@degrees);
  1530. -ms-transform: rotateX(@degrees); // IE9 only
  1531. -o-transform: rotateX(@degrees);
  1532. transform: rotateX(@degrees);
  1533. }
  1534. .rotateY(@degrees) {
  1535. -webkit-transform: rotateY(@degrees);
  1536. -ms-transform: rotateY(@degrees); // IE9 only
  1537. -o-transform: rotateY(@degrees);
  1538. transform: rotateY(@degrees);
  1539. }
  1540. .perspective(@perspective) {
  1541. -webkit-perspective: @perspective;
  1542. -moz-perspective: @perspective;
  1543. perspective: @perspective;
  1544. }
  1545. .perspective-origin(@perspective) {
  1546. -webkit-perspective-origin: @perspective;
  1547. -moz-perspective-origin: @perspective;
  1548. perspective-origin: @perspective;
  1549. }
  1550. .transform-origin(@origin) {
  1551. -webkit-transform-origin: @origin;
  1552. -moz-transform-origin: @origin;
  1553. -ms-transform-origin: @origin; // IE9 only
  1554. transform-origin: @origin;
  1555. }
  1556. // Transitions
  1557. .transition(@transition) {
  1558. -webkit-transition: @transition;
  1559. -o-transition: @transition;
  1560. transition: @transition;
  1561. }
  1562. .transition-property(@transition-property) {
  1563. -webkit-transition-property: @transition-property;
  1564. transition-property: @transition-property;
  1565. }
  1566. .transition-delay(@transition-delay) {
  1567. -webkit-transition-delay: @transition-delay;
  1568. transition-delay: @transition-delay;
  1569. }
  1570. .transition-duration(@transition-duration) {
  1571. -webkit-transition-duration: @transition-duration;
  1572. transition-duration: @transition-duration;
  1573. }
  1574. .transition-timing-function(@timing-function) {
  1575. -webkit-transition-timing-function: @timing-function;
  1576. transition-timing-function: @timing-function;
  1577. }
  1578. .transition-transform(@transition) {
  1579. -webkit-transition: -webkit-transform @transition;
  1580. -moz-transition: -moz-transform @transition;
  1581. -o-transition: -o-transform @transition;
  1582. transition: transform @transition;
  1583. }
  1584. // User select
  1585. // For selecting text on the page
  1586. .user-select(@select) {
  1587. -webkit-user-select: @select;
  1588. -moz-user-select: @select;
  1589. -ms-user-select: @select; // IE10+
  1590. user-select: @select;
  1591. }
  1592. .bootstrap-dialog {
  1593. .modal-header {
  1594. border-top-left-radius: 4px;
  1595. border-top-right-radius: 4px;
  1596. }
  1597. .bootstrap-dialog-title {
  1598. color: #fff;
  1599. display: inline-block;
  1600. font-size: 16px;
  1601. }
  1602. .bootstrap-dialog-message {
  1603. font-size: 14px;
  1604. }
  1605. .bootstrap-dialog-button-icon {
  1606. margin-right: 3px;
  1607. }
  1608. .bootstrap-dialog-close-button {
  1609. font-size: 20px;
  1610. float: right;
  1611. .opacity(0.9);
  1612. &:hover {
  1613. cursor: pointer;
  1614. .opacity(1.0);
  1615. }
  1616. }
  1617. /* dialog types */
  1618. &.type-default {
  1619. .modal-header {
  1620. background-color: @modal-content-bg;
  1621. }
  1622. .bootstrap-dialog-title {
  1623. color: #333;
  1624. }
  1625. }
  1626. &.type-info {
  1627. .modal-header {
  1628. background-color: @brand-info;
  1629. }
  1630. }
  1631. &.type-primary {
  1632. .modal-header {
  1633. background-color: @brand-primary;
  1634. }
  1635. }
  1636. &.type-success {
  1637. .modal-header {
  1638. background-color: @brand-success;
  1639. }
  1640. }
  1641. &.type-warning {
  1642. .modal-header {
  1643. background-color: @brand-warning;
  1644. }
  1645. }
  1646. &.type-danger {
  1647. .modal-header {
  1648. background-color: @brand-danger;
  1649. }
  1650. }
  1651. &.size-large {
  1652. .bootstrap-dialog-title {
  1653. font-size: 24px;
  1654. }
  1655. .bootstrap-dialog-close-button {
  1656. font-size: 30px;
  1657. }
  1658. .bootstrap-dialog-message {
  1659. font-size: 18px;
  1660. }
  1661. }
  1662. /**
  1663. * Icon animation
  1664. * Copied from font-awesome: http://fontawesome.io/
  1665. **/
  1666. .icon-spin {
  1667. display: inline-block;
  1668. -moz-animation: spin 2s infinite linear;
  1669. -o-animation: spin 2s infinite linear;
  1670. -webkit-animation: spin 2s infinite linear;
  1671. animation: spin 2s infinite linear;
  1672. }
  1673. @-moz-keyframes spin {
  1674. 0% {
  1675. -moz-transform: rotate(0deg);
  1676. }
  1677. 100% {
  1678. -moz-transform: rotate(359deg);
  1679. }
  1680. }
  1681. @-webkit-keyframes spin {
  1682. 0% {
  1683. -webkit-transform: rotate(0deg);
  1684. }
  1685. 100% {
  1686. -webkit-transform: rotate(359deg);
  1687. }
  1688. }
  1689. @-o-keyframes spin {
  1690. 0% {
  1691. -o-transform: rotate(0deg);
  1692. }
  1693. 100% {
  1694. -o-transform: rotate(359deg);
  1695. }
  1696. }
  1697. @-ms-keyframes spin {
  1698. 0% {
  1699. -ms-transform: rotate(0deg);
  1700. }
  1701. 100% {
  1702. -ms-transform: rotate(359deg);
  1703. }
  1704. }
  1705. @keyframes spin {
  1706. 0% {
  1707. transform: rotate(0deg);
  1708. }
  1709. 100% {
  1710. transform: rotate(359deg);
  1711. }
  1712. }
  1713. /** End of icon animation **/
  1714. }