Skip to content

Prose Picture style. #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,118 @@ body {
grid-column: 1 / 4;
}

.prose :is(h1, h2, h3, h4, h5, h6) a {
text-decoration: none !important;
}

.prose :is(h1, h2, h3, h4, h5, h6) a:hover {
text-decoration: underline !important;
}

.prose :is(h1, h2, h3, h4, h5, h6) a:focus {
outline: 4px solid #0073e6;
outline-offset: 5px;
}

.prose picture img,
.prose > img,
.prose p img {
width: 100%;
height: auto;
border-width: 4px;
border-color: white;
border-style: solid;
border-radius: 0.5rem;
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

ul.milestone-done li {
position: relative;
list-style: none;
}

ul.milestone-done li::before {
content: "\2705 " !important;
background: none !important;
}

ul.milestone-todo li {
position: relative;
list-style: none;
}

ul.milestone-todo li::before {
content: "\1F4DD " !important;
background: none !important;
}

img.findaid-accent-round-marker {
width: 120px;
min-width: 70px;
padding: 0 10px;
display: inline-block;
margin: 0;
}

table.finaid-timeline td {
padding-bottom: 1rem;
}

div.finaid-sponsor {
width: 50%;
margin: 0 auto 2rem auto;
}

summary h4::after {
content: "👇";
}

.list-disc li {
list-style: none;
position: relative;
}

ul.list-disc li::before {
content: "";
display: inline-block;
width: 25px;
height: 20px;
/*background-image: url(/img/list-item.svg);*/
background-size: 100%;
background-repeat: no-repeat;
background-position: 50% 50%;
position: absolute;
left: -30px;
top: 0.2em;
}

ul ul.list-disc li {
list-style: disc;
}
ul ul.list-disc li::before {
display: none;
}

p.tick::before {
content: "\2705 ";
padding: 0.5rem;
}

p.cross::before {
content: "\274C ";
padding: 0.5rem;
}

p.tick::after,
p.cross::after {
content: "\23EC";
display: inline-block;
font-size: 1.3em;
margin-left: 0.4em;
}

/* typography */
.prose {
h1,
Expand Down