css: prefer rem over px

This commit is contained in:
Milan
2021-03-13 18:23:34 +01:00
parent 63da21247f
commit ebfa0cdbc8
4 changed files with 56 additions and 56 deletions

View File

@@ -101,8 +101,8 @@ body,
}
#content textarea {
padding: 6px;
border: 1px solid #ccc;
padding: 0.5rem;
border: 1px solid #fff;
box-sizing:border-box;
}
@@ -112,7 +112,7 @@ body,
font-size: 1em;
}
input, button {
padding: 16px;
padding: 1rem;
}
#calcms_nav {
min-width: 640px;
@@ -151,9 +151,8 @@ body,
#calcms_nav div a,
#calcms_nav select {
padding: 6px;
padding-top: 1rem;
padding-bottom: 1rem;
padding-left: 0.5rem;
padding-right: 0.5rem;
line-height: 3em;
}
@@ -254,14 +253,14 @@ a {
}
#content table td {
padding: 6px;
padding: 0.5rem;
border-collapse: collapse;
border-right: 0;
border-left: 0;
}
#content table th {
padding: 6px;
padding: 0.5rem;
border-collapse: collapse;
}
@@ -317,13 +316,14 @@ table {
}
#content td {
padding: 3px;
padding: 0.5rem;
}
#content pre,
.pre {
border: 0;
padding: 2em;
padding-top:1rem;
padding-bottom:1rem;
color: #000;
}
@@ -366,7 +366,7 @@ table {
#content span.warn,
#content span.error {
font-weight: bold;
padding: 1px;
padding: 0;
}
#content span.ok,
@@ -392,10 +392,11 @@ div.error {
div.badge-ok,
div.badge-warn,
div.badge-error {
border-radius: 4px;
border-radius: 0.3rem;
display: inline;
margin: 3px;
padding: 3px;
margin-right: 0.5rem;
margin-top: 0.5rem;
padding: 0.2rem;
line-height:1.6rem;
white-space: nowrap;
}
@@ -432,7 +433,7 @@ div.badge-error {
margin: 1em;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .12), 0 2px 10px 0
rgba(0, 0, 0, .09);
border-radius: 3px;
border-radius: 0.3rem;
}
#content table.table tr:hover {
@@ -464,7 +465,7 @@ table.tablesorter tr {
#content table.tablesorter td,
#content table.table td {
padding: 0.8rem 0.4rem;
padding: 0.3rem;
text-align: left;
vertical-align: middle;
}

View File

@@ -22,15 +22,15 @@ div#newSeries a,
div#oldSeries a{
color:#fff;
background:#1abc9c;
padding:8px;
margin:8px;
padding:0.5rem;
margin:0.5rem;
cursor:pointer;
text-align:center;
display:table-cell;
vertical-align:middle;
width:10rem;
height:4rem;
line-height:2em;
line-height:1.4rem;
}
div#newSeries a:hover,

View File

@@ -1,6 +1,5 @@
#content {
margin-top: 3em;
padding: 1em;
margin-top: 3rem;
min-height: 100%;
}
@@ -9,7 +8,7 @@
}
#content td.label {
max-width: 3em;
max-width: 2rem;
}
#content .label {
@@ -17,7 +16,7 @@
}
#content table.series {
border-radius: 1em;
border-radius: 1rem;
}
#content .series div.header {
@@ -49,7 +48,7 @@
#content .editor div.buttons button,
#content .editor div.buttons input {
margin-left: 1em;
margin-left: 1rem;
}
#imagePreview {
@@ -80,16 +79,16 @@
}
#content .series table td:nth-child(1) {
width: 10em;
width: 10rem;
}
#content .series table td {
padding: 6px;
padding: 0.5rem;
}
#content .editor .row {
clear: both;
min-height: 4em;
min-height: 4rem;
}
#content .editor .cell {
@@ -101,7 +100,7 @@
#content .editor .row.active {
background: #ff0;
min-height: 4em;
min-height: 4rem;
}
#content div.cell.exclude,
@@ -111,111 +110,111 @@
}
#content div.cell.containsInput {
margin-right: 12px;
margin-right: 1rem;
}
#content div.cell.containsSelect {
margin-right: 12px;
margin-right: 1rem;
}
#content div.cell.exclude,
#content div.cell.nextDay {
width: 1em;
width: 1rem;
}
#content div.cell.weekday,
#content div.cell.weekday input,
#content div.cell.weekday select {
width: 2em;
padding-top: 2em;
width: 2rem;
padding-top: 1.6rem;
}
#content div.cell.start,
#content div.cell.start input,
#content div.cell.start select {
width: 9.5em;
width: 9rem;
}
#content div.cell.duration,
#content div.cell.duration input,
#content div.cell.duration select {
width: 7em;
width: 6rem;
}
#content div.cell.period_type,
#content div.cell.period_type input,
#content div.cell.period_type select {
width: 7em;
width: 8rem;
}
#content div.cell.period_type.isSingle,
#content div.cell.period_type select.isSingle {
width: 9em;
width: 8rem;
}
#content div.cell.end,
#content div.cell.end input,
#content div.cell.end select {
width: 6em;
width: 6rem;
}
#content div.cell.frequency,
#content div.cell.frequency input,
#content div.cell.frequency select {
width: 6em;
width: 7rem;
}
#content div.cell.week_of_month,
#content div.cell.week_of_month input,
#content div.cell.week_of_month select {
width: 6em;
width: 6rem;
}
#content div.cell.schedule_weekday,
#content div.cell.schedule_weekday input,
#content div.cell.schedule_weekday select {
width: 4em;
width: 4rem;
}
#content div.cell.schedule_month,
#content div.cell.schedule_month input,
#content div.cell.schedule_month select {
width: 6em;
width: 6rem;
}
/* end of schedule */
#content .create_events {
width: 5em;
width: 5rem;
}
#content .publish_events {
width: 5em;
width: 5rem;
}
#content div.show_schedule {
overflow: auto;
height: 20em;
height: 20rem;
clear: both;
}
#content div.show_schedule table {
width: 24em;
width: 24rem;
}
#content div.show_schedule td {
width: 10em;
width: 10rem;
}
#content div.show_schedule td:nth-child(1) {
width: 2em;
width: 2rem;
}
#content div.show_schedule tr.exclude td {
text-decoration: line-through;
}
#content div.buttons {
padding-left: 12px;
input.exclude{
margin-top:0.5rem;
}
#content div.editor input.image {
@@ -228,7 +227,7 @@ div#tabs > div {
#content #tabs-events td.weekday,
#content #tabs-events td.date,
#content #tabs-events td.time,
#content #tabs-events td.time,
#content #tabs-events td.spacer {
width: 0;
}

View File

@@ -1,6 +1,6 @@
#content {
margin-top: 3em;
padding: 1em;
margin-top: 3rem;
padding: 1rem;
max-width: 960px;
min-height: 100%;
}
@@ -32,13 +32,13 @@
#content .editor div.buttons button,
#content .editor div.buttons input {
margin-left: 1em;
margin-left: 1rem;
}
#content .editor input,
#content .editor textarea,
#content .editor button {
padding: 6px;
padding: 0.5rem;
}
#content .editor .row {
@@ -93,7 +93,7 @@
}
#content div.buttons {
padding-left: 12px;
padding-left: 1rem;
}
#content div.editor input.image {