bootstrap-source/bootstrap-3.0.3/less Kopie/theme.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:49:16 +0100
changeset 54 0ded9d7748b7
permissions -rwxr-xr-x
initial less based on the pymove3d.css
info@54
     1
info@54
     2
//
info@54
     3
// Load core variables and mixins
info@54
     4
// --------------------------------------------------
info@54
     5
info@54
     6
@import "variables.less";
info@54
     7
@import "mixins.less";
info@54
     8
info@54
     9
info@54
    10
info@54
    11
//
info@54
    12
// Buttons
info@54
    13
// --------------------------------------------------
info@54
    14
info@54
    15
// Common styles
info@54
    16
.btn-default,
info@54
    17
.btn-primary,
info@54
    18
.btn-success,
info@54
    19
.btn-info,
info@54
    20
.btn-warning,
info@54
    21
.btn-danger {
info@54
    22
  text-shadow: 0 -1px 0 rgba(0,0,0,.2);
info@54
    23
  @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 1px rgba(0,0,0,.075);
info@54
    24
  .box-shadow(@shadow);
info@54
    25
info@54
    26
  // Reset the shadow
info@54
    27
  &:active,
info@54
    28
  &.active {
info@54
    29
    .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
info@54
    30
  }
info@54
    31
}
info@54
    32
info@54
    33
// Mixin for generating new styles
info@54
    34
.btn-styles(@btn-color: #555) {
info@54
    35
  #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
info@54
    36
  .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
info@54
    37
  background-repeat: repeat-x;
info@54
    38
  border-color: darken(@btn-color, 14%);
info@54
    39
info@54
    40
  &:hover,
info@54
    41
  &:focus  {
info@54
    42
    background-color: darken(@btn-color, 12%);
info@54
    43
    background-position: 0 -15px;
info@54
    44
  }
info@54
    45
info@54
    46
  &:active,
info@54
    47
  &.active {
info@54
    48
    background-color: darken(@btn-color, 12%);
info@54
    49
    border-color: darken(@btn-color, 14%);
info@54
    50
  }
info@54
    51
}
info@54
    52
info@54
    53
// Common styles
info@54
    54
.btn {
info@54
    55
  // Remove the gradient for the pressed/active state
info@54
    56
  &:active,
info@54
    57
  &.active {
info@54
    58
    background-image: none;
info@54
    59
  }
info@54
    60
}
info@54
    61
info@54
    62
// Apply the mixin to the buttons
info@54
    63
.btn-default { .btn-styles(@btn-default-bg); text-shadow: 0 1px 0 #fff; border-color: #ccc; }
info@54
    64
.btn-primary { .btn-styles(@btn-primary-bg); }
info@54
    65
.btn-success { .btn-styles(@btn-success-bg); }
info@54
    66
.btn-warning { .btn-styles(@btn-warning-bg); }
info@54
    67
.btn-danger  { .btn-styles(@btn-danger-bg); }
info@54
    68
.btn-info    { .btn-styles(@btn-info-bg); }
info@54
    69
info@54
    70
info@54
    71
info@54
    72
//
info@54
    73
// Images
info@54
    74
// --------------------------------------------------
info@54
    75
info@54
    76
.thumbnail,
info@54
    77
.img-thumbnail {
info@54
    78
  .box-shadow(0 1px 2px rgba(0,0,0,.075));
info@54
    79
}
info@54
    80
info@54
    81
info@54
    82
info@54
    83
//
info@54
    84
// Dropdowns
info@54
    85
// --------------------------------------------------
info@54
    86
info@54
    87
.dropdown-menu > li > a:hover,
info@54
    88
.dropdown-menu > li > a:focus {
info@54
    89
  #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%));
info@54
    90
  background-color: darken(@dropdown-link-hover-bg, 5%);
info@54
    91
}
info@54
    92
.dropdown-menu > .active > a,
info@54
    93
.dropdown-menu > .active > a:hover,
info@54
    94
.dropdown-menu > .active > a:focus {
info@54
    95
  #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
info@54
    96
  background-color: darken(@dropdown-link-active-bg, 5%);
info@54
    97
}
info@54
    98
info@54
    99
info@54
   100
info@54
   101
//
info@54
   102
// Navbar
info@54
   103
// --------------------------------------------------
info@54
   104
info@54
   105
// Default navbar
info@54
   106
.navbar-default {
info@54
   107
  #gradient > .vertical(@start-color: lighten(@navbar-default-bg, 10%); @end-color: @navbar-default-bg);
info@54
   108
  .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
info@54
   109
  border-radius: @navbar-border-radius;
info@54
   110
  @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
info@54
   111
  .box-shadow(@shadow);
info@54
   112
info@54
   113
  .navbar-nav > .active > a {
info@54
   114
    #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
info@54
   115
    .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
info@54
   116
  }
info@54
   117
}
info@54
   118
.navbar-brand,
info@54
   119
.navbar-nav > li > a {
info@54
   120
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
info@54
   121
}
info@54
   122
info@54
   123
// Inverted navbar
info@54
   124
.navbar-inverse {
info@54
   125
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
info@54
   126
  .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
info@54
   127
info@54
   128
  .navbar-nav > .active > a {
info@54
   129
    #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
info@54
   130
    .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
info@54
   131
  }
info@54
   132
info@54
   133
  .navbar-brand,
info@54
   134
  .navbar-nav > li > a {
info@54
   135
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
info@54
   136
  }
info@54
   137
}
info@54
   138
info@54
   139
// Undo rounded corners in static and fixed navbars
info@54
   140
.navbar-static-top,
info@54
   141
.navbar-fixed-top,
info@54
   142
.navbar-fixed-bottom {
info@54
   143
  border-radius: 0;
info@54
   144
}
info@54
   145
info@54
   146
info@54
   147
info@54
   148
//
info@54
   149
// Alerts
info@54
   150
// --------------------------------------------------
info@54
   151
info@54
   152
// Common styles
info@54
   153
.alert {
info@54
   154
  text-shadow: 0 1px 0 rgba(255,255,255,.2);
info@54
   155
  @shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.05);
info@54
   156
  .box-shadow(@shadow);
info@54
   157
}
info@54
   158
