static/less/variables.less
author stetrabby <info@trabucchi.de>
Sun, 29 Dec 2013 12:47:32 +0100
changeset 63 46c37d55294e
parent 55 acd0d17b4cb3
child 114 6093dda9fe38
permissions -rwxr-xr-x
defined only one css to reduce the request and implemented custom css via import
     1 //
     2 // Variables
     3 // --------------------------------------------------
     4 
     5 
     6 // Global values
     7 // --------------------------------------------------
     8 
     9 // Pymove3d colors
    10 // -------------------------
    11 @blue:  #125883;
    12 @blue-light: rgba(18,88,131,.6);
    13 @blue-darker: #0E394F;
    14 @yellow: #FDC91A;
    15 @yellow-light: rgba(253,201,26,.6);
    16 
    17 // Grays
    18 // -------------------------
    19 
    20 @gray-darker:            lighten(#000, 13.5%); // #222
    21 @gray-dark:              lighten(#000, 20%);   // #333
    22 @gray:                   lighten(#000, 33.5%); // #555
    23 @gray-light:             lighten(#000, 60%);   // #999
    24 @gray-lighter:           lighten(#000, 93.5%); // #eee
    25 
    26 // Brand colors
    27 // -------------------------
    28 
    29 @brand-primary:         #428bca;
    30 @brand-success:         #5cb85c;
    31 @brand-warning:         #f0ad4e;
    32 @brand-danger:          #d9534f;
    33 @brand-info:            #5bc0de;
    34 
    35 // Scaffolding
    36 // -------------------------
    37 
    38 @body-bg:               #fff;
    39 @text-color:            @gray-dark;
    40 
    41 // Links
    42 // -------------------------
    43 
    44 @link-color:            @brand-primary;
    45 @link-hover-color:      darken(@link-color, 15%);
    46 
    47 // Typography
    48 // -------------------------
    49 
    50 @font-family-sans-serif:  "Helvetica Neue", Helvetica, Arial, sans-serif;
    51 @font-family-serif:       Georgia, "Times New Roman", Times, serif;
    52 @font-family-monospace:   Menlo, Monaco, Consolas, "Courier New", monospace;
    53 @font-family-base:        @font-family-sans-serif;
    54 
    55 @font-size-base:          14px;
    56 @font-size-large:         ceil(@font-size-base * 1.25); // ~18px
    57 @font-size-small:         ceil(@font-size-base * 0.85); // ~12px
    58 
    59 @font-size-h1:            floor(@font-size-base * 2.6); // ~36px
    60 @font-size-h2:            floor(@font-size-base * 2.15); // ~30px
    61 @font-size-h3:            ceil(@font-size-base * 1.7); // ~24px
    62 @font-size-h4:            ceil(@font-size-base * 1.25); // ~18px
    63 @font-size-h5:            @font-size-base;
    64 @font-size-h6:            ceil(@font-size-base * 0.85); // ~12px
    65 
    66 @line-height-base:        1.428571429; // 20/14
    67 @line-height-computed:    floor(@font-size-base * @line-height-base); // ~20px
    68 
    69 @headings-font-family:    @font-family-base;
    70 @headings-font-weight:    500;
    71 @headings-line-height:    1.1;
    72 @headings-color:          inherit;
    73 
    74 
    75 // Iconography
    76 // -------------------------
    77 
    78 @icon-font-path:          "../fonts/";
    79 @icon-font-name:          "glyphicons-halflings-regular";
    80 
    81 
    82 // Components
    83 // -------------------------
    84 // Based on 14px font-size and 1.428 line-height (~20px to start)
    85 
    86 @padding-base-vertical:          6px;
    87 @padding-base-horizontal:        12px;
    88 
    89 @padding-large-vertical:         10px;
    90 @padding-large-horizontal:       16px;
    91 
    92 @padding-small-vertical:         5px;
    93 @padding-small-horizontal:       10px;
    94 
    95 @padding-xs-vertical:            1px;
    96 @padding-xs-horizontal:          5px;
    97 
    98 @line-height-large:              1.33;
    99 @line-height-small:              1.5;
   100 
   101 @border-radius-base:             4px;
   102 @border-radius-large:            6px;
   103 @border-radius-small:            3px;
   104 
   105 @component-active-color:         #fff;
   106 @component-active-bg:            @brand-primary;
   107 
   108 @caret-width-base:               4px;
   109 @caret-width-large:              5px;
   110 
   111 // Tables
   112 // -------------------------
   113 
   114 @table-cell-padding:                 8px;
   115 @table-condensed-cell-padding:       5px;
   116 
   117 @table-bg:                           transparent; // overall background-color
   118 @table-bg-accent:                    #f9f9f9; // for striping
   119 @table-bg-hover:                     #f5f5f5;
   120 @table-bg-active:                    @table-bg-hover;
   121 
   122 @table-border-color:                 #ddd; // table and cell border
   123 
   124 
   125 // Buttons
   126 // -------------------------
   127 
   128 @btn-font-weight:                normal;
   129 
   130 @btn-default-color:              #333;
   131 @btn-default-bg:                 #fff;
   132 @btn-default-border:             #ccc;
   133 
   134 @btn-primary-color:              #fff;
   135 @btn-primary-bg:                 @brand-primary;
   136 @btn-primary-border:             darken(@btn-primary-bg, 5%);
   137 
   138 @btn-success-color:              #fff;
   139 @btn-success-bg:                 @brand-success;
   140 @btn-success-border:             darken(@btn-success-bg, 5%);
   141 
   142 @btn-warning-color:              #fff;
   143 @btn-warning-bg:                 @brand-warning;
   144 @btn-warning-border:             darken(@btn-warning-bg, 5%);
   145 
   146 @btn-danger-color:               #fff;
   147 @btn-danger-bg:                  @brand-danger;
   148 @btn-danger-border:              darken(@btn-danger-bg, 5%);
   149 
   150 @btn-info-color:                 #fff;
   151 @btn-info-bg:                    @brand-info;
   152 @btn-info-border:                darken(@btn-info-bg, 5%);
   153 
   154 @btn-link-disabled-color:        @gray-light;
   155 
   156 
   157 // Forms
   158 // -------------------------
   159 
   160 @input-bg:                       #fff;
   161 @input-bg-disabled:              @gray-lighter;
   162 
   163 @input-color:                    @gray;
   164 @input-border:                   #ccc;
   165 @input-border-radius:            @border-radius-base;
   166 @input-border-focus:             #66afe9;
   167 
   168 @input-color-placeholder:        @gray-light;
   169 
   170 @input-height-base:              (@line-height-computed + (@padding-base-vertical * 2) + 2);
   171 @input-height-large:             (ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2);
   172 @input-height-small:             (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
   173 
   174 @legend-color:                   @gray-dark;
   175 @legend-border-color:            #e5e5e5;
   176 
   177 @input-group-addon-bg:           @gray-lighter;
   178 @input-group-addon-border-color: @input-border;
   179 
   180 
   181 // Dropdowns
   182 // -------------------------
   183 
   184 @dropdown-bg:                    #fff;
   185 @dropdown-border:                rgba(0,0,0,.15);
   186 @dropdown-fallback-border:       #ccc;
   187 @dropdown-divider-bg:            #e5e5e5;
   188 
   189 @dropdown-link-color:            @gray-dark;
   190 @dropdown-link-hover-color:      darken(@gray-dark, 5%);
   191 @dropdown-link-hover-bg:         #f5f5f5;
   192 
   193 @dropdown-link-active-color:     @component-active-color;
   194 @dropdown-link-active-bg:        @component-active-bg;
   195 
   196 @dropdown-link-disabled-color:   @gray-light;
   197 
   198 @dropdown-header-color:          @gray-light;
   199 
   200 
   201 // COMPONENT VARIABLES
   202 // --------------------------------------------------
   203 
   204 
   205 // Z-index master list
   206 // -------------------------
   207 // Used for a bird's eye view of components dependent on the z-axis
   208 // Try to avoid customizing these :)
   209 
   210 @zindex-navbar:            1000;
   211 @zindex-dropdown:          1000;
   212 @zindex-popover:           1010;
   213 @zindex-tooltip:           1030;
   214 @zindex-navbar-fixed:      1030;
   215 @zindex-modal-background:  1040;
   216 @zindex-modal:             1050;
   217 
   218 // Media queries breakpoints
   219 // --------------------------------------------------
   220 
   221 // Extra small screen / phone
   222 // Note: Deprecated @screen-xs and @screen-phone as of v3.0.1
   223 @screen-xs:                  480px;
   224 @screen-xs-min:              @screen-xs;
   225 @screen-phone:               @screen-xs-min;
   226 
   227 // Small screen / tablet
   228 // Note: Deprecated @screen-sm and @screen-tablet as of v3.0.1
   229 @screen-sm:                  768px;
   230 @screen-sm-min:              @screen-sm;
   231 @screen-tablet:              @screen-sm-min;
   232 
   233 // Medium screen / desktop
   234 // Note: Deprecated @screen-md and @screen-desktop as of v3.0.1
   235 @screen-md:                  992px;
   236 @screen-md-min:              @screen-md;
   237 @screen-desktop:             @screen-md-min;
   238 
   239 // Large screen / wide desktop
   240 // Note: Deprecated @screen-lg and @screen-lg-desktop as of v3.0.1
   241 @screen-lg:                  1200px;
   242 @screen-lg-min:              @screen-lg;
   243 @screen-lg-desktop:          @screen-lg-min;
   244 
   245 // So media queries don't overlap when required, provide a maximum
   246 @screen-xs-max:              (@screen-sm-min - 1);
   247 @screen-sm-max:              (@screen-md-min - 1);
   248 @screen-md-max:              (@screen-lg-min - 1);
   249 
   250 
   251 // Grid system
   252 // --------------------------------------------------
   253 
   254 // Number of columns in the grid system
   255 @grid-columns:              12;
   256 // Padding, to be divided by two and applied to the left and right of all columns
   257 @grid-gutter-width:         30px;
   258 
   259 // Navbar collapse
   260 
   261 // Point at which the navbar becomes uncollapsed
   262 @grid-float-breakpoint:     @screen-sm-min;
   263 // Point at which the navbar begins collapsing
   264 @grid-float-breakpoint-max: (@grid-float-breakpoint - 1);
   265 
   266 
   267 // Navbar
   268 // -------------------------
   269 
   270 // Basics of a navbar
   271 @navbar-height:                    50px;
   272 @navbar-margin-bottom:             @line-height-computed;
   273 @navbar-border-radius:             @border-radius-base;
   274 @navbar-padding-horizontal:        floor(@grid-gutter-width / 2);
   275 @navbar-padding-vertical:          ((@navbar-height - @line-height-computed) / 2);
   276 
   277 @navbar-default-color:             #777;
   278 @navbar-default-bg:                transparent;
   279 @navbar-default-border:            transparent;
   280 
   281 // Navbar links
   282 @navbar-default-link-color:                #777;
   283 @navbar-default-link-hover-color:          #333;
   284 @navbar-default-link-hover-bg:             transparent;
   285 @navbar-default-link-active-color:         #555;
   286 @navbar-default-link-active-bg:            transparent;
   287 @navbar-default-link-disabled-color:       #ccc;
   288 @navbar-default-link-disabled-bg:          transparent;
   289 
   290 // Navbar brand label
   291 @navbar-default-brand-color:               @navbar-default-link-color;
   292 @navbar-default-brand-hover-color:         darken(@navbar-default-brand-color, 10%);
   293 @navbar-default-brand-hover-bg:            transparent;
   294 
   295 // Navbar toggle
   296 @navbar-default-toggle-hover-bg:           #ddd;
   297 @navbar-default-toggle-icon-bar-bg:        #ccc;
   298 @navbar-default-toggle-border-color:       #ddd;
   299 
   300 
   301 // Inverted navbar
   302 //
   303 // Reset inverted navbar basics
   304 @navbar-inverse-color:                      @gray-light;
   305 @navbar-inverse-bg:                         #222;
   306 @navbar-inverse-border:                     darken(@navbar-inverse-bg, 10%);
   307 
   308 // Inverted navbar links
   309 @navbar-inverse-link-color:                 @gray-light;
   310 @navbar-inverse-link-hover-color:           #fff;
   311 @navbar-inverse-link-hover-bg:              transparent;
   312 @navbar-inverse-link-active-color:          @navbar-inverse-link-hover-color;
   313 @navbar-inverse-link-active-bg:             darken(@navbar-inverse-bg, 10%);
   314 @navbar-inverse-link-disabled-color:        #444;
   315 @navbar-inverse-link-disabled-bg:           transparent;
   316 
   317 // Inverted navbar brand label
   318 @navbar-inverse-brand-color:                @navbar-inverse-link-color;
   319 @navbar-inverse-brand-hover-color:          #fff;
   320 @navbar-inverse-brand-hover-bg:             transparent;
   321 
   322 // Inverted navbar toggle
   323 @navbar-inverse-toggle-hover-bg:            #333;
   324 @navbar-inverse-toggle-icon-bar-bg:         #fff;
   325 @navbar-inverse-toggle-border-color:        #333;
   326 
   327 
   328 // Navs
   329 // -------------------------
   330 
   331 @nav-link-padding:                          10px 15px;
   332 @nav-link-hover-bg:                         @gray-lighter;
   333 
   334 @nav-disabled-link-color:                   @gray-light;
   335 @nav-disabled-link-hover-color:             @gray-light;
   336 
   337 @nav-open-link-hover-color:                 #fff;
   338 
   339 // Tabs
   340 @nav-tabs-border-color:                     #ddd;
   341 
   342 @nav-tabs-link-hover-border-color:          @gray-lighter;
   343 
   344 @nav-tabs-active-link-hover-bg:             @body-bg;
   345 @nav-tabs-active-link-hover-color:          @gray;
   346 @nav-tabs-active-link-hover-border-color:   #ddd;
   347 
   348 @nav-tabs-justified-link-border-color:            #ddd;
   349 @nav-tabs-justified-active-link-border-color:     @body-bg;
   350 
   351 // Pills
   352 @nav-pills-border-radius:                   @border-radius-base;
   353 @nav-pills-active-link-hover-bg:            @component-active-bg;
   354 @nav-pills-active-link-hover-color:         @component-active-color;
   355 
   356 
   357 // Pagination
   358 // -------------------------
   359 
   360 @pagination-bg:                        #fff;
   361 @pagination-border:                    #ddd;
   362 
   363 @pagination-hover-bg:                  @gray-lighter;
   364 
   365 @pagination-active-bg:                 @brand-primary;
   366 @pagination-active-color:              #fff;
   367 
   368 @pagination-disabled-color:            @gray-light;
   369 
   370 
   371 // Pager
   372 // -------------------------
   373 
   374 @pager-border-radius:                  15px;
   375 @pager-disabled-color:                 @gray-light;
   376 
   377 
   378 // Jumbotron
   379 // -------------------------
   380 
   381 @jumbotron-padding:              30px;
   382 @jumbotron-color:                inherit;
   383 @jumbotron-bg:                   @gray-lighter;
   384 @jumbotron-heading-color:        inherit;
   385 @jumbotron-font-size:            ceil(@font-size-base * 1.5);
   386 
   387 
   388 // Form states and alerts
   389 // -------------------------
   390 
   391 @state-success-text:             #3c763d;
   392 @state-success-bg:               #dff0d8;
   393 @state-success-border:           darken(spin(@state-success-bg, -10), 5%);
   394 
   395 @state-info-text:                #31708f;
   396 @state-info-bg:                  #d9edf7;
   397 @state-info-border:              darken(spin(@state-info-bg, -10), 7%);
   398 
   399 @state-warning-text:             #8a6d3b;
   400 @state-warning-bg:               #fcf8e3;
   401 @state-warning-border:           darken(spin(@state-warning-bg, -10), 5%);
   402 
   403 @state-danger-text:              #a94442;
   404 @state-danger-bg:                #f2dede;
   405 @state-danger-border:            darken(spin(@state-danger-bg, -10), 5%);
   406 
   407 
   408 // Tooltips
   409 // -------------------------
   410 @tooltip-max-width:           200px;
   411 @tooltip-color:               #fff;
   412 @tooltip-bg:                  #000;
   413 
   414 @tooltip-arrow-width:         5px;
   415 @tooltip-arrow-color:         @tooltip-bg;
   416 
   417 
   418 // Popovers
   419 // -------------------------
   420 @popover-bg:                          #fff;
   421 @popover-max-width:                   276px;
   422 @popover-border-color:                rgba(0,0,0,.2);
   423 @popover-fallback-border-color:       #ccc;
   424 
   425 @popover-title-bg:                    darken(@popover-bg, 3%);
   426 
   427 @popover-arrow-width:                 10px;
   428 @popover-arrow-color:                 #fff;
   429 
   430 @popover-arrow-outer-width:           (@popover-arrow-width + 1);
   431 @popover-arrow-outer-color:           rgba(0,0,0,.25);
   432 @popover-arrow-outer-fallback-color:  #999;
   433 
   434 
   435 // Labels
   436 // -------------------------
   437 
   438 @label-default-bg:            @gray-light;
   439 @label-primary-bg:            @brand-primary;
   440 @label-success-bg:            @brand-success;
   441 @label-info-bg:               @brand-info;
   442 @label-warning-bg:            @brand-warning;
   443 @label-danger-bg:             @brand-danger;
   444 
   445 @label-color:                 #fff;
   446 @label-link-hover-color:      #fff;
   447 
   448 
   449 // Modals
   450 // -------------------------
   451 @modal-inner-padding:         20px;
   452 
   453 @modal-title-padding:         15px;
   454 @modal-title-line-height:     @line-height-base;
   455 
   456 @modal-content-bg:                             #fff;
   457 @modal-content-border-color:                   rgba(0,0,0,.2);
   458 @modal-content-fallback-border-color:          #999;
   459 
   460 @modal-backdrop-bg:           #000;
   461 @modal-header-border-color:   #e5e5e5;
   462 @modal-footer-border-color:   @modal-header-border-color;
   463 
   464 
   465 // Alerts
   466 // -------------------------
   467 @alert-padding:               15px;
   468 @alert-border-radius:         @border-radius-base;
   469 @alert-link-font-weight:      bold;
   470 
   471 @alert-success-bg:            @state-success-bg;
   472 @alert-success-text:          @state-success-text;
   473 @alert-success-border:        @state-success-border;
   474 
   475 @alert-info-bg:               @state-info-bg;
   476 @alert-info-text:             @state-info-text;
   477 @alert-info-border:           @state-info-border;
   478 
   479 @alert-warning-bg:            @state-warning-bg;
   480 @alert-warning-text:          @state-warning-text;
   481 @alert-warning-border:        @state-warning-border;
   482 
   483 @alert-danger-bg:             @state-danger-bg;
   484 @alert-danger-text:           @state-danger-text;
   485 @alert-danger-border:         @state-danger-border;
   486 
   487 
   488 // Progress bars
   489 // -------------------------
   490 @progress-bg:                 #f5f5f5;
   491 @progress-bar-color:          #fff;
   492 
   493 @progress-bar-bg:             @brand-primary;
   494 @progress-bar-success-bg:     @brand-success;
   495 @progress-bar-warning-bg:     @brand-warning;
   496 @progress-bar-danger-bg:      @brand-danger;
   497 @progress-bar-info-bg:        @brand-info;
   498 
   499 
   500 // List group
   501 // -------------------------
   502 @list-group-bg:               #fff;
   503 @list-group-border:           #ddd;
   504 @list-group-border-radius:    @border-radius-base;
   505 
   506 @list-group-hover-bg:         #f5f5f5;
   507 @list-group-active-color:     @component-active-color;
   508 @list-group-active-bg:        @component-active-bg;
   509 @list-group-active-border:    @list-group-active-bg;
   510 
   511 @list-group-link-color:          #555;
   512 @list-group-link-heading-color:  #333;
   513 
   514 
   515 // Panels
   516 // -------------------------
   517 @panel-bg:                    #fff;
   518 @panel-inner-border:          #ddd;
   519 @panel-border-radius:         @border-radius-base;
   520 @panel-footer-bg:             #f5f5f5;
   521 
   522 @panel-default-text:          @gray-dark;
   523 @panel-default-border:        #ddd;
   524 @panel-default-heading-bg:    #f5f5f5;
   525 
   526 @panel-primary-text:          #fff;
   527 @panel-primary-border:        @brand-primary;
   528 @panel-primary-heading-bg:    @brand-primary;
   529 
   530 @panel-success-text:          @state-success-text;
   531 @panel-success-border:        @state-success-border;
   532 @panel-success-heading-bg:    @state-success-bg;
   533 
   534 @panel-warning-text:          @state-warning-text;
   535 @panel-warning-border:        @state-warning-border;
   536 @panel-warning-heading-bg:    @state-warning-bg;
   537 
   538 @panel-danger-text:           @state-danger-text;
   539 @panel-danger-border:         @state-danger-border;
   540 @panel-danger-heading-bg:     @state-danger-bg;
   541 
   542 @panel-info-text:             @state-info-text;
   543 @panel-info-border:           @state-info-border;
   544 @panel-info-heading-bg:       @state-info-bg;
   545 
   546 
   547 // Thumbnails
   548 // -------------------------
   549 @thumbnail-padding:           4px;
   550 @thumbnail-bg:                @body-bg;
   551 @thumbnail-border:            #ddd;
   552 @thumbnail-border-radius:     @border-radius-base;
   553 
   554 @thumbnail-caption-color:     @text-color;
   555 @thumbnail-caption-padding:   9px;
   556 
   557 
   558 // Wells
   559 // -------------------------
   560 @well-bg:                     #f5f5f5;
   561 
   562 
   563 // Badges
   564 // -------------------------
   565 @badge-color:                 #fff;
   566 @badge-link-hover-color:      #fff;
   567 @badge-bg:                    @gray-light;
   568 
   569 @badge-active-color:          @link-color;
   570 @badge-active-bg:             #fff;
   571 
   572 @badge-font-weight:           bold;
   573 @badge-line-height:           1;
   574 @badge-border-radius:         10px;
   575 
   576 
   577 // Breadcrumbs
   578 // -------------------------
   579 @breadcrumb-bg:               #f5f5f5;
   580 @breadcrumb-color:            #ccc;
   581 @breadcrumb-active-color:     @gray-light;
   582 @breadcrumb-separator:        "/";
   583 
   584 
   585 // Carousel
   586 // ------------------------
   587 
   588 @carousel-text-shadow:                        0 1px 2px rgba(0,0,0,.6);
   589 
   590 @carousel-control-color:                      #fff;
   591 @carousel-control-width:                      15%;
   592 @carousel-control-opacity:                    .5;
   593 @carousel-control-font-size:                  20px;
   594 
   595 @carousel-indicator-active-bg:                #fff;
   596 @carousel-indicator-border-color:             #fff;
   597 
   598 @carousel-caption-color:                      #fff;
   599 
   600 
   601 // Close
   602 // ------------------------
   603 @close-font-weight:           bold;
   604 @close-color:                 #000;
   605 @close-text-shadow:           0 1px 0 #fff;
   606 
   607 
   608 // Code
   609 // ------------------------
   610 @code-color:                  #c7254e;
   611 @code-bg:                     #f9f2f4;
   612 
   613 @pre-bg:                      #f5f5f5;
   614 @pre-color:                   @gray-dark;
   615 @pre-border-color:            #ccc;
   616 @pre-scrollable-max-height:   340px;
   617 
   618 // Type
   619 // ------------------------
   620 @text-muted:                  @gray-light;
   621 @abbr-border-color:           @gray-light;
   622 @headings-small-color:        @gray-light;
   623 @blockquote-small-color:      @gray-light;
   624 @blockquote-border-color:     @gray-lighter;
   625 @page-header-border-color:    @gray-lighter;
   626 
   627 // Miscellaneous
   628 // -------------------------
   629 
   630 // Hr border color
   631 @hr-border:                   @gray-lighter;
   632 
   633 // Horizontal forms & lists
   634 @component-offset-horizontal: 180px;
   635 
   636 
   637 // Container sizes
   638 // --------------------------------------------------
   639 
   640 // Small screen / tablet
   641 @container-tablet:             ((720px + @grid-gutter-width));
   642 @container-sm:                 @container-tablet;
   643 
   644 // Medium screen / desktop
   645 @container-desktop:            ((940px + @grid-gutter-width));
   646 @container-md:                 @container-desktop;
   647 
   648 // Large screen / wide desktop
   649 @container-large-desktop:      ((1140px + @grid-gutter-width));
   650 @container-lg:                 @container-large-desktop;
Impressum Datenschutzerklärung