variables-custom.less 8.96 KB
Newer Older
Felipe Escala Torres committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
// ------------------------------------------------------------------------------
//
//  # Additional variables
//
//  Custom additions to BS variables and other content variations
//
//  Version: 1.0
//  Latest update: May 25, 2015
//
// ------------------------------------------------------------------------------


//
// Shadows
// ------------------------------
//

//** Material design shadows
@shadow-depth1: 						     0 1px 3px fade(#000, 12%), 0 1px 2px fade(#000, 24%);
@shadow-depth1-reversed: 				     0 -1px 2px fade(#000, 24%);
@shadow-depth2: 						     0 3px 6px fade(#000, 16%), 0 3px 6px fade(#000, 23%);
@shadow-depth3:							     0 10px 20px fade(#000, 19%), 0 6px 6px fade(#000, 23%);
@shadow-depth4:							     0 14px 28px fade(#000, 25%), 0 10px 10px fade(#000, 22%);
@shadow-depth5:							     0 19px 38px fade(#000, 30%), 0 15px 12px fade(#000, 22%);



//
// Typography
// ------------------------------
//

//** XLarge computed line height
@line-height-computed-xlarge:    		     floor((@font-size-xlarge * @line-height-base)); // ~20px
@line-height-computed-large: 			     floor((@font-size-large * @line-height-base));
@line-height-computed-small: 			     floor((@font-size-small * @line-height-base));
@line-height-computed-mini: 			     floor((@font-size-mini * @line-height-base));


//** XLarge font size (v. 1.3)
@font-size-xlarge:                           @font-size-h6;

//** XLarge line height (v. 1.3)
@line-height-xlarge:                         1.333334;


//** Mini font size
@font-size-mini: 						     ceil((@font-size-base * 0.8)); // ~11px

//** Mini line height, for the smallest size
@line-height-mini: 						     1.82;


//** Adding negative letter spacing to headings
@heading-letter-spacing:				     -0.015em;

//** Vertical list padding, mainly used in navigation and dropdowns
@list-spacing: 							     @padding-base-vertical;

//** Font size used in icons. Icomoon icon set is based on 16px grid
@icon-font-size: 						     16px;

//** Additional element's horizontal spacing for inline elements
@element-horizontal-spacing: 			     @padding-base-vertical;



//
// Content
// ------------------------------
//

//** Page header backgrounds (v. 1.3)
@page-header-default-bg:                     #fff;
@page-header-inverse-bg:                     #273246;


//** Required additional padding options, integrated to other less files
@content-padding-large: 					20px;
@content-padding-base: 						15px;
@content-padding-small: 					10px;


//** Extra large padding for inputs and buttons
@padding-xlarge-vertical:    				10px;
@padding-xlarge-horizontal:  				16px;


//** Floating button padding
@btn-float-padding: 						16px;



//
// Components
// ------------------------------
//

//** Primary form state
@state-primary-bg:               			@color-primary-50;
@state-primary-text:             			@color-primary-800;
@state-primary-border:           			@color-primary-600;

//** Progress bar height (4px step)
@progress-base-height: 						18px;

@progress-large-height: 					(@progress-base-height + 4); // ~ 22px
@progress-small-height: 					(@progress-base-height - 4); // ~ 14px
@progress-mini-height: 						(@progress-base-height - 8); // ~ 10px
@progress-tiny-height: 						(@progress-base-height - 12); // ~ 6px
@progress-micro-height: 					(@progress-base-height - 16); // ~ 2px

//** Additional "Primary" alert contextual class
@alert-primary-bg: 							@state-primary-bg;
@alert-primary-text: 						@state-primary-text;
@alert-primary-border: 						@state-primary-border;

//** Slider sizes for jQuery UI and NoUI sliders
@slider-base-size: 							6px;
@slider-large-size: 						@slider-base-size + 2;
@slider-small-size: 						@slider-base-size - 2;
@slider-mini-size: 							@slider-base-size - 4;

//** Color for menu and dropdown menu highlight background
@dropdown-annotation-bg: 					#f8f8f8;



//
// Tables
// ------------------------------
//

//** Header and footer border color
@table-border-highlight: 					#bbb;

//** Optional sizes
@table-xlarge-cell-padding: 				20px;
@table-large-cell-padding: 					15px 20px;
@table-small-cell-padding: 					10px 20px;
@table-mini-cell-padding: 					8px 20px;
@table-micro-cell-padding: 					6px 15px;



//
// Forms
// ------------------------------
//

//** Placeholder text color
@input-placeholder-light: 					#fff;


//** Extra large `.form-control` height
@input-height-xlarge: 						(floor(@font-size-xlarge * @line-height-xlarge) + (@padding-xlarge-vertical * 2) + 2); // ~ 42px

//** Mini `.form-control` height
@input-height-mini: 						(floor(@font-size-base * @line-height-base) + (@padding-xs-vertical * 2) + 2); // ~ 32px


//** Checkbox and radio sizes
@checkbox-size: 							18px;
@checkbox-border-width: 					2px;

//** Switchery toggle sizes
@switchery-base-size: 						22px;

@switchery-large-size: 						@switchery-base-size + 4; // ~ 26px
@switchery-small-size: 						@switchery-base-size - 4; // ~ 18px
@switchery-mini-size:						@switchery-base-size - 8; // ~ 14px


//** Spacing for tags (v. 1.3)
@tags-spacing:                              2px;

@tags-color:                                @text-color;
@tags-hover-color:                          #fff;

@tags-bg:                                   #eee;
@tags-hover-bg:                             @color-blue-500;


//** Summernote editor (v. 1.3)
@summernote-font-path:                      "../css/icons/summernote/";



//
// Navbar component
// ------------------------------
//

//** Padding
@navbar-padding-vertical-large:				((@navbar-height-large - @line-height-computed) / 2); // ~ 13px
@navbar-padding-vertical-small:				((@navbar-height-small - @line-height-computed) / 2); // ~ 11px
@navbar-padding-vertical-mini:				((@navbar-height-mini - @line-height-computed) / 2); // ~ 10px

//** Sizing
@navbar-height-large:						(@navbar-height + 4); // ~ 48px
@navbar-height-small:						(@navbar-height - 2); // ~ 42px
@navbar-height-mini:						(@navbar-height - 4); // ~ 40px



//
// Nav components
// ------------------------------
//

//** Additional paddings
@nav-link-padding-large:					(@padding-base-vertical + 4) @content-padding-large;
@nav-link-padding-small:					@padding-base-vertical @content-padding-base;
@nav-link-padding-mini:						(@padding-base-vertical - 2) @content-padding-small;



//
// FAB menu component
// ------------------------------
//

//** Calculate floating button size
@fab-main-btn-size:                         ((@btn-float-padding + (@icon-font-size / 2)) * 2);

//** Difference between main and inner buttons. Each side
@fab-btn-difference:                        2px;

//** Calculate inner button size
@fab-inner-btn-size:                        ((@btn-float-padding - @fab-btn-difference) * 2) + @icon-font-size;

//** Spacing between menu items
@fab-inner-btn-spacing:                     @line-height-computed;



//
// Modal components
// ------------------------------
//

//** Sizing
@modal-full:                 				94%;
@modal-xs:                    				300px;



//
// Sidebar
// ------------------------------
//

//** Default sidebar width
@sidebar-base-width: 						260px;

//** Mini sidebar width
@sidebar-mini-width:                    	((@content-padding-large * 2) + @icon-font-size);

//** Sidebar colors
@sidebar-light-bg: 							#fff;
@sidebar-dark-bg: 							@color-slate-900;



//
// Main vertical navigation
// ------------------------------
//

//** Main navigation sizing
@navigation-padding-base-vertical: 			12px;

@navigation-padding-large-vertical:			(@navigation-padding-base-vertical + 2); // ~ 14px
@navigation-padding-small-vertical:			(@navigation-padding-base-vertical - 2); // ~ 10px
@navigation-padding-mini-vertical: 			(@navigation-padding-base-vertical - 4); // ~ 8px

@navigation-padding-base-horizontal: 		@content-padding-large;


//** Dark sidebar navigation styles
@navigation-dark-color: 					fade(#fff, 75%);

@navigation-dark-hover-bg: 					fade(#000, 10%);
@navigation-dark-hover-color: 				#fff;

@navigation-dark-active-bg: 				@color-teal-400;
@navigation-dark-active-border: 			@navigation-dark-active-bg;
@navigation-dark-active-color: 				#fff;
@navigation-dark-active-label-bg: 		    @navigation-dark-active-bg;
@navigation-dark-active-label-color: 		@navigation-dark-active-color;


//** Light sidebar navigation styles
@navigation-light-color: 					@text-color;

@navigation-light-hover-bg: 				#f8f8f8;
@navigation-light-hover-color: 				@text-color;

@navigation-light-active-bg: 				#f5f5f5;
@navigation-light-active-border: 			@panel-default-border;
@navigation-light-active-color: 			@text-color;
@navigation-light-active-label-bg: 		    @navigation-light-active-bg;
@navigation-light-active-label-color: 		@text-color;



//
// Custom components
// ------------------------------
//

//** Timeline 
@timeline-icon-size: 						48px;
@timeline-line-color: 						#ccc;
@timeline-line-width: 						2px;
@timeline-icon-border-width: 				4px;


//** Timeline 
@list-feed-circle-radius: 					8px; // must be even
@list-feed-circle-border-width: 			2px;
@list-feed-circle-position: 				(@line-height-computed - (@list-feed-circle-radius + @list-feed-circle-border-width)) / 2;