info@54
   159
// Mixin for generating new styles
info@54
   160
.alert-styles(@color) {
info@54
   161
  #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 7.5%));
info@54
   162
  border-color: darken(@color, 15%);
info@54
   163
}
info@54
   164
info@54
   165
// Apply the mixin to the alerts
info@54
   166
.alert-success    { .alert-styles(@alert-success-bg); }
info@54
   167
.alert-info       { .alert-styles(@alert-info-bg); }
info@54
   168
.alert-warning    { .alert-styles(@alert-warning-bg); }
info@54
   169
.alert-danger     { .alert-styles(@alert-danger-bg); }
info@54
   170
info@54
   171
info@54
   172
info@54
   173
//
info@54
   174
// Progress bars
info@54
   175
// --------------------------------------------------
info@54
   176
info@54
   177
// Give the progress background some depth
info@54
   178
.progress {
info@54
   179
  #gradient > .vertical(@start-color: darken(@progress-bg, 4%); @end-color: @progress-bg)
info@54
   180
}
info@54
   181
info@54
   182
// Mixin for generating new styles
info@54
   183
.progress-bar-styles(@color) {
info@54
   184
  #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 10%));
info@54
   185
}
info@54
   186
info@54
   187
// Apply the mixin to the progress bars
info@54
   188
.progress-bar            { .progress-bar-styles(@progress-bar-bg); }
info@54
   189
.progress-bar-success    { .progress-bar-styles(@progress-bar-success-bg); }
info@54
   190
.progress-bar-info       { .progress-bar-styles(@progress-bar-info-bg); }
info@54
   191
.progress-bar-warning    { .progress-bar-styles(@progress-bar-warning-bg); }
info@54
   192
.progress-bar-danger     { .progress-bar-styles(@progress-bar-danger-bg); }
info@54
   193
info@54
   194
info@54
   195
info@54
   196
//
info@54
   197
// List groups
info@54
   198
// --------------------------------------------------
info@54
   199
info@54
   200
.list-group {
info@54
   201
  border-radius: @border-radius-base;
info@54
   202
  .box-shadow(0 1px 2px rgba(0,0,0,.075));
info@54
   203
}
info@54
   204
.list-group-item.active,
info@54
   205
.list-group-item.active:hover,
info@54
   206
.list-group-item.active:focus {
info@54
   207
  text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
info@54
   208
  #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
info@54
   209
  border-color: darken(@list-group-active-border, 7.5%);
info@54
   210
}
info@54
   211
info@54
   212
info@54
   213
info@54
   214
//
info@54
   215
// Panels
info@54
   216
// --------------------------------------------------
info@54
   217
info@54
   218
// Common styles
info@54
   219
.panel {
info@54
   220
  .box-shadow(0 1px 2px rgba(0,0,0,.05));
info@54
   221
}
info@54
   222
info@54
   223
// Mixin for generating new styles
info@54
   224
.panel-heading-styles(@color) {
info@54
   225
  #gradient > .vertical(@start-color: @color; @end-color: darken(@color, 5%));
info@54
   226
}
info@54
   227
info@54
   228
// Apply the mixin to the panel headings only
info@54
   229
.panel-default > .panel-heading   { .panel-heading-styles(@panel-default-heading-bg); }
info@54
   230
.panel-primary > .panel-heading   { .panel-heading-styles(@panel-primary-heading-bg); }
info@54
   231
.panel-success > .panel-heading   { .panel-heading-styles(@panel-success-heading-bg); }
info@54
   232
.panel-info > .panel-heading      { .panel-heading-styles(@panel-info-heading-bg); }
info@54
   233
.panel-warning > .panel-heading   { .panel-heading-styles(@panel-warning-heading-bg); }
info@54
   234
.panel-danger > .panel-heading    { .panel-heading-styles(@panel-danger-heading-bg); }
info@54
   235
info@54
   236
info@54
   237
info@54
   238
//
info@54
   239
// Wells
info@54
   240
// --------------------------------------------------
info@54
   241
info@54
   242
.well {
info@54
   243
  #gradient > .vertical(@start-color: darken(@well-bg, 5%); @end-color: @well-bg);
info@54
   244
  border-color: darken(@well-bg, 10%);
info@54
   245
  @shadow: inset 0 1px 3px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.1);
info@54
   246
  .box-shadow(@shadow);
info@54
   247
}
Impressum Datenschutzerklärung