bandshell 0.0.21 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bandshell/application/app.rb +10 -10
- data/lib/bandshell/application/public/images/elements/logomark.png +0 -0
- data/lib/bandshell/application/public/images/layout/pagebg.gif +0 -0
- data/lib/bandshell/application/public/images/layout/pagebg@2x.gif +0 -0
- data/lib/bandshell/application/public/{authenticate.js → javascripts/authenticate.js} +0 -0
- data/lib/bandshell/application/public/{network.js → javascripts/network.js} +2 -2
- data/lib/bandshell/application/public/{problem.js → javascripts/problem.js} +0 -0
- data/lib/bandshell/application/public/stylesheets/README +3 -0
- data/lib/bandshell/application/public/stylesheets/concerto-styles.css +5387 -0
- data/lib/bandshell/application/public/stylesheets/sass/common/concertocons.scss +122 -0
- data/lib/bandshell/application/public/stylesheets/sass/common/font-awesome.scss +1273 -0
- data/lib/bandshell/application/public/stylesheets/sass/common/mixins.scss +284 -0
- data/lib/bandshell/application/public/stylesheets/sass/common/reset.scss +125 -0
- data/lib/bandshell/application/public/stylesheets/sass/common/variables.scss +139 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/alerts-badges.scss +145 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/bootstrap-modals.scss +115 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/button-groups.scss +129 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/buttons.scss +236 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/datepicker.scss +337 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/display-blocks.scss +194 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/forms.scss +486 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/jquery.qtip2.scss +259 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.css +8 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/jquery.timepicker.scss +8 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/lists-grid-stacked.scss +265 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/navs.scss +465 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/pagination.scss +64 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/scaffolding.scss +75 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/screenmodel.scss +66 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/sliders.scss +98 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/tables.scss +243 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/tiles.scss +169 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/topmenu.scss +218 -0
- data/lib/bandshell/application/public/stylesheets/sass/components/type.scss +259 -0
- data/lib/bandshell/application/public/stylesheets/sass/index-manifest.scss +32 -0
- data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-1200px-min.scss +31 -0
- data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-767px-max.scss +178 -0
- data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-768px-979px.scss +21 -0
- data/lib/bandshell/application/public/stylesheets/sass/responsive/responsive-utilities.scss +41 -0
- data/lib/bandshell/application/public/stylesheets/sass/views/setup.scss +5 -0
- data/lib/bandshell/application/public/stylesheets/sass/views/submissions.scss +36 -0
- data/lib/bandshell/application/public/stylesheets/sass/views/users.scss +15 -0
- data/lib/bandshell/application/views/authenticate.erb +15 -0
- data/lib/bandshell/application/views/main.erb +55 -0
- data/lib/bandshell/application/views/main.haml +2 -1
- data/lib/bandshell/application/views/netsettings.erb +147 -0
- data/lib/bandshell/application/views/netsettings.haml +1 -1
- data/lib/bandshell/application/views/password.erb +23 -0
- data/lib/bandshell/application/views/player_status.erb +16 -0
- data/lib/bandshell/application/views/problem.erb +20 -0
- data/lib/bandshell/application/views/setup.erb +58 -0
- metadata +52 -8
- data/lib/bandshell/application/public/stylesheet.css +0 -3
@@ -0,0 +1,145 @@
|
|
1
|
+
// alerts-badges.scss.erb
|
2
|
+
|
3
|
+
// ALERT STYLES
|
4
|
+
// ------------
|
5
|
+
|
6
|
+
// Base alert styles
|
7
|
+
.alert {
|
8
|
+
padding: 8px 35px 8px 14px;
|
9
|
+
margin-bottom: $baseLineHeight;
|
10
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
11
|
+
background-color: $warningBackground;
|
12
|
+
border: 1px solid $warningBorder;
|
13
|
+
@include border-radius(4px);
|
14
|
+
color: $warningText;
|
15
|
+
}
|
16
|
+
.alert-heading {
|
17
|
+
color: inherit;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Adjust close link position
|
21
|
+
.alert .close {
|
22
|
+
position: relative;
|
23
|
+
top: -2px;
|
24
|
+
right: -21px;
|
25
|
+
line-height: 18px;
|
26
|
+
padding: 0;
|
27
|
+
cursor: pointer;
|
28
|
+
background: transparent;
|
29
|
+
border: 0;
|
30
|
+
-webkit-appearance: none;
|
31
|
+
float: right;
|
32
|
+
font-size: 20px;
|
33
|
+
font-weight: bold;
|
34
|
+
line-height: 20px;
|
35
|
+
color: $grayDark;
|
36
|
+
text-shadow: 0px 1px 0px rgb(255, 255, 255);
|
37
|
+
opacity: 0.5;
|
38
|
+
|
39
|
+
&:hover {
|
40
|
+
color: $black;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Alternate styles
|
45
|
+
// ----------------
|
46
|
+
|
47
|
+
.alert-success {
|
48
|
+
background-color: $successBackground;
|
49
|
+
border-color: $successBorder;
|
50
|
+
color: $successText;
|
51
|
+
}
|
52
|
+
.alert-danger, .alert-error {
|
53
|
+
background-color: $errorBackground;
|
54
|
+
border-color: $errorBorder;
|
55
|
+
color: $errorText;
|
56
|
+
}
|
57
|
+
.alert-info {
|
58
|
+
background-color: $infoBackground;
|
59
|
+
border-color: $infoBorder;
|
60
|
+
color: $infoText;
|
61
|
+
}
|
62
|
+
// Zero State Banner
|
63
|
+
// Appears when there is nothing to show in a list or other part of the interface
|
64
|
+
.alert-zero {
|
65
|
+
background-color: $zeroBackground;
|
66
|
+
border-color: $zeroBorder;
|
67
|
+
color: $zeroText;
|
68
|
+
@include box-shadow(inset 0px 3px 3px $zeroBorder);
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// Block alerts
|
73
|
+
// ------------------------
|
74
|
+
.alert-block {
|
75
|
+
padding-top: 14px;
|
76
|
+
padding-bottom: 14px;
|
77
|
+
}
|
78
|
+
.alert-block > p, .alert-block > ul {
|
79
|
+
margin-bottom: 0;
|
80
|
+
}
|
81
|
+
.alert-block p + p {
|
82
|
+
margin-top: 5px;
|
83
|
+
}
|
84
|
+
.alert-block p.alert-heading {
|
85
|
+
font-weight: bold;
|
86
|
+
}
|
87
|
+
.alert-banner, .alert-removeborder {
|
88
|
+
@extend .alert-block;
|
89
|
+
@include border-radius(0px);
|
90
|
+
margin-bottom: 0px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.badge {
|
94
|
+
@include border-radius(2px);
|
95
|
+
background: $concerto-blue-4;
|
96
|
+
color: $white;
|
97
|
+
font-family: $sans-body;
|
98
|
+
display: inline;
|
99
|
+
font-size: 10px;
|
100
|
+
font-weight: bold;
|
101
|
+
padding: 1px 4px;
|
102
|
+
|
103
|
+
&.action {
|
104
|
+
background-color: $red;
|
105
|
+
}
|
106
|
+
|
107
|
+
&.muted {
|
108
|
+
background-color: $grayLight;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
.link-hl .badge {
|
113
|
+
position: relative;
|
114
|
+
bottom: 2px;
|
115
|
+
margin-right: 3px;
|
116
|
+
}
|
117
|
+
|
118
|
+
// Flash Notice Banner
|
119
|
+
// Only appears for a short time to show flash[:notice] text
|
120
|
+
// Appears to "slide" from behind the top menu, then slide back up
|
121
|
+
#flash-banner {
|
122
|
+
background: $black;
|
123
|
+
opacity: 0.8;
|
124
|
+
|
125
|
+
// initial state: is rendered at top of screen behind the topbar
|
126
|
+
position: absolute;
|
127
|
+
width: 100%;
|
128
|
+
top: 0px;
|
129
|
+
left: 0px;
|
130
|
+
z-index: 1;
|
131
|
+
|
132
|
+
p {
|
133
|
+
padding: 4px 12px;
|
134
|
+
opacity: 1.0;
|
135
|
+
color: $white;
|
136
|
+
margin-bottom: 0px;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
|
141
|
+
// Zero State Well
|
142
|
+
// Appears when there is nothing to show in a list
|
143
|
+
.zero-well {
|
144
|
+
|
145
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Background
|
6
|
+
.modal-backdrop {
|
7
|
+
position: fixed;
|
8
|
+
top: 0;
|
9
|
+
right: 0;
|
10
|
+
bottom: 0;
|
11
|
+
left: 0;
|
12
|
+
z-index: $zindexModalBackdrop;
|
13
|
+
background-color: $black;
|
14
|
+
// Fade for backdrop
|
15
|
+
&.fade { opacity: 0; }
|
16
|
+
}
|
17
|
+
|
18
|
+
.modal-backdrop,
|
19
|
+
.modal-backdrop.fade.in {
|
20
|
+
@include opacity(80);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Base modal
|
24
|
+
.modal {
|
25
|
+
position: fixed;
|
26
|
+
top: 10%;
|
27
|
+
left: 50%;
|
28
|
+
z-index: $zindexModal;
|
29
|
+
width: 560px;
|
30
|
+
margin-left: -280px;
|
31
|
+
background-color: $white;
|
32
|
+
border: 1px solid #999;
|
33
|
+
border: 1px solid rgba(0,0,0,.3);
|
34
|
+
*border: 1px solid #999; /* IE6-7 */
|
35
|
+
@include border-radius(6px);
|
36
|
+
@include box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
37
|
+
@include background-clip(padding-box);
|
38
|
+
// Remove focus outline from opened modal
|
39
|
+
outline: none;
|
40
|
+
|
41
|
+
&.fade {
|
42
|
+
$transition: opacity .3s linear, top .3s ease-out;
|
43
|
+
@include transition($transition);
|
44
|
+
top: -25%;
|
45
|
+
}
|
46
|
+
&.fade.in { top: 10%; }
|
47
|
+
}
|
48
|
+
.modal-header {
|
49
|
+
padding: 9px 15px;
|
50
|
+
border-bottom: 1px solid #eee;
|
51
|
+
// Close icon
|
52
|
+
.close {
|
53
|
+
position: relative;
|
54
|
+
top: -2px;
|
55
|
+
//right: -21px;
|
56
|
+
line-height: 18px;
|
57
|
+
padding: 0;
|
58
|
+
cursor: pointer;
|
59
|
+
background: transparent;
|
60
|
+
border: 0;
|
61
|
+
-webkit-appearance: none;
|
62
|
+
float: right;
|
63
|
+
font-size: 20px;
|
64
|
+
font-weight: bold;
|
65
|
+
line-height: 20px;
|
66
|
+
color: #404040;
|
67
|
+
text-shadow: 0px 1px 0px white;
|
68
|
+
opacity: 0.5;
|
69
|
+
margin-top: 2px;
|
70
|
+
}
|
71
|
+
|
72
|
+
// Heading
|
73
|
+
h3 {
|
74
|
+
margin: 0;
|
75
|
+
line-height: 30px;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
// Body (where all modal content resides)
|
80
|
+
.modal-body {
|
81
|
+
position: relative;
|
82
|
+
overflow-y: auto;
|
83
|
+
max-height: 400px;
|
84
|
+
padding: 15px;
|
85
|
+
}
|
86
|
+
// Remove bottom margin if need be
|
87
|
+
.modal-form {
|
88
|
+
margin-bottom: 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Footer (for actions)
|
92
|
+
.modal-footer {
|
93
|
+
padding: 14px 15px 15px;
|
94
|
+
margin-bottom: 0;
|
95
|
+
text-align: right; // right align buttons
|
96
|
+
background-color: #f5f5f5;
|
97
|
+
border-top: 1px solid #ddd;
|
98
|
+
@include border-radius(0 0 6px 6px);
|
99
|
+
@include box-shadow(inset 0 1px 0 $white);
|
100
|
+
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
101
|
+
|
102
|
+
// Properly space out buttons
|
103
|
+
.btn + .btn {
|
104
|
+
margin-left: 5px;
|
105
|
+
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
106
|
+
}
|
107
|
+
// but override that for button groups
|
108
|
+
.btn-group .btn + .btn {
|
109
|
+
margin-left: -1px;
|
110
|
+
}
|
111
|
+
// and override it for block buttons as well
|
112
|
+
.btn-block + .btn-block {
|
113
|
+
margin-left: 0;
|
114
|
+
}
|
115
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
/*##########################################################################*/
|
2
|
+
/* Button Groups */
|
3
|
+
/*##########################################################################*/
|
4
|
+
|
5
|
+
|
6
|
+
// Make the div behave like a button
|
7
|
+
.btn-group {
|
8
|
+
position: relative;
|
9
|
+
@include clearfix;
|
10
|
+
@include ie7-restore-left-whitespace;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Space out series of button groups
|
14
|
+
.btn-group + .btn-group {
|
15
|
+
margin-left: 5px;
|
16
|
+
}
|
17
|
+
|
18
|
+
// Optional: Group multiple button groups together for a toolbar
|
19
|
+
.btn-toolbar {
|
20
|
+
margin-top: 16px;
|
21
|
+
margin-bottom: 16px;
|
22
|
+
|
23
|
+
.btn-group {
|
24
|
+
display: inline-block;
|
25
|
+
@include ie7-inline-block;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// Float them, remove border radius, then re-add to first and last elements
|
30
|
+
.btn-group .btn {
|
31
|
+
position: relative;
|
32
|
+
float: left;
|
33
|
+
margin-left: -1px;
|
34
|
+
@include border-radius(0px);
|
35
|
+
}
|
36
|
+
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
37
|
+
.btn-group .btn:first-child {
|
38
|
+
margin-left: 0;
|
39
|
+
@include border-radius(4px 0px 0px 4px);
|
40
|
+
}
|
41
|
+
.btn-group .btn:last-child,
|
42
|
+
.btn-group .dropdown-toggle {
|
43
|
+
@include border-radius(0px 4px 4px 0px);
|
44
|
+
}
|
45
|
+
// Reset corners for large buttons
|
46
|
+
.btn-group .btn.large:first-child {
|
47
|
+
margin-left: 0;
|
48
|
+
@include border-radius(6px 0px 0px 6px);
|
49
|
+
}
|
50
|
+
.btn-group .btn.large:last-child,
|
51
|
+
.btn-group .large.dropdown-toggle {
|
52
|
+
@include border-radius(0px 6px 6px 0px);
|
53
|
+
}
|
54
|
+
|
55
|
+
// On hover/focus/active, bring the proper btn to front
|
56
|
+
.btn-group .btn:hover,
|
57
|
+
.btn-group .btn:focus,
|
58
|
+
.btn-group .btn:active,
|
59
|
+
.btn-group .btn.active {
|
60
|
+
z-index: 2;
|
61
|
+
}
|
62
|
+
|
63
|
+
// On active and open, don't show outline
|
64
|
+
.btn-group .dropdown-toggle:active,
|
65
|
+
.btn-group.open .dropdown-toggle {
|
66
|
+
outline: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
// Split button dropdowns
|
72
|
+
// ----------------------
|
73
|
+
|
74
|
+
// Give the line between buttons some depth
|
75
|
+
.btn-group .dropdown-toggle {
|
76
|
+
padding-left: 8px;
|
77
|
+
padding-right: 8px;
|
78
|
+
$shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
79
|
+
@include box-shadow($shadow);
|
80
|
+
*padding-top: 5px;
|
81
|
+
*padding-bottom: 5px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.btn-group.open {
|
85
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
86
|
+
// make the menu appear below buttons that appeared later on the page
|
87
|
+
*z-index: $zindexDropdown;
|
88
|
+
|
89
|
+
// Reposition menu on open and round all corners
|
90
|
+
.dropdown-menu {
|
91
|
+
display: block;
|
92
|
+
margin-top: 1px;
|
93
|
+
@include border-radius(5px);
|
94
|
+
}
|
95
|
+
|
96
|
+
.dropdown-toggle {
|
97
|
+
background-image: none;
|
98
|
+
$shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
99
|
+
@include box-shadow($shadow);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// Reposition the caret
|
104
|
+
.btn .caret {
|
105
|
+
margin-top: 7px;
|
106
|
+
margin-left: 0;
|
107
|
+
}
|
108
|
+
.btn:hover .caret,
|
109
|
+
.open.btn-group .caret {
|
110
|
+
@include opacity(100);
|
111
|
+
}
|
112
|
+
|
113
|
+
|
114
|
+
// Account for other colors
|
115
|
+
.primary,
|
116
|
+
.danger,
|
117
|
+
.info,
|
118
|
+
.success {
|
119
|
+
.caret {
|
120
|
+
border-top-color: $white;
|
121
|
+
@include opacity(75);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
// Small button dropdowns
|
126
|
+
.btn.small .caret {
|
127
|
+
margin-top: 4px;
|
128
|
+
}
|
129
|
+
|
@@ -0,0 +1,236 @@
|
|
1
|
+
/*##########################################################################*/
|
2
|
+
/* Buttons */
|
3
|
+
/*##########################################################################*/
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
// BUTTON STYLES
|
8
|
+
// -------------
|
9
|
+
|
10
|
+
|
11
|
+
// Colors
|
12
|
+
// ------
|
13
|
+
|
14
|
+
.btn, form .submit_bar input {
|
15
|
+
// Set text color
|
16
|
+
&.btn-primary,
|
17
|
+
&.btn-primary:hover,
|
18
|
+
&.btn-danger,
|
19
|
+
&.btn-danger:hover,
|
20
|
+
&.btn-success,
|
21
|
+
&.btn-success:hover,
|
22
|
+
&.btn-info,
|
23
|
+
&.btn-info:hover {
|
24
|
+
color: $white;
|
25
|
+
}
|
26
|
+
&.btn-primary.active,
|
27
|
+
&.btn-danger.active,
|
28
|
+
&.btn-success.active,
|
29
|
+
&.btn-info.active {
|
30
|
+
color: rgba(255,255,255,.75);
|
31
|
+
}
|
32
|
+
&.btn-primary {
|
33
|
+
@include vertical-gradient(#8ac6e8, #306da2);
|
34
|
+
border: solid 1px #003366;
|
35
|
+
text-shadow: 0 -1px 0px #006699;
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
@include vertical-gradient(#c8eff9, #3ea5de);
|
39
|
+
color: #003366 !important;
|
40
|
+
text-shadow: 0 -1px 0px #eee;
|
41
|
+
border: solid 1px #2f84da;
|
42
|
+
}
|
43
|
+
|
44
|
+
&.active {
|
45
|
+
@include box-shadow(inset 0 0 6px $black);
|
46
|
+
@include vertical-gradient(#dedede, #767676);
|
47
|
+
color: #333 !important;
|
48
|
+
text-shadow: 0 -1px 0px #eee;
|
49
|
+
outline: none;
|
50
|
+
border: solid 1px $black;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
// Danger and error appear as red
|
54
|
+
&.btn-danger {
|
55
|
+
@include vertical-gradient(#ee5f5b, #bd362f);
|
56
|
+
border-color: #bd362f;
|
57
|
+
text-shadow: 0 -1px 0px darken(#ee5f5b, 30%);
|
58
|
+
|
59
|
+
&:hover {
|
60
|
+
@include vertical-gradient(#f7adab, #ee5f5b);
|
61
|
+
border-color: #ee5f5b;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.active {
|
65
|
+
@include vertical-gradient(#ee5f5b, #bd362f);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
// Success appears as green
|
69
|
+
&.btn-success {
|
70
|
+
@include vertical-gradient(#62c462, #51a351);
|
71
|
+
border-color: #51a351;
|
72
|
+
text-shadow: 0 -1px 0px darken(#62c462, 20%);
|
73
|
+
|
74
|
+
&:hover {
|
75
|
+
@include vertical-gradient(#9bee9b, #62c462);
|
76
|
+
border-color: #62c462;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.active {
|
80
|
+
@include vertical-gradient(#62c462, #51a351);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
// Info appears as a neutral blue
|
84
|
+
&.btn-info {
|
85
|
+
@include vertical-gradient(#5bc0de, #2f96b4);
|
86
|
+
border-color: #2f96b4;
|
87
|
+
text-shadow: 0 -1px 0px #2f96b4;
|
88
|
+
}
|
89
|
+
|
90
|
+
&.clear {
|
91
|
+
background: none;
|
92
|
+
border-color: $gray;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Base styles
|
97
|
+
// -----------
|
98
|
+
|
99
|
+
.btn, .handle, form .submit_bar input {
|
100
|
+
// Button Base
|
101
|
+
display: inline-block;
|
102
|
+
padding: 2px 10px;
|
103
|
+
@include no-box-shadow;
|
104
|
+
@include border-radius(4px);
|
105
|
+
@include vertical-gradient($white, $grayLighter);
|
106
|
+
font-size: $basefont - 1;
|
107
|
+
cursor: pointer;
|
108
|
+
font-weight: bold;
|
109
|
+
color: $grayDark;
|
110
|
+
letter-spacing: -0.07em;
|
111
|
+
text-shadow: 0 -1px 0px $white;
|
112
|
+
text-decoration: none;
|
113
|
+
border: solid 1px darken($grayLight, 10%);
|
114
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
115
|
+
@include box-shadow($shadow);
|
116
|
+
|
117
|
+
@include ie7-restore-left-whitespace;
|
118
|
+
|
119
|
+
&:hover {
|
120
|
+
@include vertical-gradient(#dbf1f7, #84c6ea);
|
121
|
+
color: #003366 !important;
|
122
|
+
text-shadow: 0 -1px 0px #eee;
|
123
|
+
border: solid 1px #2f84da;
|
124
|
+
text-decoration: none;
|
125
|
+
}
|
126
|
+
|
127
|
+
// Focus state for keyboard and accessibility
|
128
|
+
&:focus {
|
129
|
+
//.tab-focus();
|
130
|
+
}
|
131
|
+
|
132
|
+
// Active and Disabled states
|
133
|
+
&.active,
|
134
|
+
&:active {
|
135
|
+
@include box-shadow(inset 0 0 6px $black);
|
136
|
+
@include vertical-gradient(#dedede, #767676);
|
137
|
+
color: #333 !important;
|
138
|
+
text-shadow: 0 -1px 0px #eee;
|
139
|
+
outline: none;
|
140
|
+
border: solid 1px $black;
|
141
|
+
}
|
142
|
+
&.disabled,
|
143
|
+
&[disabled] {
|
144
|
+
cursor: default;
|
145
|
+
background-color: darken($white, 10%);
|
146
|
+
@include opacity(65);
|
147
|
+
color: $gray !important;
|
148
|
+
@include vertical-gradient($white, $white);
|
149
|
+
border: solid 1px $grayLighter;
|
150
|
+
@include box-shadow(none);
|
151
|
+
}
|
152
|
+
|
153
|
+
// Button Sizes
|
154
|
+
&.btn-large {
|
155
|
+
padding: 9px 14px;
|
156
|
+
font-size: $baseFontSize;
|
157
|
+
letter-spacing: normal;
|
158
|
+
line-height: normal;
|
159
|
+
@include border-radius(5px);
|
160
|
+
}
|
161
|
+
&.btn-pronounced {
|
162
|
+
font-size: $baseFontSize + 2px;
|
163
|
+
}
|
164
|
+
&.btn-large .icon {
|
165
|
+
margin-top: 1px;
|
166
|
+
}
|
167
|
+
&.btn-small {
|
168
|
+
padding: 0px 5px;
|
169
|
+
font-size: $basefont - 3px;
|
170
|
+
//font-size: $baseFontSize - 2px;
|
171
|
+
//line-height: $baseLineHeight - 2px;
|
172
|
+
}
|
173
|
+
&.btn-small .icon {
|
174
|
+
margin-top: -1px;
|
175
|
+
}
|
176
|
+
|
177
|
+
.badge {
|
178
|
+
background: $gray;
|
179
|
+
color: $white;
|
180
|
+
font-weight: normal;
|
181
|
+
text-shadow: 0 0 0;
|
182
|
+
}
|
183
|
+
&.active .badge {
|
184
|
+
background: darken($gray, 15%);
|
185
|
+
}
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
// Help Firefox not be a jerk about adding extra padding to buttons
|
190
|
+
button.btn,
|
191
|
+
input[type="submit"].btn {
|
192
|
+
&::-moz-focus-inner {
|
193
|
+
padding: 0;
|
194
|
+
border: 0;
|
195
|
+
}
|
196
|
+
line-height: inherit;
|
197
|
+
|
198
|
+
// IE7 has some default padding on button controls
|
199
|
+
*padding-top: 2px;
|
200
|
+
*padding-bottom: 2px;
|
201
|
+
&.btn-large {
|
202
|
+
*padding-top: 7px;
|
203
|
+
*padding-bottom: 7px;
|
204
|
+
}
|
205
|
+
&.btn-small {
|
206
|
+
*padding-top: 3px;
|
207
|
+
*padding-bottom: 3px;
|
208
|
+
}
|
209
|
+
@include transition(none);
|
210
|
+
|
211
|
+
&:active {
|
212
|
+
@include box-shadow(inset 0 0 6px $black);
|
213
|
+
@include vertical-gradient(#dedede, #767676);
|
214
|
+
color: #333 !important;
|
215
|
+
text-shadow: 0 -1px 0px #eee;
|
216
|
+
outline: none;
|
217
|
+
border: solid 1px $black;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
// Links with Highlights
|
222
|
+
//----------------
|
223
|
+
// these are not normal buttons per se but rather links with background highlights
|
224
|
+
// when the user hovers over them
|
225
|
+
|
226
|
+
.link-hl {
|
227
|
+
padding: 1px;
|
228
|
+
padding-right: 3px;
|
229
|
+
|
230
|
+
&:hover {
|
231
|
+
background: $concerto-blue-5;
|
232
|
+
color: $concerto-blue-0;
|
233
|
+
text-decoration: none;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|