Skip to content

Commit 8d5ec42

Browse files
committed
Yarn format
1 parent ed8a8e1 commit 8d5ec42

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+75
-75
lines changed

assets/css/tw.css

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
.featured-content > h2 {
28-
@apply mt-8 mb-2 font-sans text-4xl font-semibold leading-tight;
28+
@apply mb-2 mt-8 font-sans text-4xl font-semibold leading-tight;
2929
}
3030

3131
.featured-content > h3 {
@@ -34,19 +34,19 @@
3434

3535
.featured-content > h3:before {
3636
content: "";
37-
@apply mt-16 mb-4 block h-1 w-12 bg-yellow;
37+
@apply mb-4 mt-16 block h-1 w-12 bg-yellow;
3838
}
3939

4040
.featured-content > h4 {
41-
@apply mt-8 mb-4 font-sans text-lg font-semibold leading-tight;
41+
@apply mb-4 mt-8 font-sans text-lg font-semibold leading-tight;
4242
}
4343

4444
.featured-content > h5 {
45-
@apply mt-6 mb-2 text-base font-semibold leading-tight;
45+
@apply mb-2 mt-6 text-base font-semibold leading-tight;
4646
}
4747

4848
.featured-content > h6 {
49-
@apply mt-4 mb-1 text-base italic leading-tight;
49+
@apply mb-1 mt-4 text-base italic leading-tight;
5050
}
5151

5252
.featured-content > ul {
@@ -58,7 +58,7 @@
5858
}
5959

6060
.article-content > :where(p, aside, figure, ol, ul) {
61-
@apply mt-4 mb-4;
61+
@apply mb-4 mt-4;
6262
}
6363

6464
.article-content > :where(iframe) {
@@ -120,7 +120,7 @@
120120
}
121121

122122
.article-content :where(code) {
123-
@apply -my-[2px] mx-1 rounded-sm bg-s-2 py-[2px] px-1 text-red-8;
123+
@apply -my-[2px] mx-1 rounded-sm bg-s-2 px-1 py-[2px] text-red-8;
124124
}
125125
.article-content :where(a) {
126126
@apply text-navy underline;

layouts/_default/staff-page.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
{{ end }}
3939

4040
{{ define "main" }}
41-
<header class="bg-black py-14 px-3 text-white">
41+
<header class="bg-black px-3 py-14 text-white">
4242
<div
43-
class="mx-auto max-w-screen-xl items-center gap-y-3 gap-x-5 md:grid md:min-h-[110px] md:grid-cols-12"
43+
class="mx-auto max-w-screen-xl items-center gap-x-5 gap-y-3 md:grid md:min-h-[110px] md:grid-cols-12"
4444
>
4545
<h1
4646
class="col-span-5 col-start-2 row-span-1 row-start-1 font-serif text-[45px] font-black uppercase leading-none"
@@ -56,7 +56,7 @@
5656
</header>
5757
<section class=" bg-s-0">
5858
<div
59-
class="mx-auto max-w-screen-lg py-14 px-5 font-raleway text-lg font-medium lg:px-0"
59+
class="mx-auto max-w-screen-lg px-5 py-14 font-raleway text-lg font-medium lg:px-0"
6060
>
6161
{{ with .Page.Params.subhed }}
6262
<h2 class="mb-5 text-5xl font-black">{{ . }}</h2>
@@ -95,7 +95,7 @@ <h2 class="mb-5 text-5xl font-black">{{ . }}</h2>
9595
{{ end }}
9696
{{ end }}
9797
{{ end }}
98-
<section class="bg-s-2 py-10 px-2 font-raleway">
98+
<section class="bg-s-2 px-2 py-10 font-raleway">
9999
<div class="mx-auto my-14 w-full max-w-screen-xl">
100100
<h2
101101
class="text-4xl font-black uppercase leading-none text-s-6 md:text-6xl"

layouts/partials/embed/cta.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ <h2 class="mt-8 px-4 text-center font-semibold sm:mt-12 sm:text-lg">
3737
>
3838
<a
3939
:href="url"
40-
class="inline-block rounded bg-red-6 py-3 px-4 text-white hover:bg-red-5"
40+
class="inline-block rounded bg-red-6 px-4 py-3 text-white hover:bg-red-5"
4141
data-ga-category="button"
4242
target="_blank"
4343
x-rich-text="_('cta', 'Just Do It!')"
4444
></a>
4545
</div>
46-
<div class="mt-10 mb-4 mr-3 text-right text-s-9 md:mt-4">
46+
<div class="mb-4 mr-3 mt-10 text-right text-s-9 md:mt-4">
4747
<a href="/" target="_blank">
4848
<svg class="inline-block h-8 w-48 fill-current">
4949
<use href="#banner-svg" aria-label="Spotlight PA logo"></use>

layouts/partials/embed/donate.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ <h2 class="mt-8 px-4 text-center font-semibold sm:mt-12 sm:text-lg">
3333
>
3434
<a
3535
href="/donate/"
36-
class="inline-block rounded bg-red-6 py-3 px-4 text-white hover:bg-red-5"
36+
class="inline-block rounded bg-red-6 px-4 py-3 text-white hover:bg-red-5"
3737
data-ga-category="button"
3838
target="_blank"
3939
x-rich-text="_('cta_text', 'Click to Contribute')"
4040
></a>
4141
</div>
42-
<div class="mt-10 mb-4 mr-3 text-right text-s-9 md:mt-4">
42+
<div class="mb-4 mr-3 mt-10 text-right text-s-9 md:mt-4">
4343
<a href="/" target="_blank">
4444
<svg class="inline-block h-8 w-48 fill-current">
4545
<use href="#banner-svg" aria-label="Spotlight PA logo"></use>

layouts/partials/embed/newsletter.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</svg>
6262
</span>
6363
</p>
64-
<p class="mt-2 sm:mt-0 sm:ml-1">
64+
<p class="mt-2 sm:ml-1 sm:mt-0">
6565
<button
6666
class="w-full rounded border-2 border-red bg-red px-8 py-2 font-semibold uppercase tracking-widest text-white outline-none ring-red-7 focus:ring-2"
6767
type="submit"
@@ -130,7 +130,7 @@
130130
</label>
131131
</p>
132132
</div>
133-
<div class="mt-10 mb-4 mr-3 text-right text-s-9 md:mt-4">
133+
<div class="mb-4 mr-3 mt-10 text-right text-s-9 md:mt-4">
134134
<a href="/" target="_blank">
135135
<svg class="inline-block h-8 w-48 fill-current">
136136
<use href="#banner-svg" aria-label="Spotlight PA logo"></use>

layouts/partials/embed/tips.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
In English
5555
</button>
5656
<div
57-
class="embed-prose px-6 pt-6 pb-4 text-lg leading-snug"
57+
class="embed-prose px-6 pb-4 pt-6 text-lg leading-snug"
5858
x-show="!showSpanish"
5959
x-rich-text="_('tip_text', '')"
6060
></div>
61-
<div x-cloak class="px-6 pt-6 pb-4 text-lg leading-snug" x-show="showSpanish">
61+
<div x-cloak class="px-6 pb-4 pt-6 text-lg leading-snug" x-show="showSpanish">
6262
¿Tienes información que debemos saber? <strong>Escríbenos.</strong>
6363
</div>
6464
<form

layouts/partials/tw/banner.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{{ if .Param "banner-active" }}
55
<section
6-
class="py-2 px-2 font-sans font-medium leading-tight md:leading-none"
6+
class="px-2 py-2 font-sans font-medium leading-tight md:leading-none"
77
data-ga-category="banner"
88
{{ with $bgColor }}
99
style="background-color: {{ . }} !important"

layouts/partials/tw/breadcrumbs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<nav
2-
class="mx-auto max-w-screen-lg py-3 px-5 text-base font-light"
2+
class="mx-auto max-w-screen-lg px-5 py-3 text-base font-light"
33
data-ga-category="breadcrumbs"
44
aria-label="breadcrumbs"
55
>

layouts/partials/tw/donate-cta.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ <h2 class="mt-8 text-center font-semibold sm:mt-12 sm:text-xl md:text-2xl">
3030
>
3131
<a
3232
href="/donate/"
33-
class="inline-block rounded bg-red-6 py-3 px-4 text-white hover:bg-red-5"
33+
class="inline-block rounded bg-red-6 px-4 py-3 text-white hover:bg-red-5"
3434
data-ga-category="button"
3535
target="_blank"
3636
>
3737
{{- $cta -}}
3838
</a>
3939
</div>
40-
<div class="mt-10 mb-4 mr-3 text-right text-s-9 md:mt-4">
40+
<div class="mb-4 mr-3 mt-10 text-right text-s-9 md:mt-4">
4141
<svg class="inline-block h-8 w-48 fill-current">
4242
<use href="#banner-svg" aria-label="Spotlight PA logo"></use>
4343
</svg>

layouts/partials/tw/donate-prefill-lg.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</div>
161161
</div>
162162
<div
163-
class="mt-12 mr-8 flex w-full flex-wrap justify-start gap-2 font-sans text-lg font-extrabold text-white sm:flex-nowrap"
163+
class="mr-8 mt-12 flex w-full flex-wrap justify-start gap-2 font-sans text-lg font-extrabold text-white sm:flex-nowrap"
164164
>
165165
<label class="my-2 mr-10 flex flex-row items-center md:my-0">
166166
Monthly

layouts/partials/tw/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a
1111
href="/donate/"
1212
class="
13-
rounded-lg bg-red py-3 px-4
13+
rounded-lg bg-red px-4 py-3
1414
font-sans text-base font-bold leading-none tracking-widest text-white
1515
ring-white transition-shadow duration-500 hover:shadow-beige
1616
"

layouts/partials/tw/frontpage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
href="/news/"
169169
class="
170170
inline-block
171-
rounded-lg bg-blue-6 py-3 px-4
171+
rounded-lg bg-blue-6 px-4 py-3
172172
font-sans text-base font-bold
173173
uppercase leading-none tracking-widest
174174
text-white shadow

layouts/partials/tw/inline-newsletter-box-sc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</svg>
4848
</span>
4949
</p>
50-
<p class="mt-4 sm:mt-0 sm:ml-1">
50+
<p class="mt-4 sm:ml-1 sm:mt-0">
5151
<button
5252
class="w-full rounded border-2 border-yellow-5 bg-yellow-4 px-8 py-2 font-bold uppercase tracking-widest text-black outline-none ring-yellow-6 focus:ring-2"
5353
type="submit"

layouts/partials/tw/inline-newsletter-box.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</svg>
4545
</span>
4646
</p>
47-
<p class="mt-4 sm:mt-0 sm:ml-1">
47+
<p class="mt-4 sm:ml-1 sm:mt-0">
4848
<button
4949
class="w-full rounded border-2 border-yellow-5 bg-yellow-4 px-8 py-2 font-bold uppercase tracking-widest text-black outline-none ring-yellow-6 focus:ring-2"
5050
type="submit"

layouts/partials/tw/inline-newsletter-form.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h2 class="mt-8 text-3xl font-extrabold">
2929
<p>
3030
<input
3131
id="{{ $idFname }}"
32-
class="block w-full appearance-none rounded border-2 border-s-4 bg-white py-2 px-4 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
32+
class="block w-full appearance-none rounded border-2 border-s-4 bg-white px-4 py-2 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
3333
type="text"
3434
name="FNAME"
3535
placeholder="William"
@@ -43,7 +43,7 @@ <h2 class="mt-8 text-3xl font-extrabold">
4343
<p>
4444
<input
4545
id="{{ $idLname }}"
46-
class="block w-full appearance-none rounded border-2 border-s-4 bg-white py-2 px-4 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
46+
class="block w-full appearance-none rounded border-2 border-s-4 bg-white px-4 py-2 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
4747
type="text"
4848
name="LNAME"
4949
placeholder="Penn"
@@ -56,7 +56,7 @@ <h2 class="mt-8 text-3xl font-extrabold">
5656
<p class="relative">
5757
<input
5858
id="{{ $idEmail }}"
59-
class="block w-full appearance-none rounded border-2 border-s-4 bg-white py-2 px-4 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
59+
class="block w-full appearance-none rounded border-2 border-s-4 bg-white px-4 py-2 tracking-wider text-s-8 placeholder-s-4 placeholder-opacity-100 outline-none ring-red-7 focus:ring-2"
6060
type="email"
6161
name="EMAIL"
6262
placeholder="[email protected]"

layouts/partials/tw/inline-newsletter-white-sc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</svg>
4343
</span>
4444
</p>
45-
<p class="mt-4 sm:mt-0 sm:ml-1">
45+
<p class="mt-4 sm:ml-1 sm:mt-0">
4646
<button
4747
class="w-full rounded border-2 border-yellow-5 bg-yellow-4 px-8 py-2 font-bold uppercase tracking-widest text-black outline-none ring-yellow-6 focus:ring-2"
4848
type="submit"

layouts/partials/tw/inline-newsletter-white.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</svg>
4242
</span>
4343
</p>
44-
<p class="mt-4 sm:mt-0 sm:ml-1">
44+
<p class="mt-4 sm:ml-1 sm:mt-0">
4545
<button
4646
class="w-full rounded border-2 border-yellow-5 bg-yellow-4 px-8 py-2 font-bold uppercase tracking-widest text-black outline-none ring-yellow-6 focus:ring-2"
4747
type="submit"

layouts/partials/tw/main-elections.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<section class="bg-white px-6 pt-16 pb-6" data-ga-category="header">
1+
<section class="bg-white px-6 pb-6 pt-16" data-ga-category="header">
22
{{ $banner := partial "helper/build-srcset" (dict
33
"filename" "2023/03/01j1-vcqr-md4q-wdkb.png"
44
"sizes" (slice
@@ -114,7 +114,7 @@ <h1 class="text-4xl font-semibold leading-none md:text-5xl">
114114
},
115115
}'
116116
@mouseover.once="import(url)"
117-
class="relative bg-election-green-darker px-6 pt-12 pb-16"
117+
class="relative bg-election-green-darker px-6 pb-16 pt-12"
118118
>
119119
{{ $sizes := slice
120120
(dict "width" 300 "height" 900)
@@ -147,7 +147,7 @@ <h1 class="text-4xl font-semibold leading-none md:text-5xl">
147147
<ul class="mt-8 flex flex-col gap-6 md:flex-row">
148148
{{ range .Param "dates" }}
149149
<li
150-
class="flex flex-1 flex-col rounded border border-s-4 bg-white py-4 px-6 shadow-inner"
150+
class="flex flex-1 flex-col rounded border border-s-4 bg-white px-6 py-4 shadow-inner"
151151
data-ga-category="{{ urlize .name }}"
152152
>
153153
<h3

layouts/partials/tw/main-state-college.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<p class="mt-8 text-center">
8181
<span
8282
class="
83-
rounded-lg bg-red py-3 px-4
83+
rounded-lg bg-red px-4 py-3
8484
font-bold uppercase leading-none tracking-widest
8585
text-white
8686
"
@@ -158,23 +158,23 @@
158158
{{ .Param "image-credit" }}
159159
</figcaption>
160160

161-
<section class="bg-white px-4 pt-8 pb-12 text-s-9">
161+
<section class="bg-white px-4 pb-12 pt-8 text-s-9">
162162
<article class="featured-content mx-auto w-full max-w-prose leading-relaxed">
163163
{{ .Content }}
164164
</article>
165165
</section>
166166

167-
<section class="bg-beige px-4 pt-8 pb-12 text-s-9">
167+
<section class="bg-beige px-4 pb-12 pt-8 text-s-9">
168168
<article class="mx-auto max-w-prose leading-relaxed">
169169
<h2
170170
id="donors"
171-
class="mt-8 -mb-6 font-sans text-4xl font-semibold leading-tight"
171+
class="-mb-6 mt-8 font-sans text-4xl font-semibold leading-tight"
172172
>
173173
Founding Donors
174174
</h2>
175175

176176
{{ range site.Data.statecollegesupporters }}
177-
<h3 class="mt-8 mb-4 font-sans text-3xl italic leading-none">
177+
<h3 class="mb-4 mt-8 font-sans text-3xl italic leading-none">
178178
{{- .Category -}}
179179
</h3>
180180
<div class="{{ cond (len .Items | lt 5) `sm:columns-2` `` }}">

layouts/partials/tw/main-transparency-tracker.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
<div class="-mx-4 bg-s-2 md:mx-0" data-ga-category="text">
4444
<article
45-
class=" article-content mx-auto max-w-screen-xl py-24 px-5 font-sans md:grid md:grid-cols-12 md:grid-rows-[auto_1fr] md:gap-y-3 md:gap-x-5"
45+
class=" article-content mx-auto max-w-screen-xl px-5 py-24 font-sans md:grid md:grid-cols-12 md:grid-rows-[auto_1fr] md:gap-x-5 md:gap-y-3"
4646
>
4747
{{ range $i, $blocks := .Params.blocks }}
4848
{{ $id := urlize .title }}

layouts/partials/tw/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{{ $sidebarNewsletter := .Param "sidebar-newsletter" | default "tw/rail-papost.html" }}
3131

3232

33-
<section class="bg-white px-4 pt-12 pb-6 text-s-9" id="article">
33+
<section class="bg-white px-4 pb-6 pt-12 text-s-9" id="article">
3434
<div class="{{ $gridClass }} mx-auto grid max-w-screen-lg">
3535
<article class="contents">
3636
<header

layouts/partials/tw/modal-newsletter-sc.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
Get all the top news and notes from State College & north-central PA.
5454
</h6>
5555

56-
<p class="absolute top-0 right-0 flex items-center p-4">
56+
<p class="absolute right-0 top-0 flex items-center p-4">
5757
<button
5858
class="group flex rounded-full text-white hover:text-orange focus:text-s-3"
5959
type="button"

layouts/partials/tw/modal-ribbon.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class="w-full border-b-2 border-t-2 font-sans"
4242
>
4343
<div
44-
class="mx-5 -mt-11 grid max-w-screen-xl grid-cols-6 items-start gap-x-5 md:mx-auto md:mr-auto md:ml-auto md:grid-cols-12"
44+
class="mx-5 -mt-11 grid max-w-screen-xl grid-cols-6 items-start gap-x-5 md:mx-auto md:ml-auto md:mr-auto md:grid-cols-12"
4545
>
4646
<button
4747
style="color: {{ $actionColor }};"
@@ -126,7 +126,7 @@ <h2 class=" text-2xl font-extrabold md:text-3xl lg:text-4xl">
126126
<label class="sr-only" for="{{ $idEmail }}">Email address</label>
127127
<input
128128
id="{{ $idEmail }}"
129-
class=" box-border w-full appearance-none rounded rounded-tl rounded-bl border border-black bg-white p-2 tracking-wider text-s-8 placeholder-s-6 placeholder-opacity-100 outline-none ring-blue-2 focus:ring-2 sm:w-7/12 sm:rounded-tr-none sm:rounded-br-none"
129+
class=" box-border w-full appearance-none rounded rounded-bl rounded-tl border border-black bg-white p-2 tracking-wider text-s-8 placeholder-s-6 placeholder-opacity-100 outline-none ring-blue-2 focus:ring-2 sm:w-7/12 sm:rounded-br-none sm:rounded-tr-none"
130130
@focus.once="hasFocused = true"
131131
type="email"
132132
name="EMAIL"
@@ -135,14 +135,14 @@ <h2 class=" text-2xl font-extrabold md:text-3xl lg:text-4xl">
135135
/>
136136
<button
137137
style="color: {{ $actionColor }};"
138-
class=" box-border w-5/12 rounded bg-black py-2 font-black tracking-wider hover:shadow sm:rounded-t-none sm:rounded-b sm:rounded-bl-none sm:rounded-tr md:px-8"
138+
class=" box-border w-5/12 rounded bg-black py-2 font-black tracking-wider hover:shadow sm:rounded-b sm:rounded-t-none sm:rounded-bl-none sm:rounded-tr md:px-8"
139139
type="submit"
140140
>
141141
Sign Up
142142
</button>
143143
</div>
144144
<div
145-
class=" col-span-3 col-start-1 rounded-b-sm border-t-2 bg-s-3 px-6 pt-5 pb-9"
145+
class=" col-span-3 col-start-1 rounded-b-sm border-t-2 bg-s-3 px-6 pb-9 pt-5"
146146
x-cloak
147147
x-show="hasFocused"
148148
x-transition:enter="transition ease-in-out duration-300"

layouts/partials/tw/modal-search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
>
3333
<header class="relative flex flex-none bg-black text-white">
3434
<h2
35-
class="mx-auto py-2 px-4 text-lg font-semibold uppercase leading-none tracking-wider"
35+
class="mx-auto px-4 py-2 text-lg font-semibold uppercase leading-none tracking-wider"
3636
>
3737
<span id="{{ $idSearch }}"> Search </span>
3838
</h2>

0 commit comments

Comments
 (0)