nomilo/public/styles/zone.css

184 lines
3 KiB
CSS
Raw Permalink Normal View History

2023-02-22 15:58:55 +00:00
nav.secondary ul {
display: flex;
margin: 0;
list-style: none;
padding: 0;
}
nav.secondary li {
margin-right: 1rem;
}
2023-02-22 23:02:49 +00:00
main > section {
max-width: 120ch;
}
header {
display: flex;
margin: 1rem 0;
}
h2 {
margin: 0;
flex-grow: 1;
}
2023-02-25 21:42:51 +00:00
2023-02-22 23:02:49 +00:00
header > :not(:last-of-type) {
margin-right: 2ch;
}
2023-02-25 21:42:51 +00:00
.zone-content article.rrsets-per-name {
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-gap: 2ch;
margin: .5rem 0;
}
.zone-content article.rrsets-per-name:not(:last-of-type) {
border-bottom: 2px solid rgb(var(--color-hightlight-2));
}
.zone-content h3.record-name,
.zone-content h4.record-type {
2023-02-22 23:02:49 +00:00
margin: 0;
font-weight: normal;
font-size: 1rem;
}
2023-02-25 21:42:51 +00:00
.zone-content h3.record-name {
grid-column: 1 / 3;
2023-02-22 23:02:49 +00:00
}
2023-02-25 21:42:51 +00:00
.zone-content div.rrsets-per-type {
grid-column: 3 / 7;
2023-02-22 23:02:49 +00:00
}
2023-02-25 21:42:51 +00:00
.zone-content article.rrset-per-type {
grid-template-columns: repeat(4, 1fr);
display: grid;
grid-gap: 2ch;
2023-02-22 23:02:49 +00:00
}
2023-02-25 21:42:51 +00:00
.zone-content h4.record-type {
grid-column: 1 / 2;
2023-02-22 23:02:49 +00:00
}
2023-02-25 21:42:51 +00:00
.zone-content ul.rrset-rdata {
2023-02-22 23:02:49 +00:00
padding: 0;
margin: 0;
list-style-type: none;
2023-02-25 21:42:51 +00:00
grid-column: 2 / 5;
2023-02-22 23:02:49 +00:00
}
2023-02-25 21:42:51 +00:00
.zone-content ul.rrset-rdata dl {
2023-02-22 23:02:49 +00:00
display: grid;
grid-template: auto / max-content 1fr;
}
2023-02-25 21:42:51 +00:00
.zone-content ul.rrset-rdata dd {
2023-02-22 23:02:49 +00:00
margin: 0;
}
2023-02-25 21:42:51 +00:00
.zone-content ul.rrset-rdata dt span {
2023-02-22 23:02:49 +00:00
display: inline-block;
2023-02-25 01:53:10 +00:00
background-color: rgb(var(--color-hightlight-1));
2023-02-22 23:02:49 +00:00
padding: 0.1em 0.5em;
border-radius: 0.5em;
margin-right: 0.1rem;
font-size: .7rem;
}
2023-02-25 15:44:01 +00:00
.new-record form {
2023-02-25 01:53:10 +00:00
width: auto;
}
2023-02-25 15:44:01 +00:00
.new-record form > div.form-row > * {
2023-02-25 01:53:10 +00:00
flex-grow: 1;
}
2023-02-25 15:44:01 +00:00
.new-record form > div.form-row {
2023-02-22 23:02:49 +00:00
display: flex;
2023-02-25 01:53:10 +00:00
flex-wrap: wrap;
2023-02-25 15:44:01 +00:00
gap: 2ch;
2023-02-22 23:02:49 +00:00
}
2023-02-25 15:44:01 +00:00
.new-record form label {
margin-top: .25rem;
2023-02-25 01:53:10 +00:00
}
form div.input-group {
2023-02-22 23:02:49 +00:00
display: flex;
flex-direction: column;
}
2023-02-25 01:53:10 +00:00
form div.combined-input {
display: flex;
2023-02-22 23:02:49 +00:00
}
2023-02-25 01:53:10 +00:00
form div.combined-input input {
height: min-content;
2023-02-22 23:02:49 +00:00
flex-grow: 1;
2023-02-25 01:53:10 +00:00
}
form div.combined-input span {
2023-02-22 23:02:49 +00:00
font-size: .8rem;
2023-02-25 01:53:10 +00:00
padding: .35rem;
border: 1px solid rgb(var(--color-primary));;
border-left: none;
background: rgba(var(--color-hightlight-2),.2);
2023-02-22 23:02:49 +00:00
}
2023-02-25 01:53:10 +00:00
form.disabled {
display: none;
2023-02-22 23:02:49 +00:00
}
2023-02-25 15:44:01 +00:00
.new-record form button,
.new-record form input[type="submit"] {
2023-02-25 01:53:10 +00:00
margin-right: 1ch;
margin-top: .75rem;
}
2023-02-25 15:44:01 +00:00
.new-record header {
margin-bottom: 0;
2023-02-25 01:53:10 +00:00
}
2023-02-25 15:44:01 +00:00
.new-record form .preview {
2023-02-25 01:53:10 +00:00
margin: .5rem 0;
border: 1px solid rgb(var(--color-primary));
}
2023-02-25 15:44:01 +00:00
.new-record form .preview p:first-of-type {
margin-top: .5rem;
}
.new-record form .preview p:last-of-type {
margin-bottom: .5rem;
}
.new-record form .preview p {
display: flex;
}
.new-record form .preview code {
2023-02-25 01:53:10 +00:00
padding: 0 .5rem;
2023-02-25 15:44:01 +00:00
flex: 1;
2023-02-22 23:02:49 +00:00
}
2023-02-25 15:44:01 +00:00
.new-record form .preview img {
padding: 0 .25rem;
border-right: 1px solid #1b841b;
}
.new-record form .preview .addition {
background: #d9fbd9;
}
.new-record form .preview h3 {
2023-02-25 01:53:10 +00:00
margin: 0;
padding: .0rem .5rem 0 .5rem;;
font-size: 1rem;
2023-02-25 15:44:01 +00:00
font-weight: normal;
background: rgb(var(--color-primary));
color: var(--color-contrast)
2023-02-22 23:02:49 +00:00
}