Skip to content

Instantly share code, notes, and snippets.

@LeonardoDSSilva
Created June 12, 2024 13:22
Show Gist options
  • Save LeonardoDSSilva/f0fe1100a997f1461cef72f8e9fb5f7e to your computer and use it in GitHub Desktop.
Save LeonardoDSSilva/f0fe1100a997f1461cef72f8e9fb5f7e to your computer and use it in GitHub Desktop.
syt.css
@media print {
@page {
size: A4;
margin: 0.5em;
}
.sec_disciplina:not(:first-of-type) {
page-break-before: always;
}
.sec_fornecedores:nth-of-type(2n) {
page-break-after: always;
}
/* h2 {
page-break-inside: avoid;
}
* {
font-size: 12px;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
p {
font-size: 12px;
}
table {
font-size: 12px;
}
img {
max-width: 100%;
} */
}
html {
font-size: 16px;
font-family: "Source Sans Pro", sans-serif;
color: rgb(49, 51, 63);
line-height: 1.5;
}
body {
margin: 0px;
padding: 0px;
}
header {
background-color: #f8f9fa;
padding: 10px 0px;
text-align: center;
}
footer {
background-color: #f8f9fa;
padding: 10px 0px;
text-align: center;
}
h1 {
font-weight: 700;
padding: 1rem 0px;
margin: 0px;
}
h2 {
font-weight: 600;
padding: 1rem 0px;
margin: 0px;
}
h3 {
font-weight: 600;
padding: 1rem 0px;
margin: 0px;
}
h4 {
font-weight: 600;
padding: 1rem 0px;
margin: 0px;
}
nav {
margin-bottom: 50px;
text-align: center;
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 10px 25px;
gap: 40px;
height: 10px;
}
.card {
margin: 10px;
padding: 10px;
border-radius: 5px;
border: 1px solid rgba(49, 51, 63, 0.2);
}
section:first-child {
margin-top: 0px;
display: flex;
flex-direction: row;
}
.grp {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.grp>div {
width: 100%;
min-width: 75px;
}
.grp_titulo {
display: grid;
grid-template-columns: .5fr auto;
grid-gap: 10px;
}
table {
border-collapse: collapse;
margin: 10px;
width: calc(100% - 20px);
}
table,
th,
td {
border: 1px solid rgba(49, 51, 63, 0.2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment