debian-mirror-gitlab/app/assets/stylesheets/components/popover.scss

112 lines
1.8 KiB
SCSS
Raw Normal View History

2019-02-15 15:39:39 +05:30
.popover {
2019-09-04 21:01:54 +05:30
max-width: $popover-max-width;
2020-07-28 23:09:34 +05:30
border: 1px solid $gray-100;
2020-06-23 00:09:42 +05:30
box-shadow: $popover-box-shadow;
2019-09-04 21:01:54 +05:30
font-size: $gl-font-size-small;
2019-07-31 22:56:46 +05:30
2019-09-04 21:01:54 +05:30
/**
* Blue popover variation
*/
2019-07-31 22:56:46 +05:30
&.blue {
background-color: $blue-600;
2019-09-04 21:01:54 +05:30
border-color: $blue-600;
2019-07-31 22:56:46 +05:30
.popover-body {
2020-04-22 19:07:51 +05:30
color: $white;
2019-07-31 22:56:46 +05:30
}
&.bs-popover-bottom {
2019-09-04 21:01:54 +05:30
.arrow::before,
2019-07-31 22:56:46 +05:30
.arrow::after {
border-bottom-color: $blue-600;
}
}
&.bs-popover-top {
2019-09-04 21:01:54 +05:30
.arrow::before,
2019-07-31 22:56:46 +05:30
.arrow::after {
border-top-color: $blue-600;
}
}
2019-09-04 21:01:54 +05:30
&.bs-popover-right {
.arrow::after,
.arrow::before {
border-right-color: $blue-600;
}
}
&.bs-popover-left {
.arrow::before,
.arrow::after {
border-left-color: $blue-600;
}
}
2019-02-15 15:39:39 +05:30
}
}
2019-07-07 11:18:12 +05:30
2019-09-04 21:01:54 +05:30
.bs-popover-top {
/* When popover position is top, the arrow is translated 1 pixel
* due to the box-shadow include in our custom styles.
*/
> .arrow::before {
2020-07-28 23:09:34 +05:30
border-top-color: $gray-100;
2019-09-04 21:01:54 +05:30
bottom: 1px;
}
> .arrow::after {
bottom: 2px;
}
}
.bs-popover-bottom {
> .arrow::before {
2020-07-28 23:09:34 +05:30
border-bottom-color: $gray-100;
2019-09-04 21:01:54 +05:30
}
> .popover-header::before {
2020-04-22 19:07:51 +05:30
border-color: $white;
2019-09-04 21:01:54 +05:30
}
}
.bs-popover-right > .arrow::before {
2020-07-28 23:09:34 +05:30
border-right-color: $gray-100;
2019-09-04 21:01:54 +05:30
}
.bs-popover-left > .arrow::before {
2020-07-28 23:09:34 +05:30
border-left-color: $gray-100;
2019-09-04 21:01:54 +05:30
}
.popover-header {
2020-04-22 19:07:51 +05:30
background-color: $white;
2019-09-04 21:01:54 +05:30
font-size: $gl-font-size-small;
}
.popover-body {
padding: $gl-padding $gl-padding-12;
> .popover-hr {
margin: $gl-padding 0;
}
}
/**
* mr_popover component
*/
2019-07-07 11:18:12 +05:30
.mr-popover {
.text-secondary {
font-size: 12px;
line-height: 1.33;
}
}
2019-07-31 22:56:46 +05:30
2020-04-08 14:13:33 +05:30
.suggest-gitlab-ci-yml {
margin-top: -1em;
.popover-header {
padding: $gl-padding;
display: flex;
align-items: center;
}
}