gitlab-org--gitlab-foss/app/assets/stylesheets/framework/common.scss

485 lines
8.2 KiB
SCSS
Raw Normal View History

/** COLORS **/
.cgray { color: $gl-text-color; }
2016-11-30 08:25:25 -05:00
.clgray { color: $common-gray-light; }
.cred { color: $red-500; }
.cgreen { color: $green-600; }
2016-11-30 08:25:25 -05:00
.cdark { color: $common-gray-dark; }
.text-plain,
.text-plain:hover {
color: $gl-text-color;
}
.text-secondary {
color: $gl-text-color-secondary;
}
.text-tertiary {
color: $gl-text-color-tertiary;
}
.text-primary,
.text-primary:hover {
color: $brand-primary;
}
.text-success,
.text-success:hover {
color: $brand-success;
}
.text-danger,
.text-danger:hover {
color: $brand-danger;
}
2018-11-07 12:20:17 -05:00
.text-danger-muted,
.text-danger-muted:hover {
color: $red-300;
}
.text-warning,
.text-warning:hover {
color: $brand-warning;
}
.text-info,
.text-info:hover {
color: $brand-info;
}
.text-break-word {
word-break: break-all;
}
.text-underline,
.text-underline:hover {
text-decoration: underline;
}
.hint {
font-style: italic;
color: $gl-gray-400;
}
.light { color: $gl-text-color; }
2012-11-29 11:09:27 -05:00
2013-08-04 06:16:27 -04:00
.slead {
color: $gl-text-color;
2016-12-02 14:43:33 -05:00
font-size: 14px;
2013-08-04 06:16:27 -04:00
margin-bottom: 12px;
font-weight: $gl-font-weight-normal;
2013-08-04 06:16:27 -04:00
line-height: 24px;
}
2017-04-19 12:43:57 -04:00
.bold {
font-weight: $gl-font-weight-bold;
2017-04-19 12:43:57 -04:00
}
.tab-content {
overflow: visible;
}
pre {
&.clean {
background: none;
2017-11-02 19:59:51 -04:00
border: 0;
margin: 0;
padding: 0;
}
&.wrap {
word-break: break-word;
white-space: pre-wrap;
}
}
hr {
margin: 24px 0;
border-top: 1px solid darken($gray-normal, 8%);
}
.str-truncated {
2014-05-26 16:26:41 -04:00
@include str-truncated;
2017-07-12 05:50:26 -04:00
&-30 {
@include str-truncated(30%);
}
2017-07-12 05:50:26 -04:00
&-60 {
@include str-truncated(60%);
}
&-100 {
@include str-truncated(100%);
}
}
.block-truncated {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
> div:not(.block),
.str-truncated {
display: inline;
}
}
.item-title { font-weight: $gl-font-weight-bold; }
2017-05-09 00:15:34 -04:00
.author-link {
2018-08-14 12:44:08 -04:00
color: $blue-600;
}
.author-link:hover {
text-decoration: none;
}
2017-07-12 05:50:26 -04:00
table {
a code {
position: relative;
top: -2px;
margin-right: 3px;
}
}
.loading {
margin: 20px auto;
height: 40px;
color: $gl-gray-700;
font-size: 32px;
text-align: center;
}
p.time {
color: $gl-gray-400;
font-size: 90%;
margin: 30px 3px 3px 2px;
}
.highlight {
text-shadow: none;
}
.thin-area {
height: 150px;
}
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
img { max-width: 100%; }
.note-title {
li {
2017-11-02 19:59:51 -04:00
border-bottom: 0 !important;
}
}
}
.markdown {
img {
max-width: 100%;
}
}
.wiki_content code,
.readme code {
background-color: inherit;
}
.show-suppressed-diff,
.show-all-commits {
cursor: pointer;
}
.error-message {
padding: 10px;
background: $red-400;
margin: 0;
2016-11-30 08:25:25 -05:00
color: $white-light;
a {
2016-11-30 08:25:25 -05:00
color: $white-light;
text-decoration: underline;
}
}
.warning_message {
border-left: 4px solid $orange-200;
color: $orange-700;
padding: 10px;
margin-bottom: 10px;
background: $orange-100;
padding-left: 20px;
&.centered {
text-align: center;
}
}
.gitlab-promo {
a {
color: $gl-gray-350;
margin-right: 30px;
}
}
.milestone {
.progress {
margin-top: 4px;
2017-01-31 16:26:32 -05:00
box-shadow: none;
background-color: $border-gray-light;
}
}
img.emoji {
height: 20px;
2016-08-25 10:53:42 -04:00
vertical-align: top;
width: 20px;
margin-top: 1px;
}
.chart {
overflow: hidden;
height: 220px;
}
.description-block {
@extend .light-well;
@extend .light;
margin-bottom: 10px;
}
.footer-links {
margin-bottom: 20px;
a {
margin-right: 15px;
}
}
2018-04-09 11:26:28 -04:00
.card.card-body {
margin-bottom: $gl-padding;
hr {
border-color: $gray-darker;
}
2015-11-11 10:26:12 -05:00
}
.search_box {
2018-04-09 11:26:28 -04:00
@extend .card.card-body;
text-align: center;
}
.dropzone .dz-preview .dz-progress {
border-color: $border-color !important;
2017-07-12 05:50:26 -04:00
.dz-upload {
background: $green-500 !important;
2017-07-12 05:50:26 -04:00
}
}
.dz-message {
margin: 0;
}
.space-right {
margin-right: 10px;
}
.alert {
margin-bottom: $gl-padding;
}
.progress {
height: 4px;
}
2016-01-15 04:13:12 -05:00
.project-item-select-holder {
display: inline-block;
position: relative;
2016-01-15 04:13:12 -05:00
.project-item-select {
position: absolute;
top: 0;
right: 0;
min-width: 250px;
visibility: hidden;
}
}
.gl-accessibility {
2016-11-17 17:07:13 -05:00
&:focus {
2017-09-07 00:48:40 -04:00
display: flex;
align-items: center;
2016-11-17 17:07:13 -05:00
top: 1px;
left: 1px;
width: auto;
height: 100%;
padding: 0 10px;
clip: auto;
text-decoration: none;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-11-17 17:07:13 -05:00
background: $gray-light;
z-index: 1;
}
}
2017-05-02 04:05:43 -04:00
.bordered-box {
border: 1px solid $border-color;
border-radius: $border-radius-default;
}
.tooltip {
.tooltip-inner {
word-wrap: break-word;
}
}
.disabled-content {
pointer-events: none;
opacity: 0.5;
}
.break-word {
word-wrap: break-word;
}
.checkbox-icon-inline-wrapper {
.checkbox {
display: inline;
label {
display: inline;
}
}
}
.outline-0 {
outline: 0;
&:focus {
outline: 0;
}
}
/** COMMON CLASSES **/
.prepend-top-0 { margin-top: 0; }
2018-05-02 04:08:16 -04:00
.prepend-top-2 { margin-top: 2px; }
2018-11-07 12:20:17 -05:00
.prepend-top-4 { margin-top: $gl-padding-4; }
.prepend-top-5 { margin-top: 5px; }
.prepend-top-8 { margin-top: $grid-size; }
.prepend-top-10 { margin-top: 10px; }
.prepend-top-15 { margin-top: 15px; }
.prepend-top-default { margin-top: $gl-padding !important; }
.prepend-top-16 { margin-top: 16px; }
.prepend-top-20 { margin-top: 20px; }
.prepend-top-32 { margin-top: 32px; }
.prepend-left-4 { margin-left: 4px; }
.prepend-left-5 { margin-left: 5px; }
.prepend-left-8 { margin-left: 8px; }
.prepend-left-10 { margin-left: 10px; }
.prepend-left-15 { margin-left: 15px; }
.prepend-left-default { margin-left: $gl-padding; }
.prepend-left-20 { margin-left: 20px; }
.prepend-left-32 { margin-left: 32px; }
.append-right-4 { margin-right: 4px; }
.append-right-5 { margin-right: 5px; }
.append-right-8 { margin-right: 8px; }
.append-right-10 { margin-right: 10px; }
.append-right-15 { margin-right: 15px; }
.append-right-default { margin-right: $gl-padding; }
.append-right-20 { margin-right: 20px; }
.prepend-right-32 { margin-right: 32px; }
.append-bottom-0 { margin-bottom: 0; }
2018-11-07 12:20:17 -05:00
.append-bottom-4 { margin-bottom: $gl-padding-4; }
.append-bottom-5 { margin-bottom: 5px; }
.append-bottom-8 { margin-bottom: $grid-size; }
.append-bottom-10 { margin-bottom: 10px; }
.append-bottom-15 { margin-bottom: 15px; }
.append-bottom-20 { margin-bottom: 20px; }
.append-bottom-default { margin-bottom: $gl-padding; }
.prepend-bottom-32 { margin-bottom: 32px; }
.inline { display: inline-block; }
.center { text-align: center; }
.block { display: block; }
.flex { display: flex; }
.vertical-align-middle { vertical-align: middle; }
.vertical-align-sub { vertical-align: sub; }
.flex-align-self-center { align-self: center; }
.flex-grow { flex-grow: 1; }
.flex-no-shrink { flex-shrink: 0; }
.ws-initial { white-space: initial; }
.ws-normal { white-space: normal; }
.overflow-auto { overflow: auto; }
.d-flex-center {
display: flex;
align-items: center;
justify-content: center;
}
/** COMMON SIZING CLASSES **/
.w-0 { width: 0; }
2019-02-04 00:53:34 -05:00
.h-12em { height: 12em; }
.mw-460 { max-width: 460px; }
.mw-6em { max-width: 6em; }
2019-02-04 00:53:34 -05:00
2018-12-07 11:29:32 -05:00
.min-height-0 { min-height: 0; }
.w-3 { width: #{3 * $grid-size}; }
.h-3 { width: #{3 * $grid-size}; }
/** COMMON SPACING CLASSES **/
.gl-pl-0 { padding-left: 0; }
.gl-pl-1 { padding-left: #{0.5 * $grid-size}; }
.gl-pl-2 { padding-left: $grid-size; }
.gl-pl-3 { padding-left: #{2 * $grid-size}; }
.gl-pl-4 { padding-left: #{3 * $grid-size}; }
.gl-pl-5 { padding-left: #{4 * $grid-size}; }
.gl-pr-0 { padding-right: 0; }
.gl-pr-1 { padding-right: #{0.5 * $grid-size}; }
.gl-pr-2 { padding-right: $grid-size; }
.gl-pr-3 { padding-right: #{2 * $grid-size}; }
.gl-pr-4 { padding-right: #{3 * $grid-size}; }
.gl-pr-5 { padding-right: #{4 * $grid-size}; }
/**
* Removes browser specific clear icon from input fields in
* Internet Explorer 10, Internet Explorer 11, and Microsoft Edge.
* This is intended for elements which add a customized clear icon.
*
* see also https://developer.mozilla.org/en-US/docs/Web/CSS/::-ms-clear
*/
.ms-no-clear ::-ms-clear {
display: none;
}
2019-01-31 05:28:26 -05:00
/** COMMON POSITIONING CLASSES */
.position-bottom-0 { bottom: 0 !important; }
.position-left-0 { left: 0 !important; }
.position-right-0 { right: 0 !important; }
.position-top-0 { top: 0 !important; }
.drag-handle {
width: 4px;
&:hover {
background-color: $white-normal;
}
&.is-dragging {
background-color: $gray-600;
}
}
.cursor-pointer {
cursor: pointer;
}