2020-05-24 23:13:21 +05:30
/ * *
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-07-07 11:18:12 +05:30
@each $index , $size in $type-scale {
#{ ' .text- #{ $index } ' } {
font-size : $size ;
}
}
2019-12-04 20:38:33 +05:30
2019-12-26 22:10:19 +05:30
@each $index , $size in $size-scale {
#{ ' .mw- #{ $index } ' } {
max-width : $size ;
}
}
2020-03-13 15:44:24 +05:30
@each $index , $size in $type-scale {
#{ ' .lh- #{ $index } ' } {
line-height : $size ;
}
}
@for $i from 1 through 12 {
#{ ' .tab-width- #{ $i } ' } {
2020-07-28 23:09:34 +05:30
/* stylelint-disable-next-line property-no-vendor-prefix */
2020-03-13 15:44:24 +05:30
-moz-tab-size : $i ;
tab-size : $i ;
}
}
2019-12-04 20:38:33 +05:30
. border-width-1px { border-width : 1 px ; }
. 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-04-22 19:07:51 +05:30
. border-radius-default { border-radius : $border-radius-default ; }
2020-05-24 23:13:21 +05:30
. border-radius-small { border-radius : $border-radius-small ; }
2019-12-26 22:10:19 +05:30
. box-shadow-default { box-shadow : 0 2 px 4 px 0 $black-transparent ; }
2020-03-13 15:44:24 +05:30
. gl-children-ml-sm-3 > * {
@include media-breakpoint-up ( sm ) {
@include gl-ml-3 ;
}
}
2022-03-02 08:16:31 +05:30
. gl-first-child-ml-sm-0 > a : first-child ,
. gl-first-child-ml-sm-0 > button : first-child {
@include media-breakpoint-up ( sm ) {
@include gl-ml-0 ;
}
}
2020-01-01 13:55:28 +05:30
. mh-50vh { max-height : 50 vh ; }
2020-04-22 19:07:51 +05:30
. 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-09-30 23:02:18 +05:30
// .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-03-13 15:44:24 +05:30
. font-size-inherit { font-size : inherit ; }
2020-04-08 14:13:33 +05:30
. gl-w-16 { width : px-to-rem ( $grid-size * 2 ) ; }
2019-12-26 22:10:19 +05:30
. gl-w-64 { width : px-to-rem ( $grid-size * 8 ) ; }
2020-03-13 15:44:24 +05:30
. gl-h-32 { height : px-to-rem ( $grid-size * 4 ) ; }
2019-12-26 22:10:19 +05:30
. gl-h-64 { height : px-to-rem ( $grid-size * 8 ) ; }
2020-01-01 13:55:28 +05:30
2020-10-24 23:57:45 +05:30
// 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 ; }
2020-01-01 13:55:28 +05:30
. gl-bg-purple-light { background-color : $purple-light ; }
2020-06-23 00:09:42 +05:30
// 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-04-22 19:07:51 +05:30
}
2020-05-24 23:13:21 +05:30
2020-07-28 23:09:34 +05:30
. gl-transition-property-stroke-opacity {
transition-property : stroke-opacity ;
}
. gl-transition-property-stroke {
transition-property : stroke ;
}
. gl-top-66vh {
top : 66 vh ;
}
2020-11-24 15:15:51 +05:30
. gl-shadow-x0-y0-b3-s1-blue-500 {
box-shadow : inset 0 0 3 px $gl-border-size-1 $blue-500 ;
}
2021-01-03 14:25:43 +05:30
// This utility is used to force the z-index to match that of dropdown menu's
. gl-z-dropdown-menu \ ! {
2021-03-11 19:13:27 +05:30
z-index : $zindex-dropdown-menu !important ;
2020-11-24 15:15:51 +05:30
}
2021-01-03 14:25:43 +05:30
. gl-flex-basis-quarter {
flex-basis : 25 % ;
2020-11-24 15:15:51 +05:30
}
2021-09-30 23:02:18 +05:30
// 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 \ ! {
@media ( min-width : $breakpoint-md ) {
margin-top : $gl-spacing-scale-11 !important ;
}
}
// Same as above (also without the !important) but for overriding `.gl-pt-6`
. gl-md-pt-11 \ ! {
@media ( min-width : $breakpoint-md ) {
padding-top : $gl-spacing-scale-11 !important ;
}
}
2021-01-29 00:20:46 +05:30
// 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 ;
}
2021-02-22 17:27:13 +05:30
2021-06-08 01:23:25 +05:30
. gl-sm-mr-3 {
@include media-breakpoint-up ( sm ) {
margin-right : $gl-spacing-scale-3 ;
}
}
2022-04-04 11:22:00 +05:30
. gl-xl-ml-3 {
@include media-breakpoint-up ( lg ) {
margin-left : $gl-spacing-scale-3 ;
}
}
2021-10-27 15:23:28 +05:30
. gl-mr-n2 {
margin-right : - $gl-spacing-scale-2 ;
}
2021-06-08 01:23:25 +05:30
. gl-w-grid-size-30 {
width : $grid-size * 30 ;
}
. gl-w-grid-size-40 {
width : $grid-size * 40 ;
}
2021-10-27 15:23:28 +05:30
. gl-max-w-50p {
max-width : 50 % ;
}
2021-11-11 11:23:49 +05:30
/ * *
Note : : : -webkit-scrollbar is a non-standard rule only
supported by webkit browsers .
It is added here to migrate components that use
scrolling-links ( ) mixin from ` app / assets / stylesheets / framework / mixins . scss ` .
It should not be used elsewhere : it may impact accessibility as well as
add browser compatibility issues .
See : https : / / developer . mozilla . org / en-US / docs / Web / CSS / : : -webkit-scrollbar
* * /
. gl-webkit-scrollbar-display-none {
& : : -webkit-scrollbar {
display : none ;
}
}
2021-12-11 22:18:48 +05:30
2022-11-25 23:54:43 +05:30
// Will be moved to @gitlab/ui by https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1465
2021-12-11 22:18:48 +05:30
. gl-focus-ring-border-1-gray-900 \ ! {
@include gl-focus ( $gl-border-size-1 , $gray-900 , true ) ;
}
2022-04-04 11:22:00 +05:30
/ *
All of the following ( up until the " End gitlab-ui#1709 " comment ) will be moved
to @ gitlab / ui by https : / / gitlab . com / gitlab-org / gitlab-ui / - / issues / 1709
* /
. gl-md-grid-template-columns-3 {
@include media-breakpoint-up ( md ) {
grid-template-columns : repeat ( 3 , 1 fr ) ;
}
}
. gl-lg-grid-template-columns-4 {
@include media-breakpoint-up ( lg ) {
grid-template-columns : repeat ( 4 , 1 fr ) ;
}
}
. gl-max-w-48 {
max-width : $gl-spacing-scale-48 ;
}
. gl-max-w-75 {
max-width : $gl-spacing-scale-75 ;
}
. gl-md-pt-11 {
@include media-breakpoint-up ( md ) {
padding-top : $gl-spacing-scale-11 !important ; // only need !important for now so that it overrides styles from @gitlab/ui which currently take precedence
}
}
. gl-md-mb-6 {
@include media-breakpoint-up ( md ) {
margin-bottom : $gl-spacing-scale-6 !important ; // only need !important for now so that it overrides styles from @gitlab/ui which currently take precedence
}
}
. gl-md-mb-12 {
@include media-breakpoint-up ( md ) {
margin-bottom : $gl-spacing-scale-12 !important ; // only need !important for now so that it overrides styles from @gitlab/ui which currently take precedence
}
}
2022-05-07 20:08:51 +05:30
2023-03-17 16:20:25 +05:30
. gl-mt-n5 {
margin-top : - $gl-spacing-scale-5 ;
}
// Utils below are very specific so cannot be part of GitLab UI
. gl-md-mt-5 {
@include gl-media-breakpoint-up ( md ) {
margin-top : $gl-spacing-scale-5 ;
}
}
. gl-sm-mr-0 \ ! {
@include gl-media-breakpoint-down ( md ) {
margin-right : 0 !important ;
}
}
. gl-sm-mb-5 {
@include gl-media-breakpoint-down ( md ) {
margin-bottom : $gl-spacing-scale-5 ;
}
}
. gl-md-mb-3 \ ! {
@include gl-media-breakpoint-up ( md ) {
margin-bottom : $gl-spacing-scale-3 !important ;
2023-03-04 22:38:38 +05:30
}
}
2023-05-27 22:25:52 +05:30
. gl-font-xs {
font-size : px-to-rem ( 10 px ) ;
}
. gl-line-height-12 {
line-height : px-to-rem ( 12 px ) ;
}
. gl-letter-spacing-06em {
letter-spacing : 0 .06 em ;
}
. gl-flex-flow-row-wrap {
flex-flow : row wrap ;
}
. gl-isolate {
isolation : isolate ;
}
. gl-text-transform-uppercase {
text-transform : uppercase ;
}
2023-03-17 16:20:25 +05:30
2023-05-27 22:25:52 +05:30
/ *
* The below style will be moved to @ gitlab / ui by
* https : / / gitlab . com / gitlab-org / gitlab-ui / - / issues / 2177
* /
2023-03-17 16:20:25 +05:30
. gl-gap-2 {
gap : $gl-spacing-scale-2 ;
}
2023-05-27 22:25:52 +05:30
. gl-bg-t-gray-a-08 {
background-color : $t-gray-a-08 ;
}
2023-03-17 16:20:25 +05:30
. gl-hover-bg-t-gray-a-08 : hover {
background-color : $t-gray-a-08 ;
}
2023-05-27 22:25:52 +05:30
. gl-inset-border-1-gray-a-08 {
box-shadow : inset 0 0 0 $gl-border-size-1 $t-gray-a-08 ;
}
2022-05-07 20:08:51 +05:30
2023-05-27 22:25:52 +05:30
. gl-line-height-1 {
line-height : 1 ;
2022-05-07 20:08:51 +05:30
}
2022-07-16 23:28:13 +05:30
2023-05-27 22:25:52 +05:30
. gl-focus : focus {
@include gl-focus ;
2022-07-23 23:45:48 +05:30
}
2023-03-04 22:38:38 +05:30
2023-05-27 22:25:52 +05:30
. gl-md-justify-content-space-between {
@include gl-media-breakpoint-up ( md ) {
justify-content : space-between ;
}
2023-03-17 16:20:25 +05:30
}