Skip to content
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

Style fixes #30

Merged
merged 5 commits into from
Dec 7, 2020
Merged
Changes from all 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
137 changes: 90 additions & 47 deletions src/Resources/public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
body {
font-size: 1rem;
background-color: var(--light-gray);
font-family: 'Inter', Helvetica, sans-serif;
font-family: "Inter", Helvetica, sans-serif;
color: var(--dark-gray);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down Expand Up @@ -110,22 +110,47 @@ main .content > * + h6 {
*/
main .content a {
color: var(--secondary-color);
text-decoration: underline;
font-weight: 500;
text-decoration: none;
font-weight: 600;
transition: all ease-in-out 0.25s;
}

main .content a:hover {
color: #277b80;
color: var(--primary-color);
}
main .content p a,
main .content ul:not(.breadcrumb) a,
main .content ol a,
main .content blockquote a {
position: relative;
display: inline-block;
}
main .content p a::after,
main .content ul:not(.breadcrumb) a::after,
main .content ol a::after,
main .content blockquote a::after {
content: "";
position: absolute;
width: 100%;
transform: scaleX(0);
height: 2px;
bottom: 0;
left: 0;
background-color: var(--primary-color);
transform-origin: bottom right;
transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

main .content *:not(.breadcumb) a:hover::after {
transform: scaleX(1);
transform-origin: bottom left;
}

/*
* Lists
*/
main .content ol,
main .content ul {
list-style: none;
padding: 0;
main .content ol ::marker,
main .content ul ::marker {
color: var(--secondary-color);
}

main .content ol {
Expand All @@ -136,33 +161,10 @@ main .content ol li {
counter-increment: my-counter;
}

main .content ol li,
main .content ul:not(.breadcrumb) li {
position: relative;
padding-left: 1.25rem;
}

main .content ol li::before {
content: counter(my-counter) ". ";
}

main .content ol li::before,
main .content ul:not(.breadcrumb) li::before {
position: absolute;
left: 0;
padding-right: 0.5rem;
color: var(--secondary-color);
margin-right: 0.75rem;
display: inline-block;
font-weight: 700;
}

main .content ul:not(.breadcrumb) li::before {
content: "•";
}

main .content ol > * + *,
main .content ul:not(.breadcrumb) > * + * {
main .content li ol li,
main .content ul:not(.breadcrumb) > * + *,
main .content ul:not(.breadcrumb) > li > ul {
margin-top: 1rem;
}

Expand All @@ -175,7 +177,7 @@ table {
display: block;
max-width: -moz-fit-content;
max-width: fit-content;
margin: 1rem auto;
margin: 1rem 0;
overflow-x: auto;
white-space: nowrap;
}
Expand All @@ -201,10 +203,6 @@ main .content .breadcrumb {
font-size: 0.875rem;
}

main .content .breadcrumb-item a {
color: var(--secondary-color);
}

main .content .breadcrumb-item.active {
color: #9ca0a2;
margin-top: 0;
Expand Down Expand Up @@ -339,33 +337,78 @@ main .content blockquote {
}

.navbar .searchform .form-control:focus {
box-shadow:
0 0 5px 0 var(--secondary-color),
inset 0 -2px var(--secondary-color);
box-shadow: 0 0 5px 0 var(--secondary-color), inset 0 -2px var(--secondary-color);
}

/*
* Code
*/
pre[class*=language-],
pre[class*="language-"],
code {
-webkit-font-smoothing: auto;
font-size: 0.875rem;
}

pre[class*=language-] {
pre[class*="language-"] {
border-radius: 5px;
margin-bottom: 1rem;
background: var(--black);
}

* > pre[class*=language-] {
* > pre[class*="language-"] {
margin-top: 1.5rem;
}

code {
*:not([class*="language-"]) > code {
color: #9565d4;
background: var(--medium-gray);
padding: 3px 5px;
border-radius: 3px;
}

/*
* Notes
*/
pre[class*="language-warning"],
pre[class*="language-note"] {
position: relative;
padding: 3rem 1rem 1rem;
font-family: "Inter", Helvetica, sans-serif;
}
code[class*=language-warning], pre[class*=language-warning], code[class*=language-note], pre[class*=language-note]{
color: rgba(0, 0, 0, 0.7);
}

pre[class*="language-warning"] code[class*="language-warning"],
pre[class*="language-note"] code[class*="language-note"] {
font-family: "Inter", Helvetica, sans-serif;
white-space: normal;
-webkit-font-smoothing: antialiased;
}
pre[class*="language-warning"]::before,
pre[class*="language-note"]::before {
position: absolute;
top: 0;
left: 0;
padding: 0.5rem 1rem;
width: 100%;
color: rgba(0, 0, 0, 0.65);
font-size: 0.75rem;
font-weight: 500;
}
pre[class*="language-warning"] {
background: #fff4df;
border: 1px solid #ffdca8;
}
pre[class*="language-note"] {
background: #e0ecf9;
border: 1px solid #bfdfff;
}
pre[class*="language-warning"]::before {
content: "🟠 Warning";
background: #ffe4bc;
}
pre[class*="language-note"]::before {
content: "🔵 Note";
background: #c8e2fd;
}