Project

General

Profile

Support #18521 » CCNY English - Header Scripts.txt

Laurie Hurson, 2023-08-04 09:28 AM

 
1
CCNY English - Header Scripts
2

    
3
<meta name="viewport" content="width=device-width, initial-scale=1"/>
4

    
5
<a href="https://www.ccny.cuny.edu/"><div class="ccnyhome"></div></a>
6
<script>
7

    
8
var navbars = document.querySelectorAll('nav');
9
for(i=0;i<navbars.length;i++){
10
navbars.setAttribute('aria-label','Custom Label')
11
}
12

    
13
</script>
14
<style>
15
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100;0,200;0,300;0,600;1,100;1,200;1,300;1,600&family=Source+Serif+Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap');
16
	div#content.site-content{
17
		padding-top:0!important;
18
	}
19

    
20
	.category-links a{color: #666666;}
21
	
22
	.wp-block-kadence-posts a.post-more-link{
23
	text-transform: uppercase;
24
    font-weight: 400;
25
    letter-spacing: 1px;
26
    font-family: Montserrat,sans-serif;
27
    text-decoration: none!important;
28
    transition: background-color .3s ease;
29
	border: 2px solid;
30
    padding: 0.667em 1.333em;
31
	color: #088478!important;
32
		display:none;
33
	}
34
	
35
	
36
	.entry-footer{text-align:left;}
37
	.wp-block-kadence-posts a.post-more-link .kadence-svg-iconset svg{display:none;}
38
	
39
	.navbar{position: relative; z-index: 1;}
40
	.ccnyhome{background-image: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/10/seal2.png");
41
	width: 60px; height: 60px; display: block; position: fixed; top: 15px; left: 10px; z-index: 9999;}
42
	.kt-blocks-accordion-title{color: #222;}
43
	.kt-accordion-header-wrap .kt-blocks-accordion-header.kt-accordion-panel-active{background-color: #999!important;}
44
	.wp-block-latest-posts__post-title{font-size: 20px; line-height: 20px; font-weight: 600;}
45
	a.wp-block-latest-posts__post-title{color: #000000; text-decoration: none; font-weight: 600;}
46
	wp-block-latest-posts__post-date{font-style: italic;}
47
	.page .entry-cover-image .single-featured-image-header img, .single .entry-cover-image .single-featured-image-header img{display:none;}
48
	.page .entry-cover-image:after, .single .entry-cover-image:after{display:none;}
49
	.page .entry-cover-image .entry-header .entry-title, .single .entry-cover-image .entry-header .entry-title{color: #000000;}
50
	.page .entry-cover-image .entry-header .entry-meta a, .single .entry-cover-image .entry-header .entry-meta a{color: #000000;}
51
	.page .entry-cover-image .entry-header .entry-meta, .single .entry-cover-image .entry-header .entry-meta{color: #000000;}
52
	ul li.cat-item{list-style-type: none;margin-left:-15px; font-weight: 600;}
53
	
54
	h2.tribe-events-widget-events-list__header-title{font-family: 'Source Serif Pro', serif!important; margin-bottom: 20px!important;
55
    line-height: 1.3!important;
56
    font-weight: 700!important;
57
	font-size: 1.5em!important;
58
	}
59
	
60

    
61
	h3.entry-title::after{background: #ffffff!important;margin-bottom: 0!important;font-weight: 600!important; padding-bottom: 0!important;display:none!important; letter-spacing:1px; }
62
	.entry-content-wrap .entry-title a{font-size: 20px!important;line-height:18px;font: 20px Inter, sans-serif!important;font-weight: 600!important;}
63
	.entry-content-wrap{padding:0!important;border: 0!important;font-weight: 600!important;padding-bottom: 0!important;}
64
	
65
	h3.entry-title{margin:0; padding:0;}
66
	.entry-meta span{display:none;font-weight: 600!important;}
67
	.wp-block-kadence-posts .entry-meta{margin-left: 20px!important; font-size: 1em!important; padding: 0!important;}
68
	
69
	.wp-block-kadence-posts.kb-posts-style-unboxed .loop-entry.content-bg {padding: 0!important;}
70
	.entry-title a{font-weight: 600;}
71
	.entry-content p{font-weight: 500;}
72
	
73
	
74
	article{
75
		padding: 30px;
76
		background: #fff;
77
		
78
	}
79
	
80
	.page .entry-title, .page-title{
81
		font-family: 'Source Serif Pro', serif;
82
		font-size: 5em!important;
83
		text-transform: none!important;	
84
		line-height: 100px;
85
		text-align: left;
86
		margin-top: 100px;
87
	}
88
	h1, h2, h3, h4, h5, h6{
89
			font-family: 'Source Serif Pro', serif;
90
	
91
	}
92
	.entry-content p{
93
	font-family: 'Noto Sans', sans-serif;	
94
	}
95
	.entry-content ul li{font-size: 20px;} 
96

    
97
	
98
	body:not(.has-archive-description):not(.has-header-image) .page-title:after, body:not(.has-archive-description):not(.has-header-image).page .entry-title:after {
99
    content: '';
100
    display: block;
101
    width: 300px;
102
    height: 6px;
103
    background: #000;
104
    margin-top: 40px;
105
	margin-left: 0px;
106
	margin-bottom:48px;
107
	}
108
	
109
body.has-header-image .site-title, body.has-header-image .site-title a, body.has-header-video .site-title, body.has-header-video .site-title a {
110
	color: #000!important;
111
	background: #fff;
112
	padding: 10px;
113
	display: block;
114
	opacity: 0.9;
115
	font-size: 250%!important;
116
	font-family: 'Source Serif Pro', serif;
117

    
118
}
119
	.has-header-image .navbar, .has-header-video .navbar {
120
	background: #000;
121
	opacity: 1;	
122
	}
123
	.custom-logo-link img {
124
    display: inline-block;
125
    max-height: 100px!important;
126
    width: auto;
127
	}
128
	
129
	.dropcap{
130
		font-size: 4em;
131
		color: #088478;
132
		font-weight: bold;
133
		margin-right: 10px;
134
		display: block;
135
		float: left;
136
		line-height: .8em;
137
		font-family: 'Source Serif Pro', serif;
138

    
139
	}
140
	.navbar-nav a{
141
		font-family: 'Noto Sans', sans-serif!important;	
142
		font-size: 1.1em!important;
143
		color: #0bb4aa;	
144
		font-weight: 800;
145
	}
146
	
147
	 body .home page-template-default page page-id-261 #content{
148
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/08/2866639172_27a3fb95f7_k-1.jpg");
149
		background-position: top right; 
150
		background-repeat: no-repeat;
151
		background-attachment: fixed;
152

    
153
	}
154
	.wp-block-button a{
155
		color: #088478!important;
156
	}
157
	.wp-block-button a:hover{
158
		color: #fff!important;
159
	}
160
	.page-id-57 .page .entry-title, .page-title{
161

    
162
		margin-top:500px;
163
	}
164
	.page-id-56 .page .entry-title, .page-title{
165

    
166
		margin-top:500px;
167
	}
168
	.page-id-1579 .page .entry-title, .page-title{
169

    
170
		margin-top:500px;
171
	}
172
	.page-id-1522 .page .entry-title, .page-title{
173

    
174
		margin-top:500px;
175
	}
176
	
177
	.page-id-53 .page .entry-title, .page-title{
178

    
179
		margin-top:500px;
180
	}
181
	.page-id-965 .page .entry-title, .page-title{
182

    
183
		margin-top:500px;
184
	}
185
	.page-id-638 .page .entry-title, .page-title{
186

    
187
		margin-top:500px;
188
	}
189
	.page-id-52 .page .entry-title, .page-title{
190

    
191
		margin-top:500px;
192
	}
193
	.page-id-100 .page .entry-title, .page-title{
194

    
195
		margin-top:500px;
196
	}
197
	.page-id-51 .page .entry-title, .page-title{
198

    
199
		margin-top:500px;
200
	}
201
	.page-id-99 .page .entry-title, .page-title{
202

    
203
		margin-top:500px;
204
	}
205
	.langlit a{color: #ff7c45;}
206
	.mfacw a{color: #ffe85c;}
207
	.seceng a{color: #00d9ff;}
208
	
209
	.page-id-57 .deptlogo{
210
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/10/projec-tseriesbanner.jpg");
211
		background-repeat: no-repeat;
212
		position: absolute;
213
		top: 90px;
214
		left: 0px;
215
		width:100%;
216
  		height:400px;
217
		display: block;
218
	}
219
	.page-id-56 .deptlogo{
220
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/10/literarymanbanner.jpg");
221
		background-repeat: no-repeat;
222
		position: absolute;
223
		top: 90px;
224
		left: 0px;
225
		width:100%;
226
  		height:400px;
227
		display: block;
228
	}
229
	
230
	.page-id-1579 .deptlogo{
231
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/10/graduate_banner.jpg");
232
		background-repeat: no-repeat;
233
		position: absolute;
234
		top: 90px;
235
		left: 0px;
236
		width:100%;
237
  		height:400px;
238
		display: block;
239
	}
240
	
241
	.page-id-1522 .deptlogo{
242
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/10/undergraduates_banner.jpg");
243
		background-repeat: no-repeat;
244
		position: absolute;
245
		top: 90px;
246
		left: 0px;
247
		width:100%;
248
  		height:400px;
249
		display: block;
250
	}
251
	
252
	.page-id-99 .deptlogo{
253
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/MA_LanguageLiteracy2.jpg");
254
		background-repeat: no-repeat;
255
		position: absolute;
256
		top: 90px;
257
		left: 0px;
258
		width:100%;
259
  		height:400px;
260
		display: block;
261
	}
262
	
263
	.page-id-53 .deptlogo{
264
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/BA_Creative_Writing2.jpg");
265
		background-repeat: no-repeat;
266
		position: absolute;
267
		top: 90px;
268
		left: 0px;
269
		width:100%;
270
  		height:400px;
271
		display: block;
272
	}
273
	.page-id-51 .deptlogo{
274
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/BA_Literature2.jpg");
275
		background-repeat: no-repeat;
276
		position: absolute;
277
		top: 90px;
278
		left: 0px;
279
		width:100%;
280
  		height:400px;
281
		display: block;
282
	}
283
	.page-id-100 .deptlogo{
284
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/MA_Literature2.jpg");
285
		background-repeat: no-repeat;
286
		position: absolute;
287
		top: 90px;
288
		left: 0px;
289
		width:100%;
290
  		height:400px;
291
		display: block;
292
	}
293
	.page-id-638 .deptlogo{
294
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/MFACW_2.jpg");
295
		background-repeat: no-repeat;
296
		position: absolute;
297
		top: 90px;
298
		left: 0px;
299
		width:100%;
300
  		height:400px;
301
		display: block;
302
	}
303
	.page-id-965 .deptlogo{
304
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/08/MA_LanguageLiteracy_Banner.jpg");
305
		background-repeat: no-repeat;
306
		position: absolute;
307
		top: 90px;
308
		left: 0px;
309
		width:100%;
310
  		height:400px;
311
		display: block;
312
	}
313
	.page-id-52 .deptlogo{
314
		background: url("https://english.ccny.cuny.edu/wp-content/uploads/2022/09/BA_SecondaryEnglish2.jpg");
315
		background-repeat: no-repeat;
316
		position: absolute;
317
		top: 90px;
318
		left: 0px;
319
		width:100%;
320
  		height:400px;
321
		display: block;
322
	}
323
	.TopCTA{
324
		border: 3px #000 solid;
325
		margin: 0 auto;
326
		padding: 50px;
327
	}
328
	.page .entry-cover-image:after, .single .entry-cover-image:after{
329
		background-image: url;("https://english.ccny.cuny.edu/wp-content/uploads/2022/08/MA-Lit.jpg")!important;
330
		width: 175px!important;
331
		height: 175px!important;
332
		position: fixed!important;
333
		top: 100px!important;
334
		left: 30px!important;
335
		background-image: linear-gradient(to bottom,rgba(0,0,0,1) 0,rgba(0,0,0,.1) 100%)!important;
336
		
337
	}
338
	@media (max-width: 767px) {
339
  .page .popout{
340
		
341
		font-size: 1.5em!important;
342
		
343
	}
344
}
345
	
346
	@media (max-width: 767px) {
347
  .page .entry-title, .page-title{
348
		
349
		font-size: 2.5em!important;
350
		line-height: 50px;
351
	}
352
}
353
	@media (max-width: 767px) {
354
	.deptlogo{
355
		background-repeat: no-repeat;
356
		position: absolute;
357
		top: 0px!important;
358
		left: 0px;
359
		width:100%;
360
  		height:400px;
361
		display: block;
362
		
363
	}
364
	}
365
	@media (max-width: 767px) {
366
			.page-id-57 .page .entry-title, .page-title{
367
				margin-top:400px;
368
	
369
		}
370
	}
371
	@media (max-width: 767px) {
372
			.page-id-56 .page .entry-title, .page-title{
373
				margin-top:400px;
374
	
375
		}
376
	}
377
	
378
	@media (max-width: 767px) {
379
			.page-id-1579 .page .entry-title, .page-title{
380
				margin-top:400px;
381
	
382
		}
383
	}
384
	@media (max-width: 767px) {
385
			.page-id-1522 .page .entry-title, .page-title{
386
				margin-top:400px;
387
	
388
		}
389
	}
390
	@media (max-width: 767px) {
391
		.page-id-53 .page .entry-title, .page-title{
392
				margin-top:400px;
393
	
394
		}
395
	}
396
	@media (max-width: 767px) {
397
		.page-id-51 .page .entry-title, .page-title{
398
				margin-top:400px;
399
	
400
		}
401
	}
402
	@media (max-width: 767px) {
403
		.page-id-100 .page .entry-title, .page-title{
404
				margin-top:400px;
405
	
406
		}
407
	}
408
	@media (max-width: 767px) {
409
		.page-id-638 .page .entry-title, .page-title{
410
				margin-top:400px;
411
	
412
		}
413
	}
414
	@media (max-width: 767px) {
415
		.page-id-965 .page .entry-title, .page-title{
416
				margin-top:400px;
417
	
418
		}
419
	}
420
	@media (max-width: 767px) {
421
		.page-id-52 .page .entry-title, .page-title{
422
				margin-top:400px;
423
	
424
		}
425
	}
426
	@media (max-width: 767px) {
427
		.page-id-99 .page .entry-title, .page-title{
428
				margin-top:400px;
429
	
430
		}
431
	}
432
	@media (max-width: 767px) {
433
		.page-id-261 .page body.has-header-image .site-title, body.has-header-image .site-title a, body.has-header-video .site-title, body.has-header-video .site-title a{
434
				font-size:30px!important;
435
	
436
		}
437
	}
438
	
439
	
440
	
441
	.custom-logo-link img{margin-left:55px;}
442
	.entry-content p{font-size: 20px;}
443
	.acsb{display: none;}
444
	.wp-block-latest-posts__post-author{display: none;}
445
	.wp-block-latest-posts.wp-block-latest-posts__list li{list-style-type: none;}
446
	.entry-content ul li{color: #666666;}
447
	.entry-author{display:none!important;}
448
	.entry-meta span{margin-left: -20px;}
449
	.site-info a{display: none;}
450
	.post-author{display: none;}
451
</style>
452

    
453
<script>function responsive_post_link_attr( $output ) {
454
	return str_replace( '<a ', "<a aria-label='Read More'", $output );
455
}
456

    
457
add_filter( 'responsive_post_link', 'responsive_post_link_attr', 20 );
458
</script>
(2-2/2)