diff options
| author | Dayana31 <[email protected]> | 2022-04-21 17:27:08 -0500 |
|---|---|---|
| committer | Dayana31 <[email protected]> | 2022-04-21 17:27:08 -0500 |
| commit | 67c50667678dd0ce4709b29a854f6a47093a1ac5 (patch) | |
| tree | b6f9f39092ad54bf6b815984d32b37d7c7ca67ab /front/odiparpack/app/styles/components/Table.scss | |
| parent | 91140b24f0d49a9f89a080ee063e9eb023a4b73a (diff) | |
| parent | e13e630cd6e4fc0b1ff92098a28a770794c7bb9a (diff) | |
| download | DP1_project-67c50667678dd0ce4709b29a854f6a47093a1ac5.tar.gz DP1_project-67c50667678dd0ce4709b29a854f6a47093a1ac5.tar.bz2 DP1_project-67c50667678dd0ce4709b29a854f6a47093a1ac5.zip | |
Merge branch 'gabshr' into dayana
Diffstat (limited to 'front/odiparpack/app/styles/components/Table.scss')
| -rw-r--r-- | front/odiparpack/app/styles/components/Table.scss | 152 |
1 files changed, 152 insertions, 0 deletions
diff --git a/front/odiparpack/app/styles/components/Table.scss b/front/odiparpack/app/styles/components/Table.scss new file mode 100644 index 0000000..04209f0 --- /dev/null +++ b/front/odiparpack/app/styles/components/Table.scss @@ -0,0 +1,152 @@ +@import "../../styles/mixins"; + +.stripped{ + tbody tr:nth-child(even){ + background: material-color('grey', '100'); + } +} + +.hover{ + tbody tr:hover{ + background: material-color('grey', '200'); + } +} + +.bordered{ + thead tr{ + background: material-color('grey', '200'); + } + td, th{ + border: 1px solid material-color('grey', '300'); + } + tr td, tr th{ + &:first-child{ + border-left: none + } + &:last-child{ + border-right: none + } + } +} + +table.small{ + tr{ + height: 24px; + td, th{ + padding: 4px 10px; + font-size: 12px; + } + } +} + +table.medium{ + tr{ + height: 48px; + td, th{ + padding: 4px 56px 4px 24px; + font-size: 14px; + } + } +} + +table.big{ + tr{ + height: 64px; + td, th{ + padding: 8px 56px 8px 24px; + font-size: 18px; + } + } +} + +.nodata{ + text-align: center; + padding: 10px 10px 40px; + font-size: 14px; + line-height: 16px; + color: material-color('grey', '500'); + svg{ + position: relative; + top: 5px; + width: 22px; + margin: 0 6px; + fill: material-color('grey', '500'); + } +} + +.hideAction{ + display: none !important; +} + +.tableCrud{ + table-layout: fixed; + .hiddenField{ + opacity: 0; + position: absolute; + } + .editing{ + background: material-color('lime', '50'); + td .crudInput{ + &:before{ + opacity: 1; + } + > * { + &:before, &:after{ + opacity: 1; + } + } + svg, button { + visibility: visible; + } + input[type="text"], + input[type="number"], + input[type="email"]{ + width: 100%; + } + } + } + th{ + padding: 0 15px; + } + td{ + padding: 0 15px; + &.toggleCell{ + position: relative; + } + vertical-align: middle; + .coverReadonly{ + width: 100%; + height: 100%; + position: absolute; + z-index: 2; + display: none; + &.show{ + display: block; + } + } + .crudInput{ + &:before{ + opacity: 0; + } + color: material-color('grey', '900'); + > * > input { + color: material-color('grey', '900'); + &:before, &:after{ + opacity: 0; + } + } + svg, button { + visibility: hidden; + } + } + } + td [disabled], td[disabled]:hover{ + border: none !important; + box-shadow: none; + cursor: text; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background: none; + } +} |
