visualsubnetcalc/dist/main.css

142 lines
2.4 KiB
CSS
Raw Normal View History

:root {
--split-foreground: #000000;
--split-background: indianred;
--join-foreground: #000000;
--join-background: skyblue;
}
2023-05-10 07:40:12 +00:00
.container-xxl {
min-width: 576px;
}
#navigation a {
color:#000000;
text-decoration: none;
}
#subnet_input #network {
flex-grow: 0;
flex-basis: 11rem;
}
#subnet_input #netsize {
flex-grow: 0;
flex-basis: 4rem;
}
#calc {
vertical-align: middle;
}
#calc>tbody>tr>td, #calc>tbody>tr>th, #calc>tfoot>tr>td, #calc>tfoot>tr>th, #calc>thead>tr>td, #calc>thead>tr>th {
/* Equivalent to p-1 */
padding: 0.25rem;
/* Equivalent to p-2 */
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
/*
2023-05-18 02:03:39 +00:00
#joinHeader {
border:none;
}
#calc thead {
border-right-width: 1px;
border-bottom-width: 0px;
}*/
2023-05-18 02:03:39 +00:00
#calc span.split {
color: var(--split-background);
}
#calc span.join {
color: var(--join-background);
}
#calc td.split {
background-color: var(--split-background);
color: var(--split-foreground);
2023-05-17 04:09:05 +00:00
cursor: pointer;
2023-05-18 02:03:39 +00:00
min-width: 2.3rem;
width: 1%;
font-size:1rem;
}
2023-05-19 06:08:38 +00:00
#notifyModal .modal-content {
background-color: var(--bs-alert-bg);
}
#calc td.join {
background-color: var(--join-background);
color: var(--join-foreground);
2023-05-17 04:09:05 +00:00
cursor: pointer;
2023-05-18 02:03:39 +00:00
min-width: 2.3rem;
width: 1%;
font-size:1rem;
}
#calc td.split, #calc td.join {
padding: 0;
}
#calc td.split span, #calc td.join span {
padding-right: 0.4rem;
}
#calc .note {
padding-left:0.5rem;
padding-right:0.5rem;
}
#calc .note label,input {
width: 100%;
}
#calc .row_address {
white-space: nowrap;
padding-left:0.5rem;
padding-right:0.5rem;
}
#calc .row_range {
/* TODO: Make this a checkbox?
white-space: nowrap;
*/
padding-left:0.5rem;
padding-right:0.5rem;
}
#calc .row_usable {
/* TODO: Make this a checkbox?
white-space: nowrap;
*/
padding-left:0.5rem;
padding-right:0.5rem;
}
#calc .row_hosts {
width:1%;
white-space: nowrap;
padding-left:0.5rem;
padding-right:0.5rem;
}
#calc .note {
width: 30%;
}
#calc .note input {
border: none !important;
border-color: transparent !important;
}
/* https://stackoverflow.com/a/47245068/606974 */
.rotate {
vertical-align: middle;
text-align: end;
}
.rotate span {
-ms-writing-mode: tb-rl;
-webkit-writing-mode: vertical-rl;
writing-mode: vertical-rl;
white-space: nowrap;
padding-top: 0.25rem;
}