Skip to content

Commit cbf4cd4

Browse files
authored
Merge pull request #21 from DCEW/move_rules_to_css
Moved rules on navbar and description into styles.css and exposed it
2 parents 71347da + 816175c commit cbf4cd4

File tree

3 files changed

+6
-308
lines changed

3 files changed

+6
-308
lines changed

_brand.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,3 @@ defaults:
5353
defaults:
5454
dropdown-link-hover-bg: $brand-blue
5555
dropdown-link-hover-color: $brand-white
56-
rules: |
57-
.navbar-logo {
58-
max-height: 50px;
59-
}
60-
61-
.description {
62-
display: none;
63-
}

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ website:
7676

7777
format:
7878
html:
79-
#css: styles.css
79+
css: assets/css/styles.css
8080
link-external-newwindow: true
8181
toc: true
8282
email-obfuscation: references

assets/css/styles.css

Lines changed: 5 additions & 299 deletions
Original file line numberDiff line numberDiff line change
@@ -1,301 +1,7 @@
1-
body {
2-
background-color: #fff;
3-
padding:50px;
4-
font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
5-
color:#595959;
6-
font-weight:400;
7-
}
8-
9-
h1, h2, h3, h4, h5, h6 {
10-
color:#222;
11-
margin:0 0 20px;
12-
}
13-
14-
p, ul, ol, table, pre, dl {
15-
margin:0 0 20px;
16-
}
17-
18-
h1, h2, h3 {
19-
line-height:1.1;
20-
}
21-
22-
h1 {
23-
font-size:28px;
24-
font-weight: 500;
25-
}
26-
27-
h2 {
28-
color:#393939;
29-
font-weight: 500;
30-
}
31-
32-
h3, h4, h5, h6 {
33-
color:#494949;
34-
font-weight: 500;
35-
}
36-
37-
a {
38-
color:#39c;
39-
text-decoration:none;
40-
}
41-
42-
a:hover {
43-
color:#069;
44-
}
45-
46-
a small {
47-
font-size:11px;
48-
color:#777;
49-
margin-top:-0.3em;
50-
display:block;
51-
}
52-
53-
a:hover small {
54-
color:#777;
55-
}
56-
57-
.wrapper {
58-
width:1080px;
59-
margin:0 auto;
60-
}
61-
62-
blockquote {
63-
border-left:1px solid #e5e5e5;
64-
margin:0;
65-
padding:0 0 0 20px;
66-
font-style:italic;
67-
}
68-
69-
code, pre {
70-
font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
71-
color:#333;
72-
}
73-
74-
pre {
75-
padding:8px 15px;
76-
background: #f8f8f8;
77-
border-radius:5px;
78-
border:1px solid #e5e5e5;
79-
overflow-x: auto;
80-
}
81-
82-
table {
83-
width:100%;
84-
border-collapse:collapse;
85-
}
86-
87-
th, td {
88-
text-align:left;
89-
padding:5px 10px;
90-
border-bottom:1px solid #e5e5e5;
91-
}
92-
93-
dt {
94-
color:#444;
95-
font-weight:500;
96-
}
97-
98-
th {
99-
color:#444;
100-
}
101-
102-
img {
103-
max-width:100%;
104-
}
105-
106-
header {
107-
width:270px;
108-
float:left;
109-
-webkit-font-smoothing:subpixel-antialiased;
110-
}
111-
112-
header ul {
113-
list-style:none;
114-
height:40px;
115-
padding:0;
116-
background: #f4f4f4;
117-
border-radius:5px;
118-
border:1px solid #e0e0e0;
119-
width:270px;
120-
}
121-
122-
header li {
123-
width:89px;
124-
float:left;
125-
border-right:1px solid #e0e0e0;
126-
height:40px;
127-
}
128-
129-
header li:first-child a {
130-
border-radius:5px 0 0 5px;
131-
}
132-
133-
header li:last-child a {
134-
border-radius:0 5px 5px 0;
135-
}
136-
137-
header ul a {
138-
line-height:1;
139-
font-size:11px;
140-
color:#999;
141-
display:block;
142-
text-align:center;
143-
padding-top:6px;
144-
height:34px;
145-
}
146-
147-
header ul a:hover {
148-
color:#999;
149-
}
150-
151-
header ul a:active {
152-
background-color:#f0f0f0;
153-
}
154-
155-
strong {
156-
color:#222;
157-
font-weight:500;
158-
}
159-
160-
header ul li + li + li {
161-
border-right:none;
162-
width:89px;
163-
}
164-
165-
header ul a strong {
166-
font-size:14px;
167-
display:block;
168-
color:#222;
169-
}
170-
171-
section {
172-
width:750px;
173-
float:right;
174-
padding-bottom:50px;
175-
}
176-
177-
small {
178-
font-size:11px;
179-
}
180-
181-
hr {
182-
border:0;
183-
background:#e5e5e5;
184-
height:1px;
185-
margin:0 0 20px;
186-
}
187-
188-
footer {
189-
width:270px;
190-
clear:left;
191-
float:left;
192-
margin-top:20px;
193-
-webkit-font-smoothing:subpixel-antialiased;
194-
}
195-
196-
@media print, screen and (max-width: 960px) {
197-
198-
div.wrapper {
199-
width:auto;
200-
margin:0;
201-
}
202-
203-
header, section, footer {
204-
float:none;
205-
position:static;
206-
width:auto;
207-
}
208-
209-
header {
210-
padding-right:320px;
211-
}
212-
213-
section {
214-
border:1px solid #e5e5e5;
215-
border-width:1px 0;
216-
padding:20px 0;
217-
margin:0 0 20px;
218-
}
219-
220-
header a small {
221-
display:inline;
222-
}
223-
224-
header ul {
225-
position:absolute;
226-
right:50px;
227-
top:52px;
228-
}
229-
}
230-
@media print, screen and (max-width: 720px) {
231-
body {
232-
word-wrap:break-word;
233-
}
234-
235-
header {
236-
padding:0;
237-
}
238-
239-
header ul, header p.view {
240-
position:static;
241-
}
242-
243-
pre, code {
244-
word-wrap:normal;
245-
}
246-
}
247-
248-
@media print, screen and (max-width: 480px) {
249-
body {
250-
padding:15px;
251-
}
252-
253-
header ul {
254-
width:99%;
255-
}
256-
257-
header li, header ul li + li + li {
258-
width:33%;
259-
}
260-
}
261-
262-
@media print {
263-
body {
264-
padding:0.4in;
265-
font-size:12pt;
266-
color:#444;
267-
}
268-
}
269-
270-
/* custom css */
271-
.center {
272-
display: block;
273-
margin-left: auto;
274-
margin-right: auto;
275-
width: 50%;
276-
}
277-
278-
.btn {
279-
background-color: #4A154B;
280-
border-radius: 12px;
281-
padding: 15px 32px;
282-
text-align: center;
283-
color: white;
284-
display: block;
285-
margin: 0 auto;
286-
width: 200px;
287-
}
288-
289-
/* Image containers a third the width of the page */
290-
.column-3 {
291-
text-align: center;
292-
flex-basis: 25%;
293-
padding: 5px;
294-
}
1+
.navbar-logo {
2+
max-height: 50px;
3+
}
2954

296-
/* Clear floats after image containers */
297-
.row {
298-
text-align: center;
299-
justify-content: space-evenly;
300-
display: flex;
5+
.description {
6+
display: none;
3017
}

0 commit comments

Comments
 (0)