|
2 | 2 | ////////////////////////////// |
3 | 3 | // Design-specific variables |
4 | 4 | ////////////////////////////// |
5 | | -@font-face { |
6 | | - font-family: 'Lato'; |
7 | | - src: font-url('Lato-Regular.ttf') format('truetype'); |
8 | | -} |
9 | 5 | $theme-base: 'themes/blue'; |
10 | 6 |
|
11 | 7 | $primary-color: #024552; |
12 | 8 | $secondary-color: #00839d; |
13 | 9 | $accent-color: #40cbbd; |
14 | 10 |
|
15 | | -$dark-color: #242526; |
16 | | -$dark-60-color: #7b7c7c; // rgba(36, 37, 38, 0.6); |
17 | | -$dark-30-color: #bcbdbd; // rgba(36, 37, 38, 0.3); |
18 | | -$dark-05-color: #f3f4f4; // rgba(36, 37, 38, 0.05); // Unused |
19 | | - |
20 | | -$light-color: #F4F7FB; |
21 | | -$light-60-color: rgba(244, 247, 251, 0.6); // Unused |
22 | | -$light-30-color: rgba(244, 247, 251, 0.3); // Unused |
23 | | -$light-05-color: rgba(244, 247, 251, 0.05); // Unused |
24 | | - |
25 | | -////////////////////////////// |
26 | | -// TeSS variables |
27 | | -////////////////////////////// |
28 | | -// Misc |
29 | | -$layout-spacing-base: 30px; |
30 | | -$item-padding-base: 24px; |
31 | | -$sidebar-width: 280px; |
32 | | -$transition-time: 300ms; |
33 | | - |
34 | | -// Footer |
35 | | -$footer-bg: #fafafa; |
36 | | -$footer-border: transparent; |
37 | | -$footer-text: $dark-color; |
38 | | -$footer-border-radius: 50px; |
39 | | -$footer-padding-top: 30px; |
| 11 | +@import "mixins/modern_base"; |
40 | 12 |
|
41 | 13 | ////////////////////////////// |
42 | 14 | // Bootstrap variable tweaks |
43 | 15 | ////////////////////////////// |
44 | | - |
45 | | -// For reference: https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_variables.scss |
46 | | - |
47 | | -// Font |
48 | | -$font-family-base: 'Lato', sans-serif; |
49 | | - |
50 | | -$font-size-base: 16px; |
51 | | -$font-size-large: 18px; |
52 | | -$font-size-small: 14px; |
53 | | - |
54 | | -$font-size-h1: 58px; |
55 | | -$font-size-h2: 44px; |
56 | | -$font-size-h3: 32px; |
57 | | -$font-size-h4: 24px; |
58 | | - |
59 | | -// Colours |
60 | | -$brand-primary: $secondary-color; |
61 | | -$brand-secondary: $accent-color; |
62 | | -$brand-danger: #d9534f; |
63 | | -$brand-success: #129e37; |
64 | | -$brand-warning: #f0be3e; |
65 | | -$brand-info: #8fb464; |
66 | | - |
67 | | -$headings-color: $primary-color; |
68 | | - |
69 | | -$gray-darker: $dark-color; |
70 | | -$gray-dark: darken($dark-60-color, 25%); |
71 | | -$gray: darken($dark-60-color, 10%); |
72 | | -$gray-light: $dark-60-color; |
73 | | -$gray-lighter: #fafafa; |
74 | | - |
75 | | -$state-success-text: darken($brand-success, 10%); |
76 | | -$state-success-bg: #d5f5dd; |
77 | | -$state-success-border: $state-success-bg; |
78 | | - |
79 | | -$state-info-text: darken($brand-info, 35%); |
80 | | -$state-info-bg: #e2ffbc; |
81 | | -$state-info-border: $state-info-bg; |
82 | | - |
83 | | -$state-warning-text: darken($brand-warning, 30%); |
84 | | -$state-warning-bg: #fff6c6; |
85 | | -$state-warning-border: $state-warning-bg; |
86 | | - |
87 | | -$state-danger-text: darken($brand-danger, 20%); |
88 | | -$state-danger-bg: #ffe9e9; |
89 | | -$state-danger-border: $state-danger-bg; |
90 | | - |
91 | | -// Spacing |
92 | | -$padding-base-vertical: 8px; |
93 | | -$padding-base-horizontal: 16px; |
94 | | - |
95 | | -$padding-large-vertical: 12px; |
96 | | -$padding-large-horizontal: 18px; |
97 | | - |
98 | | -$border-radius-base: 6px; |
99 | | -$border-radius-large: 10px; |
100 | | -$border-radius-small: 4px; |
101 | | - |
102 | | -// Forms |
103 | | -$input-border: $gray-light; |
104 | | -$input-border-focus: $secondary-color; |
105 | | - |
106 | | -// Navbar |
107 | | -$navbar-height: 60px; |
108 | 16 | $navbar-default-color: #fff; |
109 | 17 | $navbar-default-bg: $primary-color; |
110 | | -$navbar-default-border: transparent; |
111 | 18 | $navbar-default-link-color: #fff; |
112 | | -$navbar-default-link-hover-color: $accent-color; |
113 | | -$navbar-default-link-active-color: $accent-color; |
114 | | - |
115 | | -// Breadcrumb |
116 | | -$breadcrumb-bg: transparent; |
117 | | -$breadcrumb-separator: "/"; |
118 | | -$breadcrumb-color: $dark-color !default; |
119 | | -$breadcrumb-active-color: $dark-color !default; |
120 | | -$breadcrumb-padding-horizontal: 5px; |
121 | | -$breadcrumb-padding-vertical: $layout-spacing-base / 2; |
122 | | - |
123 | | -// Pagination |
124 | | -$pagination-color: $primary-color; |
125 | | -$pagination-active-bg: $secondary-color; |
126 | | -$pagination-active-border: $secondary-color; |
127 | | - |
128 | | -// Links |
129 | | -$link-color: $accent-color; |
130 | | -$link-hover-color: darken(rgb(244, 125, 33), 15%); |
131 | | - |
132 | | -// Buttons |
133 | | -$btn-default-color: $brand-secondary; |
134 | | -$btn-default-bg: #fff; |
135 | | -$btn-default-border: $brand-secondary; |
136 | | - |
137 | | -$btn-primary-color: $light-color; |
138 | | -$btn-primary-bg: $accent-color; |
139 | | -$btn-primary-border: $accent-color; |
140 | | - |
141 | | -$btn-secondary-color: $brand-primary; // Yes I know this is backwards |
142 | | -$btn-secondary-bg: $btn-default-bg; |
143 | | -$btn-secondary-border: $brand-primary; |
144 | | - |
145 | | -$btn-info-color: $brand-info; |
146 | | -$btn-info-bg: #fff; |
147 | | -$btn-info-border: $brand-info; |
148 | | - |
149 | | -$btn-success-color: $brand-success; |
150 | | -$btn-success-bg: #fff; |
151 | | -$btn-success-border: $brand-success; |
152 | | - |
153 | | -$btn-warning-color: $brand-warning; |
154 | | -$btn-warning-bg: #fff; |
155 | | -$btn-warning-border: $brand-warning; |
156 | | - |
157 | | -$btn-danger-color: $brand-danger; |
158 | | -$btn-danger-bg: #fff; |
159 | | -$btn-danger-border: $brand-danger; |
160 | | - |
161 | | -// Nav |
162 | | -$nav-pills-active-link-hover-bg: $secondary-color; |
163 | | -$nav-pills-active-link-hover-color: #fff; |
164 | | - |
165 | | -// Panels |
166 | | -$panel-default-heading-bg: transparentize($secondary-color, 0.9); |
167 | | -$panel-default-border: $panel-default-heading-bg; |
168 | | - |
169 | | -// Misc |
170 | | -$label-default-bg: $secondary-color; |
171 | | -$badge-bg: $accent-color; |
172 | | - |
173 | | - |
174 | | -////////////////////////////// |
175 | | -// Theme-specific style tweaks |
176 | | -////////////////////////////// |
177 | | -.btn-default:hover, .btn-default:active, .btn-default:focus { |
178 | | - color: $secondary-color !important; |
179 | | - background-color: #fff !important; |
180 | | - border-color: $secondary-color !important; |
181 | | - |
182 | | - i { |
183 | | - filter: brightness(0) saturate(100%) invert(28%) sepia(93%) saturate(1217%) hue-rotate(168deg) brightness(102%) contrast(97%); |
184 | | - } |
185 | | -} |
186 | | - |
187 | | -.btn-group.open { |
188 | | - .btn-default.dropdown-toggle { |
189 | | - color: $secondary-color !important; |
190 | | - background-color: #fff !important; |
191 | | - border-color: $secondary-color !important; |
192 | | - } |
193 | | -} |
194 | | - |
195 | | -.btn-primary:hover, .btn-primary:active, .btn-primary:focus { |
196 | | - color: $light-color !important; |
197 | | - background-color: $secondary-color !important; |
198 | | - border-color: $secondary-color !important; |
199 | | -} |
200 | | - |
201 | | -@mixin modern-button-variant($color, $background, $border) { |
202 | | - &:hover, &:active, &:focus { |
203 | | - background: $background !important; |
204 | | - border-color: darken($border, 20%) !important; |
205 | | - color: darken($color, 20%) !important; |
206 | | - } |
207 | | -} |
208 | | - |
209 | | -.btn-secondary { @include modern-button-variant($btn-secondary-color, $btn-secondary-bg, $btn-secondary-border) } |
210 | | -.btn-info { @include modern-button-variant($btn-info-color, $btn-info-bg, $btn-info-border) } |
211 | | -.btn-success { @include modern-button-variant($btn-success-color, $btn-success-bg, $btn-success-border) } |
212 | | -.btn-warning { @include modern-button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border) } |
213 | | -.btn-danger { @include modern-button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border) } |
214 | | - |
215 | | -.text-primary { |
216 | | - color: $secondary-color !important; |
217 | | -} |
218 | | - |
219 | | -.nav-tabs a, .nav-pills a { |
220 | | - color: $secondary-color; |
221 | | -} |
222 | | - |
223 | | -.unified-header .navbar-brand img { |
224 | | - max-height: 80px !important; |
225 | | -} |
226 | | - |
227 | | -.unified-header { |
228 | | - h3 { |
229 | | - margin: 0.25em; |
230 | | - background: white; |
231 | | - border-radius: 10px; |
232 | | - padding: 5px; |
233 | | - } |
234 | | - a { |
235 | | - text-decoration: none; |
236 | | - } |
237 | | -} |
238 | 19 |
|
239 | 20 | @import "../application"; |
0 commit comments