Fixed mobile dropdown menu colors
[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 // responsive menu colors
36
37 .navbar .nav-collapse > .nav li > a {
38         color: @white;
39         
40         &:hover {
41                 background-color: #2B7CAC;
42         }
43 }
44
45 .btn-navbar:hover {
46     background-color: darken(@white, 20%);
47     background-position: 0 0;
48 }
49
50 // FORMS
51 // -----------------------------------------------------
52
53 // Warning
54 .control-group.warning {
55   .formFieldState(@orange, @orange, @warningBackground);
56 }
57 // Error
58 .control-group.error {
59   .formFieldState(@red, @red, @errorBackground);
60 }
61 // Success
62 .control-group.success {
63   .formFieldState(darken(@green, 10%), darken(@green, 10%), @successBackground);
64 }
65
66 // BUTTONS
67 // -----------------------------------------------------
68
69 .btn {
70   #gradient > .vertical-three-colors(@white, @white, 5%, darken(@white, 0%));
71   @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
72   .box-shadow(@shadow);
73 }
74
75 .btn-warning {
76   .caret {
77     border-top-color: @white;
78     .opacity(75);
79   }
80 }
81
82 // Set the backgrounds
83 // -------------------------
84 .btn-primary {
85   .buttonBackground(lighten(@linkColor, 5%), @linkColor);
86 }
87 // Warning appears are orange
88 .btn-warning {
89   .buttonBackground(lighten(@orange, 5%), @orange);
90 }
91 // Danger and error appear as red
92 .btn-danger {
93   .buttonBackground(lighten(@red, 5%), @red);
94 }
95 // Success appears as green
96 .btn-success {
97   .buttonBackground(lighten(@green, 5%), @green);
98 }
99 // Info appears as a neutral blue
100 .btn-info {
101   .buttonBackground(lighten(@purple, 5%), @purple);
102 }
103
104 // ICONS
105 // -----------------------------------------------------
106
107 // Make icons gray
108 i[class^="icon-"]{
109         opacity: 0.8;
110 }