debian-mirror-gitlab/app/assets/stylesheets/framework/tables.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

179 lines
3.3 KiB
SCSS
Raw Normal View History

2015-11-26 14:37:03 +05:30
.table-holder {
margin: 0;
2018-11-08 19:23:39 +05:30
overflow: auto;
2015-11-26 14:37:03 +05:30
}
2015-04-26 12:48:37 +05:30
table {
2020-05-24 23:13:21 +05:30
/*
* TODO
* This is a temporary workaround until we fix the neutral
* color palette in https://gitlab.com/gitlab-org/gitlab/-/issues/213570
*
2021-01-03 14:25:43 +05:30
* The overwrites here affected the following areas:
* - The subscription seats table. When removing this code, the .seats-table
* <th> and margin overrides should be removed there.
2020-05-24 23:13:21 +05:30
*
* Remove this code as soon as this happens
2021-01-03 14:25:43 +05:30
*
2020-05-24 23:13:21 +05:30
*/
&.gl-table {
2020-10-24 23:57:45 +05:30
@include gl-text-gray-500;
2020-05-24 23:13:21 +05:30
}
2015-04-26 12:48:37 +05:30
&.table {
2022-07-16 23:28:13 +05:30
.thead-white {
th {
background-color: $white;
}
}
}
.md &:not(.code),
&.table:not(.gl-table) {
2015-12-23 02:04:40 +05:30
margin-bottom: $gl-padding;
2015-10-24 18:46:33 +05:30
.dropdown-menu a {
text-decoration: none;
}
.success,
.warning,
.danger,
.info {
2020-04-22 19:07:51 +05:30
color: $white;
2015-10-24 18:46:33 +05:30
a:not(.btn) {
text-decoration: underline;
2020-04-22 19:07:51 +05:30
color: $white;
2015-10-24 18:46:33 +05:30
}
}
2015-04-26 12:48:37 +05:30
tr {
2017-08-17 22:00:37 +05:30
td,
th {
2015-11-26 14:37:03 +05:30
padding: 10px $gl-padding;
2015-04-26 12:48:37 +05:30
line-height: 20px;
2022-06-21 17:19:12 +05:30
vertical-align: top;
2015-04-26 12:48:37 +05:30
}
2015-11-26 14:37:03 +05:30
2015-04-26 12:48:37 +05:30
th {
2020-06-23 00:09:42 +05:30
@include gl-bg-gray-50;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2017-08-17 22:00:37 +05:30
&.wide {
width: 55%;
}
2015-04-26 12:48:37 +05:30
}
2015-11-26 14:37:03 +05:30
2015-04-26 12:48:37 +05:30
}
2019-02-15 15:39:39 +05:30
.thead-white {
th {
color: $gl-text-color-secondary;
border-top: 0;
}
}
2015-04-26 12:48:37 +05:30
}
2018-11-08 19:23:39 +05:30
&.responsive-table {
@include media-breakpoint-down(sm) {
thead {
display: none;
}
&,
tbody,
td {
display: block;
}
td {
color: $gl-text-color-secondary;
}
tbody td.responsive-table-cell {
padding: $gl-padding 0;
width: 100%;
display: flex;
text-align: right;
align-items: center;
justify-content: space-between;
&[data-column]::before {
content: attr(data-column);
display: block;
text-align: left;
padding-right: $gl-padding;
color: $gl-text-color-secondary;
}
&:not([data-column]) {
flex-direction: row-reverse;
}
}
tr.responsive-table-border-start,
tr.responsive-table-border-end {
display: block;
border: solid $gl-text-color-quaternary;
padding-left: 0;
padding-right: 0;
> td {
border-color: $gl-text-color-quaternary;
&,
&:last-child {
padding-left: $gl-padding;
padding-right: $gl-padding;
}
}
}
tr.responsive-table-border-start {
border-width: 1px 1px 0;
border-radius: $border-radius-default $border-radius-default 0 0;
padding-top: 0;
padding-bottom: 0;
> td:first-child {
border-top: 0; // always have the <table> top border
}
> td:last-child {
border-bottom: 1px solid $gl-text-color-quaternary;
}
}
tr.responsive-table-border-end {
border-width: 0 1px 1px;
border-radius: 0 0 $border-radius-default $border-radius-default;
margin-bottom: 2 * $gl-padding;
> :last-child {
border-bottom: 0;
}
}
}
}
2015-04-26 12:48:37 +05:30
}
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.responsive-table:not(table) {
@include media-breakpoint-down(sm) {
2017-08-17 22:00:37 +05:30
th {
width: 100%;
}
td {
width: 100%;
float: left;
}
}
}
2018-12-13 13:39:08 +05:30
.top-area + .content-list {
th {
border-top: 0;
}
}