hubl/src/styles/base/table.scss

221 lines
3.4 KiB
SCSS
Raw Normal View History

/* Display and positioning of the table and its elements */
.table-wrapper {
overflow: auto;
position: relative;
width: 100%;
.table {
border-collapse: collapse;
display: table;
2020-06-10 10:22:22 +00:00
margin-bottom: 20px;
overflow: auto;
table-layout: fixed;
width: 100%;
max-width: 100%;
2020-05-08 13:27:44 +00:00
}
.table-header {
display: table-header-group;
text-align: center;
vertical-align: middle;
&>div {
display: table-cell;
white-space: nowrap;
}
2020-06-09 13:15:34 +00:00
}
.table-body {
display: table-row-group;
&>div {
display: contents;
&>sib-display {
display: table-row;
&>div {
display: contents;
&>* {
display: table-cell;
}
}
}
&>sib-multiple {
display: contents;
2020-06-09 13:15:34 +00:00
&>div {
display: contents;
2020-01-08 16:29:23 +00:00
&>hubl-team-template-edit {
display: table-row;
2020-01-08 16:29:23 +00:00
&>* {
display: table-cell;
}
}
}
2020-01-08 16:29:23 +00:00
}
}
}
}
2020-01-08 16:29:23 +00:00
/* Styles of the tables and its elements */
.table-header {
font-size: 1.6rem;
font-weight: 600;
&.grey-color {
background: var(--color-table-header-background);
color: var(--color-table-header-text);
}
>* {
border-right: 1px solid var(--color-table-border);
padding: 2.1rem 0;
text-align: center;
}
2020-01-08 16:29:23 +00:00
>*:last-of-type {
border-right: 1px solid --color-table-header-background;
}
}
2020-01-08 16:29:23 +00:00
.table-body {
border-left: 1px solid var(--color-table-border);
border-right: 1px solid var(--color-table-border);
}
2020-01-08 16:29:23 +00:00
.table-body,
.table-header {
2020-05-08 13:27:44 +00:00
.border {
border-bottom: 1px solid var(--color-table-border);
border-right: 1px solid var(--color-table-border);
}
2020-05-08 13:27:44 +00:00
/* Fix. Could disappear when we can add .class on set fields */
[name^='cell-1'] {
@extend .w786;
@extend .border;
}
2020-01-08 16:29:23 +00:00
.w786 {
width: 786px;
}
2020-04-08 10:57:05 +00:00
.w262 {
width: 262px;
}
2020-01-08 16:29:23 +00:00
.w349 {
width: 349px;
}
2020-04-13 17:02:51 +00:00
.w698 {
width: 698px;
}
2020-05-29 16:12:29 +00:00
.hashtag::before {
content: '#';
}
}
2020-05-29 16:12:29 +00:00
/* Styles of specific cells */
2020-05-29 16:12:29 +00:00
.cell-with-buttons {
text-align: center;
vertical-align: middle;
2020-05-29 16:12:29 +00:00
[name='button'] {
input[type='submit'] {
@extend
.button,
.text-bold,
.text-uppercase,
.reversed,
.button-secondary,
.bordered,
.btn-margin-left;
}
}
}
.cell-with-name {
color: var(--color-secondary);
font-weight: 600;
text-align: center;
vertical-align: middle;
}
/* Styles of elements inside cells */
.user-thumb>div,
[name='user-thumb'] {
@extend %user-thumb__grid;
padding: 0 2.2rem;
>.user-thumb__picture {
@extend .user-thumb__picture;
}
>[name='sup'] {
@extend %user-thumb__grid-sup;
}
>[name='sub'] {
@extend %user-thumb__grid-inf;
}
}
.table sib-ac-checker {
text-align: center;
vertical-align: middle;
}
.circle-join {
position: relative;
width: 181px;
margin: 0 auto;
min-width: 181px;
input {
height: 29px;
left: -1px;
position: absolute;
top: -1px;
width: 102%;
padding-left: 14px !important;
}
&.button.with-icon::before {
margin-left: 6px;
}
2020-01-08 16:29:23 +00:00
}
.circle-leave {
position: relative;
width: 40%;
min-width: 40%;
&>button {
height: 29px;
padding-left: 13px;
position: absolute;
left: 1px;
top: -1px;
width: 106%;
}
&.button.with-icon::before {
font-size: 1.6rem;
margin-right: 2rem !important;
margin-left: -50px;
}
}