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

484 lines
7.5 KiB
SCSS
Raw Normal View History

/** COLORS **/
2016-11-30 08:25:25 -05:00
.cgray { color: $common-gray; }
.clgray { color: $common-gray-light; }
.cred { color: $common-red; }
.cgreen { color: $common-green; }
.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;
}
.text-warning,
.text-warning:hover {
color: $brand-warning;
}
.text-info,
.text-info:hover {
color: $brand-info;
}
2016-11-30 08:25:25 -05:00
.hint { font-style: italic; color: $hint-color; }
.light { color: $common-gray; }
2012-11-29 11:09:27 -05:00
2013-08-04 06:16:27 -04:00
.slead {
2016-11-30 08:25:25 -05:00
color: $common-gray;
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;
}
2018-04-09 11:26:28 -04:00
&.card.card-body-pre {
2016-11-30 08:25:25 -05:00
border: 1px solid $well-pre-bg;
background: $gray-light;
border-radius: 0;
2016-11-30 08:25:25 -05:00
color: $well-pre-color;
}
&.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
&-60 {
@include str-truncated(60%);
}
&-100 {
@include str-truncated(100%);
}
}
.block-truncated {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
> div,
.str-truncated {
display: inline;
}
}
.item-title { font-weight: $gl-font-weight-bold; }
/** FLASH message **/
2017-05-09 00:15:34 -04:00
.author_link,
.author-link {
2015-03-06 23:02:34 -05:00
color: $gl-link-color;
}
.back-link {
font-size: 14px;
}
2017-07-12 05:50:26 -04:00
table {
a code {
position: relative;
top: -2px;
margin-right: 3px;
}
td.permission-x {
background: $table-permission-x-bg !important;
text-align: center;
}
}
.loading {
margin: 20px auto;
height: 40px;
2016-11-30 08:25:25 -05:00
color: $loading-color;
font-size: 32px;
text-align: center;
}
span.update-author {
display: block;
2016-11-30 08:25:25 -05:00
color: $update-author-color;
font-weight: $gl-font-weight-normal;
font-style: italic;
strong {
font-weight: $gl-font-weight-bold;
font-style: normal;
}
}
.field_with_errors {
display: inline;
}
p.time {
2016-11-30 08:25:25 -05:00
color: $time-color;
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;
}
.project_member_show {
td:first-child {
2016-11-30 08:25:25 -05:00
color: $project-member-show-color;
}
}
.rss-icon {
img {
width: 24px;
vertical-align: top;
}
strong {
line-height: 24px;
}
}
.show-suppressed-diff,
.show-all-commits {
cursor: pointer;
}
.git_error_tips {
2018-04-09 11:26:28 -04:00
@extend .col-lg-6;
text-align: left;
margin-top: 40px;
pre {
2016-11-30 08:25:25 -05:00
background: $white-light;
2017-11-02 19:59:51 -04:00
border: 0;
font-size: 12px;
}
}
.error-message {
padding: 10px;
2016-11-30 08:25:25 -05:00
background: $error-bg;
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 {
2016-11-30 08:25:25 -05:00
border-left: 4px solid $warning-message-border;
color: $warning-message-color;
padding: 10px;
margin-bottom: 10px;
2016-11-30 08:25:25 -05:00
background: $warning-message-bg;
padding-left: 20px;
&.centered {
text-align: center;
}
}
.gitlab-promo {
a {
2016-11-30 08:25:25 -05:00
color: $gl-promo-color;
margin-right: 30px;
}
}
.milestone {
&.milestone-closed {
background: $gray-light;
}
.progress {
margin-bottom: 0;
margin-top: 4px;
2017-01-31 16:26:32 -05:00
box-shadow: none;
background-color: $border-gray-light;
}
}
.control-group {
.controls {
span {
&.descr {
position: relative;
top: 2px;
left: 5px;
2016-11-30 08:25:25 -05:00
color: $control-group-descr-color;
}
}
}
}
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;
}
.btn-sign-in {
text-shadow: none;
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(sm) {
margin-top: 8px;
}
}
.side-filters {
fieldset {
margin-bottom: 15px;
}
}
.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;
}
.header-with-avatar {
h3 {
margin: 0;
font-weight: $gl-font-weight-bold;
}
.username {
font-size: 18px;
2016-11-30 08:25:25 -05:00
color: $username-color;
margin-top: 8px;
}
.description {
font-size: $gl-font-size;
2016-11-30 08:25:25 -05:00
color: $description-color;
margin-top: 8px;
}
}
.profiler-results {
top: 73px !important;
.profiler-button,
.profiler-controls {
2016-11-30 08:25:25 -05:00
border-color: $profiler-border !important;
}
}
.dropzone .dz-preview .dz-progress {
border-color: $border-color !important;
2017-07-12 05:50:26 -04:00
.dz-upload {
background: $gl-success !important;
}
}
.dz-message {
margin: 0;
}
.space-right {
margin-right: 10px;
}
.alert,
.progress {
margin-bottom: $gl-padding;
}
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;
}
}
.content-separator {
margin-left: -$gl-padding;
margin-right: -$gl-padding;
border-top: 1px solid $border-color;
}
.hide-bottom-border {
2017-11-02 19:59:51 -04:00
border-bottom: 0 !important;
}
.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: .5;
}
.break-word {
word-wrap: break-word;
}
/** COMMON CLASSES **/
.prepend-top-0 { margin-top: 0; }
2018-05-02 04:08:16 -04:00
.prepend-top-2 { margin-top: 2px; }
.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-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-default { margin-left: $gl-padding; }
.prepend-left-20 { margin-left: 20px; }
.append-right-5 { margin-right: 5px; }
.append-right-8 { margin-right: 8px; }
.append-right-10 { margin-right: 10px; }
.append-right-default { margin-right: $gl-padding; }
.append-right-20 { margin-right: 20px; }
.append-bottom-0 { margin-bottom: 0; }
.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; }
.inline { display: inline-block; }
.center { text-align: center; }
.vertical-align-middle { vertical-align: middle; }