mirror of
https://github.com/NohamR/Code-to-PDF.git
synced 2026-05-24 19:58:50 +00:00
174 lines
2.1 KiB
CSS
174 lines
2.1 KiB
CSS
body {
|
|
font-family: 'Roboto', sans-serif;
|
|
margin: 0px;
|
|
}
|
|
|
|
select {
|
|
padding: 6px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
padding-bottom: 20px;
|
|
color: white;
|
|
background-color: #222831;
|
|
padding: 20px;
|
|
margin: -20px -20px 20px -20px;
|
|
}
|
|
|
|
.options {
|
|
display: flex;
|
|
column-gap: 20px;
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
row-gap: 14px;
|
|
}
|
|
|
|
input {
|
|
padding: 6.5px;
|
|
border-radius: 5px;
|
|
border-width: 1px;
|
|
}
|
|
|
|
.options > * {
|
|
flex-grow: 2;
|
|
flex: 1 1 0px;
|
|
}
|
|
|
|
button {
|
|
border-width: 0;
|
|
background-color: dodgerblue;
|
|
color: white;
|
|
padding: 6px;
|
|
min-width: 120px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
button:active {
|
|
background-color: #5584ac;
|
|
}
|
|
|
|
textarea {
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
resize: none;
|
|
flex-grow: 1;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
.hide-from-print {
|
|
height: calc(100% - 40px);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
pre {
|
|
margin: 0;
|
|
}
|
|
|
|
#code-container {
|
|
display: flex;
|
|
margin: 0 -20px;
|
|
font-family: 'Fira Code', monospace;
|
|
}
|
|
|
|
#document-title {
|
|
display: none;
|
|
}
|
|
|
|
code {
|
|
font-size: 14px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
#line-nums {
|
|
width: auto;
|
|
font-size: 14px;
|
|
padding-left: 11px;
|
|
padding-top: 13px;
|
|
padding-bottom: 4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
#code-div {
|
|
background-color: #c9d1d9;
|
|
width: auto;
|
|
flex: 1;
|
|
display: inline-block;
|
|
}
|
|
|
|
#code {
|
|
margin-left: 2px;
|
|
padding-bottom: 22px;
|
|
}
|
|
|
|
#print-area {
|
|
padding: 20px;
|
|
display: none;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media print {
|
|
body {
|
|
color-adjust: exact;
|
|
-webkit-print-color-adjust: exact;
|
|
}
|
|
|
|
#document-title {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#print-area {
|
|
display: block;
|
|
}
|
|
|
|
#code-container {
|
|
margin-top: -20px;
|
|
}
|
|
|
|
.hide-from-print {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.github-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-left: 10px;
|
|
vertical-align: middle;
|
|
float: right;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #888;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|