Lightened warning button caret
[bootswatch] / cerulean / bootswatch.less
1 // Bootswatch.less
2 // Swatch: Cerulean
3 // -----------------------------------------------------
4
5 // TYPOGRAPHY
6 // -----------------------------------------------------
7
8 @import url(http://fonts.googleapis.com/css?family=Telex);
9
10 h1,h2,h3,h4,h5,h6, .navbar, .subnav {
11         font-family: 'Telex', sans-serif;
12 }
13
14 h1,h2,h3,h4,h5,h6 {
15         color: #317EAC
16 }
17
18 // NAVBAR
19 // -----------------------------------------------------
20
21 .navbar-inner {
22   #gradient > .vertical-three-colors(@navbarBackground, @navbarBackground, 90%, @navbarBackgroundHighlight);
23 }
24
25 .navbar .nav .active > a,
26 .navbar .nav .active > a:hover {
27   background-color: @navbarBackground;
28   background-color: rgba(0,0,0,.2);
29 }
30
31 .navbar .search-query {
32         border: 1px solid darken(@linkColor, 10%);
33 }
34
35 // FORMS
36 // -----------------------------------------------------
37
38 // Warning
39 .control-group.warning {
40   .formFieldState(@orange, @orange, @warningBackground);
41 }
42 // Error
43 .control-group.error {
44   .formFieldState(@red, @red, @errorBackground);
45 }
46 // Success
47 .control-group.success {
48   .formFieldState(darken(@green, 10%), darken(@green, 10%), @successBackground);
49 }
50
51 // BUTTONS
52 // -----------------------------------------------------
53
54 .btn {
55   #gradient > .vertical-three-colors(@white, @white, 5%, darken(@white, 0%));
56   @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
57   .box-shadow(@shadow);
58 }
59
60 .btn-warning {
61   .caret {
62     border-top-color: @white;
63     .opacity(75);
64   }
65 }
66
67 // Set the backgrounds
68 // -------------------------
69 .btn-primary {
70   .buttonBackground(lighten(@linkColor, 5%), @linkColor);
71 }
72 // Warning appears are orange
73 .btn-warning {
74   .buttonBackground(lighten(@orange, 5%), @orange);
75 }
76 // Danger and error appear as red
77 .btn-danger {
78   .buttonBackground(lighten(@red, 5%), @red);
79 }
80 // Success appears as green
81 .btn-success {
82   .buttonBackground(lighten(@green, 5%), @green);
83 }
84 // Info appears as a neutral blue
85 .btn-info {
86   .buttonBackground(lighten(@purple, 5%), @purple);
87 }
88
89 // ICONS
90 // -----------------------------------------------------
91
92 // Make icons gray
93 i[class^="icon-"]{
94         opacity: 0.8;
95 }