/
hotel-chevalier.theme.scss
124 lines (109 loc) · 2.86 KB
/
hotel-chevalier.theme.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*
= Styleguide Theme: Hotel Chevalier
for the Jekyll CSS Styleguide
---------------------------------------------------------------------------- */
// Theme: Hotel Chevalier
// Font face for this theme
$sg-ff: "Droid Serif", Georgia, serif;
// Colors for this theme
$sg-cl-accent1: #355243; // Green
$sg-cl-accent2: #fbc950; // Yellow
$sg-cl-accent3: #c9d5d3; // Lightblue
$sg-cl-accent4: #baa18a; // Chocolate
$sg-sidebar-border: $sg-cl-accent3; // Lightblue Border
// No need to change this unless you've changed it in
// the main Jekyll CSS Styleguide files also...
$dh-ns: 'sg' !default; // chosen prefix for classnames
/* styles:
---------------------------------------------------------------------------- */
// Content Regions
.#{$dh-ns}-header,
.#{$dh-ns}-sidebar,
.#{$dh-ns}-footer {
background-color: $sg-cl-accent1;
color: $sg-cl-accent3;
& a { color: $sg-cl-accent2; }
font-family: $sg-ff;
}
// list borders
.#{$dh-ns}-nav li { border-color: $sg-cl-accent3; }
// Main Title
.#{$dh-ns}-title {
// text-transform: uppercase;
font-weight: normal !important;
a { text-decoration: none; }
}
// Sidebar NAVIGATION
.#{$dh-ns}-sidebar {
> h2 {
border-color: $sg-cl-accent2;
}
}
.#{$dh-ns}-linklist {
> li > a {
color: $sg-cl-accent3;
border-bottom: 1px dotted $sg-cl-accent3;
&:hover, &:focus, &:active {
color: $sg-cl-accent2;
border-bottom: 1px solid $sg-cl-accent2;
}
}
}
// Toggler Button
.#{$dh-ns}-sidebar .js-expand-toggler {
background-color: $sg-cl-accent2;
color: $sg-cl-accent1;
&:hover, &:focus, &:active {
background-color: darken($sg-cl-accent1,5%);
color: $sg-cl-accent3;
}
}
// Skiplink
.#{$dh-ns}-skiplink {
background-color: $sg-cl-accent2;
color: $sg-cl-accent1;
&:after { border-color: $sg-cl-accent2 transparent transparent transparent; }
}
// Components
.#{$dh-ns}-component,
.#{$dh-ns}-component__title { border-color: $sg-cl-accent4; }
.#{$dh-ns}-component__title {
&, & a { color: $sg-cl-accent1; }
background-color: rgba($sg-cl-accent4, 0.25);
font-weight: normal;
}
// Tabs
.#{$dh-ns}-tabs {
border-bottom: 1px solid $sg-cl-accent4;
> li > a {
background-color: lighten($sg-cl-accent4, 30%);
color: $sg-cl-accent4;
border: 1px solid $sg-cl-accent4;
}
}
[role="tabpanel"] {
border-color: $sg-cl-accent4;
&:before { background: $sg-cl-accent4; }
}
// State
.is-current-page,
.is-current-page > a {
color: $sg-cl-accent2 !important;
border-color: $sg-cl-accent2 !important;
}
// Mobile First Mediaquery overrides
@media screen and (min-width: 40em) {
// Fancy Faux Columns
@if type-of($sg-sidebar-border) == color {
.#{$dh-ns}-page {
background-image: linear-gradient(
to right,
$sg-cl-accent1 0%,
$sg-cl-accent1 30%,
$sg-sidebar-border 30%,
$sg-sidebar-border 30.33%,
#FFF 30.33%
);
}
}
}