-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
216 lines (192 loc) · 4.63 KB
/
style.css
File metadata and controls
216 lines (192 loc) · 4.63 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
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
/*
Theme Name: ClimateAction.Tech
Theme URI: https://climateaction.tech
Template: neve
Author: Hannah Smith hannah@opcan.co.uk
Author URI: https://opcan.co.uk
Description: A customised child theme of Neve especially for CAT.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cat
*/
/* 1. UTILITY FIRST CLASSES */
/* 2. HTML ELEMENTS */
/* 3. ACTIONS */
/* 3A. ACTION TEASERS */
/* 3B. SINGLE ACTION PAGE */
/* 4. BLOG */
/* 10. COMMENTS */
/* 20. BLOCKS */
/* 20A. YOAST FAQ SCHEMA BLOCKS */
/* 20B. CLICK TO TWEET BLOCKS */
.sample-class {
color: black;
}
/*
/* 1. UTILITY FIRST CLASSES */
.pt-0 {
padding-top: 0;
}
.pb-1 {
padding-bottom: 1rem;
}
/* 2. HTML ELEMENTS */
h2 {
padding-top: 2em;
}
h3, h4 {
padding-top: 1.3em;
}
/* 3. ACTIONS */
/* 3A. ACTION TEASERS */
/* Hide action meta info like written by, date written etc. */
.type-action .nv-meta-list {
display: none;
}
.type-action .article-content-col {
border-radius: 8px;
box-shadow: 0px 0px 16px 4px rgba(0,0,0,.16);
}
.type-action .blog-entry-title,
.type-action .entry-summary {
padding-left: 1.6rem;
padding-right: 1.6rem;
}
.type-action .article-content-col .content {
border: 0;
/* padding-bottom: 0; */
}
.type-action .article-content-col .blog-entry-title{
padding-top: 1rem;
padding-bottom: 0.6rem;
}
/* 3B. SINGLE ACTION PAGE */
.action-template-default .single-post-container article > div {
max-width: 850px !important; /* We need to overwrite any settings in the theme that can be changed. Sorry for the !important. */
margin-left: auto;
margin-right: auto;
}
.action-template-default .entry-header:first-child {
margin-top: 60px;
}
/* 4. BLOG */
.blog .posts-wrapper > article.type-post {
/* Override default tile styles so blog articles become full width instead. */
max-width: 100% !important;
flex: 0 0 100% !important;
}
/* Hide featured images from blog archive page */
.blog .posts-wrapper > article.type-post .nv-post-thumbnail-wrap {
display: none;
}
/* link hover state blog archive page */
#content .cover-post a:hover {
color: white;
opacity: 1;
text-decoration: underline;
}
/*block padding and height */
#content .cover-post .blog-entry-title {
padding-top:0;
}
.cover-post {
min-height: auto;
}
/*sidebar width and margin for single blog page */
@media (min-width: 960px) {
.neve-main>.single-post-container .nv-sidebar-wrap {
max-width: 25%;
margin-left: 35px;
}
.nv-sidebar-wrap.nv-right {
padding-left: 35px;
}
}
/*meta layout for single blog page */
.nv-single-post-wrap .nv-meta-list .author {
width: 100%; /* display authors in their own line */
}
.nv-single-post-wrap .nv-meta-list .meta.category:after {
content:'';
}
/* 10. COMMENTS */
#comments input[type="submit"] {
background-color: #004880;
color: white;
border-radius: 5px;
padding: 6px 12px;
}
#comments input[type="submit"]:hover {
background-color: #1f79ac;
color: white;
}
/* 20. BLOCKS */
/* 20A. YOAST FAQ SCHEMA BLOCKS */
.schema-faq-section {
margin: 0 -15px;
}
/* QUESTION STYLING */
.schema-faq-question {
position: relative;
display: block;
margin-bottom: 0.6rem;
padding: 10px 50px 10px 15px;
cursor: pointer;
}
/* Styling for question on hover and when the question is open */
.schema-faq-question:hover,
.is-open .schema-faq-question {
background-color: #ECF2AD;
border-radius: 5px;
}
.schema-faq-question::after {
position: absolute;
top: 10px;
right: 0;
font-family: 'Dashicons';
content: "\f347";
color: #004880;
font-size: 40px;
height: 40px;
width: 40px;
margin-right: 10px;
transform: rotate(0deg);
transition: transform 0.3s linear;
}
.schema-faq-question:hover::after {
color: black;
}
.is-open .schema-faq-question::after {
transform: rotate(180deg);
margin-top: -12px;
color: black;
}
/* ANSWER STYLING */
.schema-faq-answer {
display: none;
padding: 0 15px;
margin-bottom: 2rem;
}
.is-open .schema-faq-answer {
display: block;
}
/* 20B. CLICK TO TWEET BLOCKS */
.bctt-click-to-tweet {
box-shadow: 0px 0px 16px 4px rgba(0,0,0,.16);
}
.bctt-ctt-text {
display: block;
}
.bctt-ctt-text a {
font-family: inherit !important; /* Plugin uses !important, so I must too */
font-size: 1rem;
}
a.bctt-ctt-btn {
background-color: #004880;
background-position: 125px center;
color: white !important; /* Plugin uses !important, so I must too */
border-radius: 5px;
padding: 3px 30px 3px 10px;
margin-top: 0.4rem;
}