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