bootswatch.less 2.69 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Spacelab 3.3.0
Thomas Park's avatar
Thomas Park committed
2
3
4
5
6
7
// Bootswatch
// -----------------------------------------------------

@import url("//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700");

.btn-shadow(@color) {
Thomas Park's avatar
Thomas Park committed
8
9
10
  #gradient > .vertical-three-colors(lighten(@color, 15%), @color, 50%, darken(@color, 4%));
  filter: none;
  border: 1px solid darken(@color, 10%);
Thomas Park's avatar
Thomas Park committed
11
12
13
14
15
16
}

// Navbar =====================================================================

.navbar {

Thomas Park's avatar
Thomas Park committed
17
18
19
20
21
22
  .btn-shadow(@navbar-default-bg);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);

  &-inverse {
    .btn-shadow(@navbar-inverse-bg);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
23
24
25
26
27
28
29
30
31

    .badge {
      background-color: #fff;
      color: @navbar-inverse-bg;
    }
  }

  .badge {
    text-shadow: none;
Thomas Park's avatar
Thomas Park committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  }

  &-nav > li > a,
  &-nav > li > a:hover {
    padding-top: @navbar-padding-vertical + 2px;
    padding-bottom: @navbar-padding-vertical - 2px;
    .transition(color ease-in-out .2s);
  }
  
  &-brand,
  &-brand:hover {
    .transition(color ease-in-out .2s);
  }

  .caret,
  .caret:hover {
    .transition(border-color ease-in-out .2s);
  }

  .dropdown-menu {
    text-shadow: none;
  }
Thomas Park's avatar
Thomas Park committed
54
55
56
57
58
}

// Buttons ====================================================================

.btn {
Thomas Park's avatar
Thomas Park committed
59
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
60

61
62
  &-default {
    .btn-shadow(@btn-default-bg);
Thomas Park's avatar
Thomas Park committed
63

64
65
66
67
    &:hover {
      .btn-shadow(darken(@btn-default-bg, 4%));
    }
  }
Thomas Park's avatar
Thomas Park committed
68

69
70
  &-primary {
    .btn-shadow(@btn-primary-bg);
Thomas Park's avatar
Thomas Park committed
71

72
73
74
75
    &:hover {
      .btn-shadow(darken(@btn-primary-bg, 4%));
    }
  }
Thomas Park's avatar
Thomas Park committed
76

77
78
79
80
81
82
83
84
85
86
  &-success {
    .btn-shadow(@btn-success-bg);

    &:hover {
      .btn-shadow(darken(@btn-success-bg, 4%));
    }
  }

  &-info {
    .btn-shadow(@btn-info-bg);
Thomas Park's avatar
Thomas Park committed
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
    &:hover {
      .btn-shadow(darken(@btn-info-bg, 4%));
    }
  }

  &-warning {
    .btn-shadow(@btn-warning-bg);

    &:hover {
      .btn-shadow(darken(@btn-warning-bg, 4%));
    }
  }

  &-danger {
    .btn-shadow(@btn-danger-bg);

    &:hover {
      .btn-shadow(darken(@btn-danger-bg, 4%));
    }
  }

  &:active,
  &.active {
    background-image: none;
    .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
  }
Thomas Park's avatar
Thomas Park committed
114
115
116
117
118
119
120
121
122
123
124
125
126
127
}

// Typography =================================================================

// Tables =====================================================================

// Forms ======================================================================

// Navs =======================================================================

// Indicators =================================================================

// Progress bars ==============================================================

128
129
130
131
// Containers =================================================================

.panel {

Thomas Park's avatar
Thomas Park committed
132
133
134
135
136
  &-primary {
    .panel-title {
      color: #fff;
    }
  }
137
}