ui: css: Use rem as the primary unit

- When the base font size is changed, all the measure will scale appropriately.

- Bootstrap 4 has done the same.

- Keep using px for responsive lengths and some border widths that need not
scale.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2020-12-19 11:26:34 +02:00
1 parent 83dcafac55
commit f4a48f3e36
15 files changed
+124 -142

No files matched your search

@@ -8,7 +8,7 @@
{% block page_head %}
<style type="text/css">
.mount-error, .mount-success, .encrypted {
padding: 0px 5px;
padding: 0 0.3125rem;
}
.mount-error {
color: orange;
@@ -12,7 +12,7 @@
width: 40%;
}
.list-group-item .btn {
margin: -5px 2px;
margin: -0.3125rem 0.125rem;
}
</style>
{% endblock %}
@@ -14,13 +14,13 @@
width: 40%;
}
.repo-private-icon {
margin: 4px 10px;
margin: 0.25rem 0.625rem;
}
.list-group-item .btn {
margin: -5px 2px;
margin: -0.3125rem 0.125rem;
}
.repo-cloning {
margin: 0px 10px;
margin: 0 0.625rem;
}
</style>
{% endblock %}
@@ -59,7 +59,7 @@
href="https://wiki.debian.org/FreedomBox"
target="_blank">{% trans "Learn more &raquo;" %}</a></p>
<p style='margin-top:30px'>
<p style='margin-top:1.875rem'>
{% blocktrans trimmed %}
You are running {{ os_release }} and {{ box_name }} version {{ version }}.
{% endblocktrans %}
@@ -9,7 +9,7 @@
{% block page_head %}
<style type="text/css">
dd {
margin-left: 30px;
margin-left: 1.875rem;
}
.pdf {
float: right;
+3 -3
View File
@@ -43,14 +43,14 @@ h1 {
/* Server connection status message */
#server-flash {
margin: 0;
margin-top: 10px;
margin-top: 0.625rem;
}
#server-flash:before {
content: "\e031";
position: relative;
top: 1px;
padding-right: 5px;
top: 0.0625rem;
padding-right: 0.3125rem;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
@@ -9,7 +9,7 @@
{% block page_head %}
<style type="text/css">
.table .form .btn {
width: 7em;
width: 6.125rem;
}
.form-inline {
@@ -12,7 +12,7 @@
<style type="text/css">
td li {
list-style: none;
line-height: 2em;
line-height: 2rem;
}
td ul {
@@ -20,11 +20,11 @@
}
.form-action.pull-right {
margin-right: 10px;
margin-right: 0.625rem;
}
.form-action button {
width: 9em;
width: 7.875rem;
}
</style>
@@ -10,7 +10,7 @@
{% block page_head %}
<style type="text/css">
.list-group-item .btn {
margin: -5px 0;
margin: -0.3125rem 0;
}
.form-inline {
display: inline;
@@ -7,8 +7,8 @@
<style type="text/css">
.connection-diagram {
margin-top: 32px;
margin-bottom: 32px;
margin-top: 2rem;
margin-bottom: 2rem;
}
.col-image {
@@ -17,26 +17,26 @@
}
.network-entity {
max-width: 128px;
max-width: 8rem;
}
.network-type-icon {
width: 24px;
height: 24px;
width: 1.5rem;
height: 1.5rem;
}
.network-connection {
height: 8px;
margin-bottom: 12px;
height: 0.5rem;
margin-bottom: 0.75rem;
}
.network-connection-vertical {
width: 8px;
margin-left: 60px;
width: 0.5rem;
margin-left: 3.75rem;
}
.connection-list {
margin-left: 24px;
margin-left: 1.5rem;
}
.connection-list-heading {
@@ -10,10 +10,10 @@
<style type="text/css">
.connection-status-label {
display: inline-block;
width: 5.5em;
padding: 5px 0px;
width: 4.125rem;
padding: 0.3125rem 0;
text-align: center;
margin-right: 10px;
margin-right: 0.625rem;
}
.connection-show-label {
@@ -26,15 +26,15 @@
}
.list-group-item .btn {
margin: -2px 0;
margin: -0.125rem 0;
}
.form-action.pull-right {
margin-right: 20px;
margin-right: 1.25rem;
}
.form-action button {
min-width: 7em;
min-width: 6.125rem;
}
</style>
{% endblock %}
@@ -11,10 +11,10 @@
<style type="text/css">
div.custom-services span.service {
display: inline-block;
padding-top: 6px;
padding-top: 0.375rem;
}
form.pull-right button {
margin: 10px 5px;
margin: 0.625rem 0.3125rem;
}
</style>
{% endblock %}
+4 -4
View File
@@ -12,15 +12,15 @@
<style type="text/css">
.progress {
margin-bottom: 0;
width: 180px;
width: 11.25rem;
}
.samba-disk-name {
font-size: 1.3em;
font-size: 1.3rem;
float: left;
}
.samba-disk-shares {
padding-top: 10px;
margin-bottom: 20px;
padding-top: 0.625rem;
margin-bottom: 1.25rem;
}
</style>
{% endblock %}
@@ -13,7 +13,7 @@
width: 75%;
}
.list-group-item .btn {
margin: -5px 0;
margin: -0.3125rem 0;
}
</style>
{% endblock %}