-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.scss
More file actions
184 lines (153 loc) · 4.69 KB
/
Copy pathstyle.scss
File metadata and controls
184 lines (153 loc) · 4.69 KB
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
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
---
# Front matter is required for Jekyll to process this file as
# Sass and emit /assets/css/style.css. Empty body is intentional.
---
@import "{{ site.theme }}";
// -----------------------------------------------------------------------------
// InfTec brand tokens
// -----------------------------------------------------------------------------
// Source: InfTec-StyleGuide.pdf (SIAH DESIGN, November 2011),
// section "Colors and description of color usage".
$inftec-orange: #F18D0D; // primary
$inftec-red: #ED1C24; // gradient end / accent
$inftec-yellow: #F9CA06; // accent (unused in this site so far)
$inftec-dark-gray: #4D4D4D; // body text + header band
$inftec-light-gray: #E6E7E8; // dividers, table headers, code bg
// Web typography: the styleguide authorises Helvetica/Arial as
// substitutes for the (commercial) ARS Maquette Pro web font. A
// system stack covers all platforms with their native UI sans
// without a webfont round-trip.
$inftec-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Helvetica, Arial, sans-serif;
// -----------------------------------------------------------------------------
// Body + base typography
// -----------------------------------------------------------------------------
body {
color: $inftec-dark-gray;
font-family: $inftec-font-stack;
}
// -----------------------------------------------------------------------------
// Header band
// -----------------------------------------------------------------------------
// Solid #4D4D4D band — matches the dark-gray section header bars
// used throughout the styleguide PDF itself, and the logo image
// used here (inftec-logo.png) carries that exact background baked
// in, so the band joins seamlessly to the logo's edges.
.page-header {
background-color: $inftec-dark-gray;
background-image: none; // override cayman's blue gradient
padding: 4rem 6rem 3rem;
text-align: center;
}
.site-logo-link {
display: inline-block;
text-decoration: none;
border: none;
}
.site-logo {
display: block;
width: 240px;
max-width: 60vw;
height: auto;
margin: 0 auto 1.5rem;
}
.project-name {
color: #fff;
font-family: $inftec-font-stack;
font-weight: 600;
}
.project-tagline {
color: rgba(255, 255, 255, 0.85);
font-family: $inftec-font-stack;
font-weight: 400;
}
// -----------------------------------------------------------------------------
// Main content
// -----------------------------------------------------------------------------
.main-content {
font-family: $inftec-font-stack;
h1, h2, h3, h4, h5, h6 {
color: $inftec-dark-gray;
font-family: $inftec-font-stack;
}
// Brand orange links; red on hover (the gradient endpoints).
a {
color: $inftec-orange;
&:hover,
&:focus {
color: $inftec-red;
}
}
// Tables — light-gray header rows, light-gray dividers.
table {
th {
background-color: $inftec-light-gray;
color: $inftec-dark-gray;
}
th, td {
border-color: $inftec-light-gray;
}
}
// Inline code — light-gray background, dark-gray text. Cayman's
// default is a pinkish tint that clashes with the orange links.
code {
background-color: $inftec-light-gray;
color: $inftec-dark-gray;
}
pre {
background-color: $inftec-light-gray;
color: $inftec-dark-gray;
code {
background-color: transparent;
}
}
}
// -----------------------------------------------------------------------------
// Language switcher
// -----------------------------------------------------------------------------
// Tiny inline element placed at the top of bilingual pages
// (e.g. /doodle-poodle/privacy/ ↔ /doodle-poodle/privacy/de/).
// Active language is rendered as <strong>; other language as a link.
.lang-switcher {
text-align: right;
font-size: 0.9em;
margin: 0 0 1.5rem;
color: $inftec-dark-gray;
a {
color: $inftec-orange;
&:hover,
&:focus {
color: $inftec-red;
}
}
strong {
color: $inftec-dark-gray;
font-weight: 600;
}
}
// -----------------------------------------------------------------------------
// Footer
// -----------------------------------------------------------------------------
.site-footer {
border-top-color: $inftec-light-gray;
color: $inftec-dark-gray;
font-family: $inftec-font-stack;
a {
color: $inftec-orange;
&:hover,
&:focus {
color: $inftec-red;
}
}
}
// -----------------------------------------------------------------------------
// Responsive
// -----------------------------------------------------------------------------
@media screen and (max-width: 42em) {
.page-header {
padding: 2rem 1rem 1.5rem;
}
.site-logo {
width: 180px;
}
}