forked from fixin.me/fixin.me
Separate items-table and tabular-form styling
This commit is contained in:
@@ -157,6 +157,11 @@ input::-webkit-outer-spin-button {
|
|||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
table {
|
||||||
|
border: none;
|
||||||
|
border-spacing: 0;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
/* Text color of table form controls:
|
/* Text color of table form controls:
|
||||||
* - black for row/table forms,
|
* - black for row/table forms,
|
||||||
* - inherited for internal (column specific) buttons/forms. */
|
* - inherited for internal (column specific) buttons/forms. */
|
||||||
@@ -457,10 +462,7 @@ header {
|
|||||||
padding-block: 0;
|
padding-block: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabular-form table {
|
|
||||||
border: none;
|
|
||||||
border-spacing: 0;
|
|
||||||
}
|
|
||||||
.tabular-form table td {
|
.tabular-form table td {
|
||||||
border: none;
|
border: none;
|
||||||
padding-inline-start: 0.4em;
|
padding-inline-start: 0.4em;
|
||||||
@@ -472,18 +474,9 @@ header {
|
|||||||
.tabular-form table td:last-child {
|
.tabular-form table td:last-child {
|
||||||
padding-inline-end: 0;
|
padding-inline-end: 0;
|
||||||
}
|
}
|
||||||
.tabular-form table :is(input, select, textarea) {
|
|
||||||
margin-inline: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: <button> has different height (28px) inside <td> than <a> (29px) */
|
/* FIXME: <button> has different height (28px) inside <td> than <a> (29px) */
|
||||||
.items-table {
|
|
||||||
border: none;
|
|
||||||
border-spacing: 0;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
.items-table:has(> tbody > tr > td) {
|
.items-table:has(> tbody > tr > td) {
|
||||||
border: 1px solid var(--color-border-gray);
|
border: 1px solid var(--color-border-gray);
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
@@ -597,7 +590,7 @@ header {
|
|||||||
.hstretch {
|
.hstretch {
|
||||||
/* `width` conflicts with <input>/<textarea> size defined by [size]/[cols]
|
/* `width` conflicts with <input>/<textarea> size defined by [size]/[cols]
|
||||||
* attributes. It's best to not use these attributes (e.g. set them to 1) when
|
* attributes. It's best to not use these attributes (e.g. set them to 1) when
|
||||||
* setting width through stylesheet. */
|
* setting width through stylesheet. Minimum width can be set with `min-width`. */
|
||||||
/* NOTE: `field-sizing` can be considered after upgrade do FF >=152 */
|
/* NOTE: `field-sizing` can be considered after upgrade do FF >=152 */
|
||||||
width: -moz-available;
|
width: -moz-available;
|
||||||
width: stretch;
|
width: stretch;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
class: 'topside-area flex vertical center',
|
class: 'topside-area flex vertical center',
|
||||||
html: {onkeydown: 'formProcessKey(event)'} do |form| %>
|
html: {onkeydown: 'formProcessKey(event)'} do |form| %>
|
||||||
|
|
||||||
<table class="items-table center">
|
<table class="center">
|
||||||
<tbody id="readouts">
|
<tbody id="readouts">
|
||||||
<%= tabular_fields_for @measurement do |form| %>
|
<%= tabular_fields_for @measurement do |form| %>
|
||||||
<tr class="italic">
|
<tr class="italic">
|
||||||
|
|||||||
Reference in New Issue
Block a user