Skip to content

Instantly share code, notes, and snippets.

@lovasoa
Last active August 16, 2024 13:54
Show Gist options
  • Save lovasoa/86efef815c117426c8e3a6f82eeba0d4 to your computer and use it in GitHub Desktop.
Save lovasoa/86efef815c117426c8e3a6f82eeba0d4 to your computer and use it in GitHub Desktop.
learnsqlpage.com
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Fira+Code&display=swap');
:root {
--primary-color: #2d3748;
--secondary-color: #718096;
--accent-color: #3182ce;
--background-color: #f3f9fc;
--heading-color: #1a202c;
--text-color: #3a4558;
--border-color: #e2e8f0;
--pre-bg-color: #2d3748;
--pre-text-color: #f7fafc;
--pre-border-color: #4a5568;
--font-title: serif;
--font-main: 'Poppins', sans-serif;
--font-monospace: 'Fira Code', monospace;
--font-size-base: 21px;
--font-size-small: 0.875rem;
--line-height: 1.8;
--spacing-unit: 1rem;
--max-width: 900px;
--sidebar-width: 250px;
}
html, body {
font-family: var(--font-main);
font-size: var(--font-size-base);
line-height: var(--line-height);
color: var(--text-color);
background-color: var(--background-color);
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding: var(--spacing-unit);
}
h1, h2, h3, h4, h5 {
font-family: var(--font-title);
color: var(--heading-color);
margin-bottom: var(--spacing-unit);
line-height: 1.2;
font-weight: 600;
}
h1 {
font-size: 2.5rem;
margin-bottom: calc(var(--spacing-unit) * 2);
text-align: left;
}
h2 {
font-size: 2rem;
border-bottom: 2px solid var(--accent-color);
padding-bottom: 0.5rem;
margin-bottom: 1.5rem;
margin-top: 1.8em;
}
h3 {
font-size: 1.5rem;
margin-bottom: var(--spacing-unit);
}
h4, h5 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
p, td, li {
font-size: var(--font-size-base);
margin: 0 0 var(--spacing-unit) 0;
line-height: var(--line-height);
display: block;
}
tt {
font-family: var(--font-monospace);
color: var(--accent-color);
background-color: #edf2f7;
padding: 0.25rem 0.5rem;
border-radius: 4px;
}
pre {
font-family: var(--font-monospace);
font-size: var(--font-size-small);
background-color: var(--pre-bg-color);
color: var(--pre-text-color);
padding: var(--spacing-unit);
border: 1px solid var(--pre-border-color);
border-radius: 4px;
overflow-x: auto;
margin-bottom: var(--spacing-unit);
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.toc1, .toc2, .toc3, .toc4 {
font-weight: 600;
text-decoration: none;
display: block;
padding: 0.25rem 0;
border-radius: 4px;
transition: background-color 0.3s ease, color 0.3s ease;
margin: 0;
}
.toc1 + br, .toc2 + br, .toc3 + br, .toc4 + br {
line-height: 0;
}
.toc1:hover, .toc2:hover, .toc3:hover, .toc4:hover {
background-color: var(--accent-color);
color: var(--background-color);
text-decoration: none;
}
.toc1 {
font-size: 1rem;
padding: .1em .7em;
}
.toc2 {
padding-left: 1rem;
font-size: .6em;
padding: 0 1em;
}
.toc3 {
font-size: 0.875rem;
padding-left: 2rem;
}
.toc4 {
font-size: 0.8125rem;
padding-left: 3rem;
color: var(--secondary-color);
}
.output {
color: var(--text-color);
font-weight: normal;
}
.note {
background-color: #fefcbf;
padding: var(--spacing-unit);
border: 1px solid var(--border-color);
border-radius: 4px;
margin: 1.5rem 0;
}
.tail {
color: var(--secondary-color);
font-size: var(--font-size-small);
margin-top: var(--spacing-unit);
text-align: center;
}
a {
color: var(--accent-color);
text-decoration: none;
transition: color 0.3s ease;
padding: .2em;
border-radius: 4px;
}
a:hover {
background: var(--heading-color);
text-decoration: underline;
}
button {
padding: 0.75rem 1.5rem;
font-size: var(--font-size-small);
color: var(--background-color);
background-color: var(--accent-color);
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
background-color: var(--heading-color);
transform: scale(1.05);
}
img {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: .1s;
}
img:hover {
border-radius: 4px;
transform: scale(1.05);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
table, tbody, th, tr, td {
display: block;
width: 100%;
max-width: 45rem;
margin: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment