hubl/src/styles_old/base/table.scss

179 lines
3.0 KiB
SCSS
Raw Normal View History

/* Display and positioning of the table and its elements */
.table-wrapper {
overflow: auto;
position: relative;
width: 100%;
2020-11-24 17:09:27 +00:00
margin-bottom: 60px;
2020-06-16 13:52:10 +00:00
@include breakpoint(lg) {
margin-bottom: 0;
}
.table {
border-collapse: collapse;
display: table;
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;
2020-11-24 17:09:27 +00:00
border-top: 1px solid #C9C8C8;
border-left: 1px solid #C9C8C8;
background: var(--color-third);
color: var(--color-heading);
font-size: 16px;
font-weight: 600;
letter-spacing: 0.25px;
&>.table-cell {
display: table-cell;
2020-11-24 17:09:27 +00:00
height: 50px;
text-align: center;
vertical-align: middle;
border-right: 1px solid white;
white-space: nowrap;
2020-11-24 17:09:27 +00:00
&:last-child {
border-right: 1px solid #C9C8C8;
}
}
2020-06-09 13:15:34 +00:00
}
.table-body {
display: table-row-group;
2020-11-24 17:09:27 +00:00
border-left: 1px solid #C9C8C8;
&>div {
display: contents;
2020-06-18 18:02:54 +00:00
&>solid-display {
display: table-row;
&>div {
display: contents;
2020-11-24 17:09:27 +00:00
&>.table-cell {
border-bottom: 1px solid #C9C8C8;
border-right: 1px solid #C9C8C8;
display: table-cell;
text-align: center;
vertical-align: middle;
2020-11-24 17:09:27 +00:00
height: 64px;
}
2020-10-19 08:59:43 +00:00
solid-multiple[name="user.communities"] {
text-align: left;
}
}
}
/*&>solid-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
&>* {
2020-06-11 13:20:20 +00:00
border-bottom: 1px solid var(--color-table-border);
display: table-cell;
text-align: center;
vertical-align: middle;
}
}
}
/*}*/
2020-01-08 16:29:23 +00:00
}
}
}
2020-01-08 16:29:23 +00:00
2020-06-11 13:20:20 +00:00
/* Styles of the table and its elements */
.table-body,
.table-header {
2020-05-08 13:27:44 +00:00
/* Fix. Could disappear when we can add .class on set fields */
[name^='cell-1'] {
@extend .w280;
}
2020-01-08 16:29:23 +00:00
.w280 {
width: 280px;
}
2020-10-13 16:18:13 +00:00
.w450 {
width: 450px;
}
.w370 {
width: 370px;
}
.w230 {
width: 230px;
}
.w70 {
width: 70px;
}
2020-04-08 10:57:05 +00:00
.w162 {
width: 162px;
}
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;
2020-05-29 16:12:29 +00:00
[name='button'] {
input[type='submit'] {
2020-12-09 19:36:28 +00:00
@extend .button;
@extend .text-bold;
@extend .text-uppercase;
@extend .reversed;
@extend .button-secondary;
@extend .bordered;
@extend .desktop-btn-margin__left;
}
}
&.is-spaced {
padding: 0.8rem 2.2rem;
}
}
.cell-with-name {
color: var(--color-secondary);
font-weight: 600;
padding-left: 2rem;
text-align: left;
}
/* Styles of elements inside cells */
.table {
.user-thumb.is-spaced,
[name='user-thumb'] {
padding: 0.8rem 2.2rem;
}
}
2020-06-18 18:02:54 +00:00
.table solid-ac-checker {
2020-11-24 17:09:27 +00:00
/*text-align: center;*/
}