2020-04-30 11:09:46 -04:00
|
|
|
/**
|
|
|
|
Please note: These are deprecated in favor of the Gitlab UI utility classes.
|
|
|
|
Check https://unpkg.com/browse/@gitlab/ui/src/scss/utilities.scss
|
|
|
|
to see the available utility classes. If you cannot find the class you need,
|
|
|
|
consider adding it to Gitlab UI before adding it here.
|
|
|
|
**/
|
|
|
|
|
2019-04-02 22:24:07 -04:00
|
|
|
@each $variant, $range in $color-ranges {
|
|
|
|
@each $suffix, $color in $range {
|
|
|
|
#{'.bg-#{$variant}-#{$suffix}'} {
|
|
|
|
background-color: $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
#{'.text-#{$variant}-#{$suffix}'} {
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $index, $size in $type-scale {
|
|
|
|
#{'.text-#{$index}'} {
|
|
|
|
font-size: $size;
|
|
|
|
}
|
|
|
|
}
|
2019-09-10 11:29:06 -04:00
|
|
|
|
2019-10-31 08:06:26 -04:00
|
|
|
@each $index, $size in $size-scale {
|
|
|
|
#{'.mw-#{$index}'} {
|
|
|
|
max-width: $size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-19 07:07:35 -05:00
|
|
|
@each $index, $size in $type-scale {
|
|
|
|
#{'.lh-#{$index}'} {
|
|
|
|
line-height: $size;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-06 07:10:29 -05:00
|
|
|
@for $i from 1 through 12 {
|
|
|
|
#{'.tab-width-#{$i}'} {
|
2020-07-09 17:09:33 -04:00
|
|
|
/* stylelint-disable-next-line property-no-vendor-prefix */
|
2020-02-06 07:10:29 -05:00
|
|
|
-moz-tab-size: $i;
|
|
|
|
tab-size: $i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-10 11:29:06 -04:00
|
|
|
.border-width-1px { border-width: 1px; }
|
|
|
|
.border-style-dashed { border-style: dashed; }
|
|
|
|
.border-style-solid { border-style: solid; }
|
|
|
|
.border-color-blue-300 { border-color: $blue-300; }
|
|
|
|
.border-color-default { border-color: $border-color; }
|
2020-03-24 14:07:55 -04:00
|
|
|
.border-radius-default { border-radius: $border-radius-default; }
|
2020-04-28 11:09:29 -04:00
|
|
|
.border-radius-small { border-radius: $border-radius-small; }
|
2019-11-07 01:06:12 -05:00
|
|
|
.box-shadow-default { box-shadow: 0 2px 4px 0 $black-transparent; }
|
2019-11-08 01:06:24 -05:00
|
|
|
|
2020-02-25 07:08:48 -05:00
|
|
|
.gl-children-ml-sm-3 > * {
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
@include gl-ml-3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-10 02:53:40 -05:00
|
|
|
.mh-50vh { max-height: 50vh; }
|
|
|
|
|
2020-04-13 11:09:20 -04:00
|
|
|
.min-width-0 {
|
|
|
|
// By default flex items don't shrink below their minimum content size. To change this, set the item's min-width
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
2021-06-28 23:07:32 -04:00
|
|
|
// .gl-font-size-inherit will be moved to @gitlab/ui by https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1466
|
|
|
|
.gl-font-size-inherit,
|
2020-02-03 22:08:37 -05:00
|
|
|
.font-size-inherit { font-size: inherit; }
|
2020-03-09 05:07:45 -04:00
|
|
|
.gl-w-8 { width: px-to-rem($grid-size); }
|
2020-02-28 13:09:07 -05:00
|
|
|
.gl-w-16 { width: px-to-rem($grid-size * 2); }
|
2019-11-08 01:06:24 -05:00
|
|
|
.gl-w-64 { width: px-to-rem($grid-size * 8); }
|
2020-03-09 05:07:45 -04:00
|
|
|
.gl-h-8 { height: px-to-rem($grid-size); }
|
2020-01-20 04:08:32 -05:00
|
|
|
.gl-h-32 { height: px-to-rem($grid-size * 4); }
|
2019-11-08 01:06:24 -05:00
|
|
|
.gl-h-64 { height: px-to-rem($grid-size * 8); }
|
2019-12-10 04:07:51 -05:00
|
|
|
|
2020-07-30 05:09:36 -04:00
|
|
|
// Migrate this to Gitlab UI when FF is removed
|
|
|
|
// https://gitlab.com/groups/gitlab-org/-/epics/2882
|
|
|
|
.gl-h-200\! { height: px-to-rem($grid-size * 25) !important; }
|
|
|
|
|
2019-12-10 04:07:51 -05:00
|
|
|
.gl-bg-purple-light { background-color: $purple-light; }
|
2020-06-12 08:08:56 -04:00
|
|
|
|
|
|
|
// move this to GitLab UI once onboarding experiment is considered a success
|
|
|
|
.gl-py-8 {
|
|
|
|
padding-top: $gl-spacing-scale-8;
|
|
|
|
padding-bottom: $gl-spacing-scale-8;
|
|
|
|
}
|
|
|
|
|
2020-06-18 17:09:05 -04:00
|
|
|
.gl-transition-property-stroke-opacity {
|
|
|
|
transition-property: stroke-opacity;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gl-transition-property-stroke {
|
|
|
|
transition-property: stroke;
|
|
|
|
}
|
2020-07-16 11:09:38 -04:00
|
|
|
|
|
|
|
.gl-top-66vh {
|
|
|
|
top: 66vh;
|
|
|
|
}
|
2020-07-17 02:09:11 -04:00
|
|
|
|
2020-09-01 14:10:48 -04:00
|
|
|
.gl-shadow-x0-y0-b3-s1-blue-500 {
|
|
|
|
box-shadow: inset 0 0 3px $gl-border-size-1 $blue-500;
|
|
|
|
}
|
2020-09-02 08:10:35 -04:00
|
|
|
|
2020-09-18 17:10:11 -04:00
|
|
|
// This utility is used to force the z-index to match that of dropdown menu's
|
|
|
|
.gl-z-dropdown-menu\! {
|
2021-01-19 07:10:46 -05:00
|
|
|
z-index: $zindex-dropdown-menu !important;
|
2020-09-18 17:10:11 -04:00
|
|
|
}
|
2020-09-29 17:09:35 -04:00
|
|
|
|
|
|
|
.gl-flex-basis-quarter {
|
|
|
|
flex-basis: 25%;
|
|
|
|
}
|
|
|
|
|
2021-03-03 10:10:53 -05:00
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1168
|
2020-09-29 17:09:35 -04:00
|
|
|
.gl-md-ml-3 {
|
|
|
|
@media (min-width: $breakpoint-md) {
|
|
|
|
margin-left: $gl-spacing-scale-3;
|
|
|
|
}
|
|
|
|
}
|
2020-11-10 04:08:45 -05:00
|
|
|
|
2021-07-15 11:09:41 -04:00
|
|
|
// Will be moved to @gitlab/ui (without the !important) in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1462
|
|
|
|
// We only need the bang (!) version until the non-bang version is added to
|
|
|
|
// @gitlab/ui utitlities.scss. Once there, it will get loaded in the correct
|
|
|
|
// order to properly override `.gl-mt-6` which is used for narrower screen
|
|
|
|
// widths (currently that style gets added to the application.css stylesheet
|
|
|
|
// after this one, so it takes precedence).
|
|
|
|
.gl-md-mt-11\! {
|
2021-06-24 20:08:34 -04:00
|
|
|
@media (min-width: $breakpoint-md) {
|
2021-07-15 11:09:41 -04:00
|
|
|
margin-top: $gl-spacing-scale-11 !important;
|
2021-06-24 20:08:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-15 11:09:41 -04:00
|
|
|
// Same as above (also without the !important) but for overriding `.gl-pt-6`
|
|
|
|
.gl-md-pt-11\! {
|
2021-06-24 20:08:34 -04:00
|
|
|
@media (min-width: $breakpoint-md) {
|
2021-07-15 11:09:41 -04:00
|
|
|
padding-top: $gl-spacing-scale-11 !important;
|
2021-06-24 20:08:34 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-10 04:08:45 -05:00
|
|
|
// This is used to help prevent issues with margin collapsing.
|
|
|
|
// See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing.
|
|
|
|
.gl-force-block-formatting-context::after {
|
|
|
|
content: '';
|
|
|
|
display: flex;
|
|
|
|
}
|
2020-12-09 10:10:12 -05:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1085
|
|
|
|
.gl-md-flex-direction-column {
|
|
|
|
@media (min-width: $breakpoint-md) {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Same as above
|
|
|
|
.gl-md-flex-direction-column\! {
|
|
|
|
@media (min-width: $breakpoint-md) {
|
|
|
|
flex-direction: column !important;
|
|
|
|
}
|
|
|
|
}
|
2021-02-05 16:09:19 -05:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1165
|
|
|
|
.gl-xs-mb-4 {
|
|
|
|
@media (max-width: $breakpoint-sm) {
|
|
|
|
margin-bottom: $gl-spacing-scale-4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Same as above
|
|
|
|
.gl-xs-mb-4\! {
|
|
|
|
@media (max-width: $breakpoint-sm) {
|
|
|
|
margin-bottom: $gl-spacing-scale-4 !important;
|
|
|
|
}
|
|
|
|
}
|
2021-02-22 19:11:11 -05:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1168
|
|
|
|
.gl-sm-pr-3 {
|
|
|
|
@media (min-width: $breakpoint-sm) {
|
|
|
|
padding-right: $gl-spacing-scale-3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1168
|
|
|
|
.gl-sm-w-half {
|
|
|
|
@media (min-width: $breakpoint-sm) {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
}
|
2021-04-28 11:09:35 -04:00
|
|
|
|
|
|
|
.gl-sm-mr-3 {
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
margin-right: $gl-spacing-scale-3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gl-mb-n3 {
|
|
|
|
margin-bottom: -$gl-spacing-scale-3;
|
|
|
|
}
|
2021-05-05 14:10:31 -04:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1408
|
|
|
|
$gl-line-height-42: px-to-rem(42px);
|
|
|
|
|
|
|
|
.gl-line-height-42 {
|
|
|
|
line-height: $gl-line-height-42;
|
|
|
|
}
|
2021-05-17 14:10:42 -04:00
|
|
|
|
|
|
|
.gl-w-grid-size-30 {
|
|
|
|
width: $grid-size * 30;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gl-w-grid-size-40 {
|
|
|
|
width: $grid-size * 40;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2209
|
|
|
|
.gl-max-w-none\! {
|
|
|
|
max-width: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/merge_requests/2209
|
|
|
|
.gl-max-h-none\! {
|
|
|
|
max-height: none !important;
|
|
|
|
}
|
2021-06-28 23:07:32 -04:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui by https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1465
|
|
|
|
.gl-popover {
|
|
|
|
.popover-header {
|
|
|
|
.gl-button.close {
|
|
|
|
margin-top: -$gl-spacing-scale-3;
|
|
|
|
margin-right: -$gl-spacing-scale-4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-12 08:09:39 -04:00
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui by https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1490
|
|
|
|
.gl-w-grid-size-28 {
|
|
|
|
width: $grid-size * 28;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Will be moved to @gitlab/ui by https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1491
|
|
|
|
.gl-min-w-8 {
|
|
|
|
min-width: $gl-spacing-scale-8;
|
|
|
|
}
|