Newer
Older
//**
//* @file
//* Fill out the base styles for the theme..
//*/
// Import the reusables for all stylesheets.
@import "base";
Al Steffen
committed
@import "normalize";
/**
* Base elements
*/
html {
@include word-break(break-all);
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
text-rendering: optimizeLegibility\9; /* Only IE, can mess with Android */
@include respond(medium) {
@include word-break(normal);
}
@include respond(small large) {
font-size: 12px;
}
background: $color-background;
color: $color-text;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: $base-leader;
margin-bottom: $base-leader;
@include adjust-leading-to(.8);
@include text-shadow(1px 1px 1px rgba(#000, .6));
color: $color-header;
a {
&,
&:visited,
&:hover,
&:active {
color: $color-header;
}
&:hover {
text-decoration: underline;
}
}
}
table {
border-top: $base-border-width solid;
border-bottom: $base-border-width solid;
width: 100%;
margin: $base-rhythm-unit 0;
}
caption,
tfoot {
font-style: italic;
}
tr {
border-bottom: $base-border-width solid;
}
th {
font-weight: bold;
}
th,
td {
padding: $base-half-leader;
border-left: $base-border-width dotted;
border-right: $base-border-width dotted;
}
iframe,
embed,
object {
display: block;
margin: $base-rhythm-unit auto;
}
max-width: 100%;
height: auto;
margin-right: auto;
margin-left: auto;
@include respond(medium) {
display: inline-block;
clear: none;
}
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
}
a {
color: $link-base;
text-decoration: none;
@include transition;
&:visited {
color: $link-visited;
}
&:hover,
&:active {
color: $link-hover;
}
}
/**
* Default form styles
*/
label {
display: block;
input[type="checkbox"] + & {
display: inline;
}
}
fieldset {
display: block;
@include rhythm-borders;
@include box-sizing(border-box);
width: 100%;
max-width: 100%;
> :first-child,
> legend + * {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}
legend {
padding: 0 $base-leader;
@extend %sans-serif-light;
text-transform: uppercase;
}
button,
input,
textarea {
@include box-sizing(border-box);
}
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="file"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select,
textarea {
@include box-sizing(border-box);
margin: $base-leader 0;
padding: $base-leader;
width: 100%;
max-width: 100%;
border: $base-border-width solid $color-border;
@include border-radius(.15em);
font-size: 1em;
background: $color-input-background;
@include background-clip(padding-box);
@include placeholder {
line-height: normal;
color: $color-placeholder;
}
&.required {}
&.error {}
@include respond(large) {
padding: $base-leader;
}
}
input[type="color"] {
padding: 0;
min-height: $base-leader * 2;
}
input[type="search"] {
-webkit-appearance: textfield;
&::-webkit-search-decoration {
display: none;
}
}
textarea {
height: auto;
}
select {
width: auto;
}
@include buttons;
[type="reset"],
[type="submit"],
[type="button"],
[class*="action-item"] {
Al Steffen
committed
@extend %button-default-layout;
@extend %button-default;
max-width: 100%;
Al Steffen
committed
@include respond(only-small) {
display: block;
width: 100%;
margin: .5em 0;
}
&.blue-button,
&.gray-button,
&[class*="panels-ipe-"] {
@include text-shadow(none);
}
&.blank-button {
&,
&:hover {
background: none;
border: none;
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
}
}
[class*="action-item-small"] {
@extend %button-small-layout;
}
[class*="action-item-large"] {
@extend %button-large-layout;
}
.action-item-active,
.action-item-small-active,
.action-item-large-active {
&,
&[type="reset"],
&[type="submit"],
&[type="button"] {
@extend %button-active;
}
}
.action-item-primary,
.action-item-small-primary,
.action-item-large-primary {
&,
&[type="reset"],
&[type="submit"],
&[type="button"] {
@extend %button-primary;
}
}
.action-item-primary-active,
.action-item-small-primary-active,
.action-item-large-primary-active {
&,
&[type="reset"],
&[type="submit"],
&[type="button"] {
@extend %button-primary-active;
}
}
/* Make the disabled buttons subdued. */
[disabled] {
&,
& option,
& optgroup {
@include opacity(.6);
-moz-user-select: -moz-none;
-webkit-user-select: none;
-khtml-user-select: none;
user-select: none;
cursor: normal;
}
}
/**
* General page elements
*/
@import "style/messages";
Al Steffen
committed
@include message-variants;
div {
&.messages {
@extend %message;
}
&.status {
@extend %message-status;
}
&.warning {
@extend %message-warning;
}
&.error {
@extend %message-error;
}
}
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
.local-tasks {
margin: 0;
padding: 0;
@include respond(medium) {
text-align: right;
}
}
.local-task {
display: inline-block;
margin: $base-leader 0;
list-style-type: none;
}
.local-task-link {
display: inline-block;
padding: $base-half-leader ($base-leader * 2);
border: 1px solid darken($tab-background, 40);
@include border-radius(.2em);
background: darken($tab-background, 20) image-url("stripes.png");
background: rgba($tab-background, .6) image-url("stripes.png");
&:hover {
background: darken($tab-background, 20) image-url("stripes.png");
background: rgba($tab-background, 1) image-url("stripes.png");
}
&,
&.active {
color: $tab-link;
}
&.active {
position: relative;
border-color: $link-base;
font-weight: bold;
background: $tab-background;
@include respond(medium) {
&:after {
content: "";
position: absolute;
left: 50%;
bottom: -.8em;
display: block;
margin-left: -.2em;
width: 0;
height: 0;
border: .4em solid transparent;
border-top-color: $link-base;
}
}
}
}
.more-link {
@include box-shadow(0 3px 3px #333);
color: $link-more-base;
@include border-radius(10px);
background-color: $link-more-background-base;
padding: 5px 10px;
&:hover,
&:active {
color: $link-more-hover;
text-decoration: none;
background-color: $link-more-background-hover;
}
}
.video-responsive {
position: relative;
height: 0;
margin: $base-rhythm-unit auto;
padding-top: $base-rhythm-unit;
.video-embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
margin: 0;
}
}
/**
* General page wrappers
*/
.page {
@include respond(medium) {
padding-top: $base-rhythm-unit + $base-leader * 2;
background-size: 100%;
}
}
.page-title {
font-size: 3em;
}
.content-container {
@include box-sizing(border-box);
width: 100%;
margin-right: auto;
margin-left: auto;
padding: 0 $base-leader;
}
.block,
.node {
@include margin-leader(1);
@include margin-trailer(1);
}
.block-system {
margin-bottom: 0;
}
.container-inline {
div,
label {
display: inline-block;
}
}
Al Steffen
committed
.alternate-scheme,
.reverse-scheme {
width: 100%;
margin-right: -$base-leader;
margin-left: -$base-leader;
padding: $base-leader;
@include respond(medium) {
@include box-sizing(border-box);
margin-right: 0;
margin-left: 0;
}
.block {
&:first-child {
&,
.block-title {
margin-top: 0;
}
}
}
Al Steffen
committed
.alternate-scheme {
background: $color-background-alternate image-url('body-texture.png');
}
Al Steffen
committed
.reverse-scheme {
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
color: $color-text-reverse;
background: $color-background-reverse;
h1,
h2,
h3,
h4,
h5,
h6 {
color: $color-header-reverse;
a {
&,
&:visited,
&:hover,
&:active {
color: $color-header-reverse;
}
}
}
}
.row-1-2-4 {
.item {
display: block;
@include respond(medium) {
float: left;
width: 50%;
}
@include respond(large) {
float: left;
width: 25%;
}
}
}
position: relative;
padding: 0;
@include respond(medium) {
padding-right: $base-leader;
padding-left: $base-leader;
}
}
.header-inner {
position: relative;
z-index: 2;
width: 100%;
@include respond(medium) {
@include box-sizing(border-box);
padding-left: $logo-width;
background: $color-background-alternate;
}
}
.site-meta {
position: relative;
@include box-sizing(border-box);
background: $color-background-alternate image-url('header-texture.png');
@include respond(medium) {
float: left;
.logo-wrapper {
@include respond(only-small) {
display: inline-block;
float: left;
width: $logo-icon;
overflow: hidden;
}
}
display: block;
float: left;
}
.site-name {
@extend h1;
font-weight: bold;
margin-top: 0;
margin-bottom: 0;
}
.site-navigation {
position: relative;
z-index: 5;
@include respond(medium) {
@include box-sizing(border-box);
width: 100%;
}
}
@include respond(only-small) {
.site-meta,
.site-navigation {
display: block;
}
}
padding-top: $base-leader;
padding-bottom: $base-leader;
padding-left: 0;
&,
li {
margin: 0;
}
li {
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
font-family: $font-light;
font-weight: 400;
&:after {
content: "|";
display: inline-block;
padding-right: .2em;
padding-left: .4em;
}
&:last-child {
&:after {
content: "";
display: inline;
padding: 0;
}
}
@include respond(medium) {
padding: 0 $base-leader;
&:after {
content: "";
display: inline;
padding: 0;
}
}
&:visited {
}
}
}
}
.main-menu {
li {
text-transform: uppercase;
}
@include respond(medium) {
float: left;
}
}
.secondary-menu {
position: absolute;
right: 0;
top: -($base-rhythm-unit + ($base-leader * 2));
position: relative;
z-index: 2;
float: right;
@include box-sizing(border-box);
height: #{px-to-em(59px)};
margin-top: -#{px-to-em(59px)};
margin-right: -$base-leader;
line-height: #{px-to-em(59px)};
@include respond(medium) {
margin-top: 0;
}
}
.menu-trigger {
@include box-sizing(border-box);
display: inline-block;
margin: 0;
width: ($base-rhythm-unit * 2) + ($base-leader * 2);
height: #{px-to-em(59px)};
background: $color-menu none no-repeat center center;
background-color: tint($color-menu, 20);
.trigger-main-menu {
background-image: inline-image("icon-menu.svg");
}
.trigger-secondary-menu {
background-image: inline-image("icon-user.svg");
}
.trigger-block-search-form {
background-image: inline-image("icon-search.svg");
}
.trigger-block-commerce-cart-cart {
background-image: inline-image("icon-cart.svg");
}
position: relative;
background-color: tint($color-menu, 10);
&::after {
content: '';
display: block;
position: absolute;
bottom: -$base-leader * 2;
left: 50%;
margin-left: -$base-leader;
width: auto;
height: 0;
border: $base-leader solid transparent;
border-top-color: tint($color-menu, 10);
}
&:hover {
&::after {
border-top-color: tint($color-menu, 20);
}
}
[class*="collapsible-menu"],
[class*="collapsible-block"] {
.block-title {
Al Steffen
committed
margin-top: 0;
.menu-closed {
position: absolute;
visibility: hidden;
opacity: 0;
}
.menu-active {
margin-top: 0;
visibility: visible;
opacity: 1;
}
/**
* Header regions
*/
.header-search {
position: relative;
padding: 0;
.block {
top: -$base-leader;
margin: -$base-rhythm-unit * 1.5 $base-leader 0;
padding: $base-leader;
Al Steffen
committed
background: rgba(tint($color-menu, 80), .8);
border: .2em solid $color-menu;
@include border-radius(.2em);
@include box-shadow;
@include transition-property(opacity, visibility, margin-top);
@include transition-duration(.3s);
&.menu-active {
margin-top: $base-leader * 2 ;
}
}
@include box-sizing(border-box);
.region {
@include box-sizing(border-box);
float: right;
.block {
position: absolute;
Al Steffen
committed
z-index: 3;
max-width: 30%;
max-height: 20em;
overflow: auto;
margin-right: 0;
margin-left: 0;
right: 0;
}
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
}
}
/**
* Search block
*/
.block-search {
.search-form,
.form-item {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
}
.form-item {
margin-right: $base-half-leader;
margin-left: $base-half-leader;
}
}
/**
* Footer
*/
.site-footer {
padding: $base-leader 0;
background: $color-background-alternate image-url('body-texture.png');
}
@include respond(medium) {
.footer-first,
.footer-second {
display: inline-block;
float: left;
width: 49%;
}
.footer-first {
margin-right: 2%;
}
*/
.panel-responsive {
.rld-col {
padding-right: 0;
padding-left: 0;
}
}
/**
* Views
*/
.views-row {
margin-top: $base-rhythm-unit;
margin-bottom: $base-rhythm-unit;
}
Al Steffen
committed
/**
* Featured content overlayed text
*/
Al Steffen
committed
.node {
position: relative;
}
.node-title {
margin: 0;
text-align: center;
text-transform: uppercase;
@include respond(small) {
position: absolute;
bottom: $base-leader;
@include box-sizing(border-box);
padding-right: $base-leader;
padding-left: $base-leader;
width: 100%;
color: $color-header-reverse;
a {
&,
&:visited,
&:active,
&:hover {
display: inline-block;
overflow: hidden;
color: $color-header-reverse;
}
}
}
@include respond(medium large) {
bottom: 0;
font-size: 3em;
}
@include respond(large) {
bottom: $base-leader;
Al Steffen
committed
}
Al Steffen
committed
Al Steffen
committed
position: relative;
margin: 0;
}
.node-title {
Al Steffen
committed
position: absolute;
bottom: 0;
left: 0;
display: inline-block;
Al Steffen
committed
@include box-sizing(border-box);
Al Steffen
committed
padding-right: $base-leader;
padding-left: $base-leader;
font-size: 1.4em;
text-transform: uppercase;
Al Steffen
committed
color: $color-header-reverse;
@include background(linear-gradient(120deg, #000, rgba(#000, .6) 10%, rgba(#000, .6) 45%, rgba(#000, .2) 90%));
Al Steffen
committed
a {
&,
&:visited,
&:active,
&:hover {
display: inline-block;
max-height: 3 * 1.2em;
overflow: hidden;
Al Steffen
committed
color: $color-header-reverse;
}
}
@include respond(medium) {
max-width: 80%;
font-size: 2em;
}
Al Steffen
committed
}
Al Steffen
committed
Al Steffen
committed
position: relative;
margin: 0;
}
.node-title {
position: absolute;
bottom: 0;
left: 0;
display: inline-block;
@include box-sizing(border-box);
margin: 0 0 $base-half-leader;
padding: $base-half-leader $base-leader;
font-size: 1em;
text-transform: uppercase;
color: $color-header-reverse;