hubl/src/styles/base/table.scss

280 lines
4.5 KiB
SCSS
Raw Normal View History

/*#circle-information,
2020-01-08 16:29:23 +00:00
#circle-edit,
#admin-circle-create,
#project-edit,
#admin-project-create*/
2020-01-08 16:29:23 +00:00
[widget="hubl-team-template-edit"]>div {
flex: 1;
}
.table-wrapper {
overflow: auto;
position: relative;
width: 100%;
z-index: 1;
.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;
&>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;
see L107
}*/
}
}
}
2020-06-09 13:15:34 +00:00
}
}
/* Styles of the tables */
.table-wrapper {
2020-06-09 13:15:34 +00:00
2020-01-08 16:29:23 +00:00
.table {
.table-header {
font-size: 1.6rem;
font-weight: 600;
&.grey-color {
2020-05-11 18:20:13 +00:00
background: var(--color-table-header-background);
color: var(--color-table-header-text);
2020-01-08 16:29:23 +00:00
}
>* {
2020-05-11 18:20:13 +00:00
border-right: 1px solid var(--color-table-border);
2020-01-08 16:29:23 +00:00
padding: 2.1rem 0;
text-align: center;
}
>*:last-of-type {
2020-05-11 18:20:13 +00:00
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-05-29 16:12:29 +00:00
.table-body,
.table-header {
2020-01-08 16:29:23 +00:00
/*>div:first-of-type>sib-display>div,
2020-05-08 13:27:44 +00:00
hubl-team-template-edit[name='members'] {
2020-01-08 16:29:23 +00:00
display: flex;
2020-05-11 18:20:13 +00:00
border-left: 1px solid var(--color-table-border);
}*/
2020-01-08 16:29:23 +00:00
.border {
2020-05-11 18:20:13 +00:00
border-bottom: 1px solid var(--color-table-border);
border-right: 1px solid var(--color-table-border);
2020-01-08 16:29:23 +00:00
}
.cell,
[name^="cell-"] {
/*text-align: center;
2020-01-08 16:29:23 +00:00
word-wrap: break-word;
white-space: nowrap;*/
display: table-cell;
}
.w786 {
width: 786px;
2020-01-08 16:29:23 +00:00
}
.w262 {
width: 262px;
}
.w349 {
width: 349px;
}
.w698 {
width: 698px;
}
/*.w25 {
2020-01-08 16:29:23 +00:00
width: 25%;
}
.w33 {
width: 33.3333%;
}
.w50 {
width: 50%;
}
2020-05-08 13:27:44 +00:00
.w66 {
width: 66.6666%;
}
.w75 {
width: 75%;
}*/
2020-05-08 13:27:44 +00:00
2020-01-08 16:29:23 +00:00
.hashtag::before {
content: '#';
}
}
2020-04-08 10:57:05 +00:00
.cell-with-buttons {
text-align: center;
vertical-align: middle;
2020-04-08 10:57:05 +00:00
[name='button'] {
input[type='submit'] {
2020-05-29 16:12:29 +00:00
@extend
.button,
2020-04-08 10:57:05 +00:00
.text-bold,
.text-uppercase,
.reversed,
2020-05-11 18:20:13 +00:00
.button-secondary,
2020-04-08 10:57:05 +00:00
.bordered,
.btn-margin-left;
}
}
}
2020-01-08 16:29:23 +00:00
.cell-with-name {
2020-05-11 18:20:13 +00:00
color: var(--color-secondary);
2020-01-08 16:29:23 +00:00
font-weight: 600;
text-align: center;
vertical-align: middle;
2020-01-08 16:29:23 +00:00
}
2020-04-13 17:02:51 +00:00
sib-multiple {
display: flex;
align-items: center;
justify-content: center;
}
.user-thumb>div/* for the table in circle-edit and captain's cell in project-admin */,
2020-05-29 16:12:29 +00:00
[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;
}
}
2020-01-08 16:29:23 +00:00
sib-ac-checker {
align-items: center;
/*display: flex;*/
2020-01-08 16:29:23 +00:00
justify-content: center;
}
/*.w75 {
min-width: 250px;
}
.w25 {
min-width: 70px;
}*/
/*sib-display[fields="cell-1(user-thumb(account.picture, sup(name), sub(username))), actions"] {
&>div {
>sib-set-default {
min-width: 250px;
}
hubl-sib-action-custom {
min-width: 70px;
}
}
}*/
}
}
.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: 30%;
min-width: 30%;
}
.circle-leave>button {
position: absolute;
width: 106%;
left: 1px;
/* background: antiquewhite; */
height: 29px;
top: -1px;
padding-left: 13px;
}
.circle-leave.button.with-icon::before {
font-size: 1.6rem;
margin-right: 2rem;
margin-left: -50px;
}