debian-mirror-gitlab/app/assets/stylesheets/framework/common.scss

448 lines
6.8 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
/** COLORS **/
2017-08-17 22:00:37 +05:30
.cgray { color: $common-gray; }
.clgray { color: $common-gray-light; }
.cred { color: $common-red; }
.cgreen { color: $common-green; }
.cdark { color: $common-gray-dark; }
2014-09-02 18:07:02 +05:30
/** COMMON CLASSES **/
2016-06-02 11:05:42 +05:30
.prepend-top-0 { margin-top: 0; }
.prepend-top-5 { margin-top: 5px; }
2016-11-03 12:29:30 +05:30
.prepend-top-10 { margin-top: 10px; }
2015-12-23 02:04:40 +05:30
.prepend-top-default { margin-top: $gl-padding !important; }
2016-11-03 12:29:30 +05:30
.prepend-top-20 { margin-top: 20px; }
.prepend-left-5 { margin-left: 5px; }
.prepend-left-10 { margin-left: 10px; }
2016-06-02 11:05:42 +05:30
.prepend-left-default { margin-left: $gl-padding; }
2016-11-03 12:29:30 +05:30
.prepend-left-20 { margin-left: 20px; }
.append-right-5 { margin-right: 5px; }
.append-right-10 { margin-right: 10px; }
2016-06-02 11:05:42 +05:30
.append-right-default { margin-right: $gl-padding; }
2016-11-03 12:29:30 +05:30
.append-right-20 { margin-right: 20px; }
.append-bottom-0 { margin-bottom: 0; }
.append-bottom-10 { margin-bottom: 10px; }
.append-bottom-15 { margin-bottom: 15px; }
.append-bottom-20 { margin-bottom: 20px; }
2015-11-26 14:37:03 +05:30
.append-bottom-default { margin-bottom: $gl-padding; }
2016-11-03 12:29:30 +05:30
.inline { display: inline-block; }
.center { text-align: center; }
2017-08-17 22:00:37 +05:30
.vertical-align-middle { vertical-align: middle; }
2014-09-02 18:07:02 +05:30
.underlined-link { text-decoration: underline; }
2017-08-17 22:00:37 +05:30
.hint { font-style: italic; color: $hint-color; }
.light { color: $common-gray; }
2014-09-02 18:07:02 +05:30
.slead {
2017-08-17 22:00:37 +05:30
color: $common-gray;
font-size: 14px;
2014-09-02 18:07:02 +05:30
margin-bottom: 12px;
font-weight: normal;
line-height: 24px;
}
2017-08-17 22:00:37 +05:30
.bold {
font-weight: 600;
}
2014-09-02 18:07:02 +05:30
.tab-content {
overflow: visible;
}
pre {
&.clean {
background: none;
border: none;
margin: 0;
padding: 0;
}
&.well-pre {
2017-08-17 22:00:37 +05:30
border: 1px solid $well-pre-bg;
2016-09-29 09:46:39 +05:30
background: $gray-light;
2014-09-02 18:07:02 +05:30
border-radius: 0;
2017-08-17 22:00:37 +05:30
color: $well-pre-color;
}
&.wrap {
word-break: break-word;
white-space: pre-wrap;
2014-09-02 18:07:02 +05:30
}
}
2015-12-23 02:04:40 +05:30
hr {
2017-08-17 22:00:37 +05:30
margin: 24px 0;
border-top: 1px solid darken($gray-normal, 8%);
2015-12-23 02:04:40 +05:30
}
2014-09-02 18:07:02 +05:30
.str-truncated {
@include str-truncated;
}
2017-08-17 22:00:37 +05:30
.block-truncated {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
> div,
.str-truncated {
display: inline;
}
}
.item-title { font-weight: 600; }
2014-09-02 18:07:02 +05:30
/** FLASH message **/
2017-08-17 22:00:37 +05:30
.author_link,
.author-link {
2015-04-26 12:48:37 +05:30
color: $gl-link-color;
2014-09-02 18:07:02 +05:30
}
.back-link {
font-size: 14px;
}
table a code {
position: relative;
top: -2px;
margin-right: 3px;
}
.loading {
margin: 20px auto;
height: 40px;
2017-08-17 22:00:37 +05:30
color: $loading-color;
2014-09-02 18:07:02 +05:30
font-size: 32px;
text-align: center;
}
span.update-author {
display: block;
2017-08-17 22:00:37 +05:30
color: $update-author-color;
2014-09-02 18:07:02 +05:30
font-weight: normal;
font-style: italic;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
strong {
font-weight: bold;
font-style: normal;
}
}
.user-mention {
2017-08-17 22:00:37 +05:30
color: $user-mention-color;
2014-09-02 18:07:02 +05:30
font-weight: bold;
}
.field_with_errors {
display: inline;
}
p.time {
2017-08-17 22:00:37 +05:30
color: $time-color;
2014-09-02 18:07:02 +05:30
font-size: 90%;
margin: 30px 3px 3px 2px;
}
.highlight {
text-shadow: none;
}
2016-06-02 11:05:42 +05:30
.thin_area {
2014-09-02 18:07:02 +05:30
height: 150px;
}
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
2016-11-03 12:29:30 +05:30
img { max-width: 100%; }
2014-09-02 18:07:02 +05:30
.note-title {
li {
2016-06-02 11:05:42 +05:30
border-bottom: none !important;
2014-09-02 18:07:02 +05:30
}
}
}
.markdown {
img {
max-width: 100%;
}
}
2017-08-17 22:00:37 +05:30
.wiki_content code,
.readme code {
2014-09-02 18:07:02 +05:30
background-color: inherit;
}
2015-04-26 12:48:37 +05:30
.project_member_show {
2014-09-02 18:07:02 +05:30
td:first-child {
2017-08-17 22:00:37 +05:30
color: $project-member-show-color;
2014-09-02 18:07:02 +05:30
}
}
.rss-icon {
img {
width: 24px;
vertical-align: top;
}
strong {
line-height: 24px;
}
}
2015-09-11 14:41:01 +05:30
.show-suppressed-diff,
2014-09-02 18:07:02 +05:30
.show-all-commits {
cursor: pointer;
}
.git_error_tips {
@extend .col-md-6;
text-align: left;
margin-top: 40px;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
pre {
2017-08-17 22:00:37 +05:30
background: $white-light;
2014-09-02 18:07:02 +05:30
border: none;
font-size: 12px;
}
}
.error-message {
padding: 10px;
2017-08-17 22:00:37 +05:30
background: $error-bg;
2014-09-02 18:07:02 +05:30
margin: 0;
2017-08-17 22:00:37 +05:30
color: $white-light;
2014-09-02 18:07:02 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $white-light;
2014-09-02 18:07:02 +05:30
text-decoration: underline;
}
}
2015-04-26 12:48:37 +05:30
.browser-alert {
padding: 10px;
2014-09-02 18:07:02 +05:30
text-align: center;
2017-08-17 22:00:37 +05:30
background: $error-bg;
color: $white-light;
2015-04-26 12:48:37 +05:30
font-weight: bold;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $white-light;
2014-09-02 18:07:02 +05:30
text-decoration: underline;
}
}
.warning_message {
2017-08-17 22:00:37 +05:30
border-left: 4px solid $warning-message-border;
color: $warning-message-color;
2014-09-02 18:07:02 +05:30
padding: 10px;
margin-bottom: 10px;
2017-08-17 22:00:37 +05:30
background: $warning-message-bg;
2014-09-02 18:07:02 +05:30
padding-left: 20px;
&.centered {
text-align: center;
}
}
.gitlab-promo {
a {
2017-08-17 22:00:37 +05:30
color: $gl-promo-color;
2014-09-02 18:07:02 +05:30
margin-right: 30px;
}
}
.milestone {
&.milestone-closed {
2016-09-29 09:46:39 +05:30
background: $gray-light;
2014-09-02 18:07:02 +05:30
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.progress {
margin-bottom: 0;
margin-top: 4px;
2017-08-17 22:00:37 +05:30
box-shadow: none;
background-color: $border-gray-light;
2014-09-02 18:07:02 +05:30
}
}
.control-group {
.controls {
span {
&.descr {
position: relative;
top: 2px;
left: 5px;
2017-08-17 22:00:37 +05:30
color: $control-group-descr-color;
2014-09-02 18:07:02 +05:30
}
}
}
}
img.emoji {
height: 20px;
2016-09-29 09:46:39 +05:30
vertical-align: top;
2014-09-02 18:07:02 +05:30
width: 20px;
2017-08-17 22:00:37 +05:30
margin-top: 1px;
2014-09-02 18:07:02 +05:30
}
.chart {
overflow: hidden;
height: 220px;
}
.description-block {
@extend .light-well;
@extend .light;
margin-bottom: 10px;
}
table {
td.permission-x {
2017-08-17 22:00:37 +05:30
background: $table-permission-x-bg !important;
2014-09-02 18:07:02 +05:30
text-align: center;
}
}
.btn-sign-in {
text-shadow: none;
2016-06-02 11:05:42 +05:30
@media (min-width: $screen-sm-min) {
margin-top: 8px;
}
2014-09-02 18:07:02 +05:30
}
.side-filters {
fieldset {
margin-bottom: 15px;
}
}
2015-04-26 12:48:37 +05:30
.footer-links {
margin-bottom: 20px;
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
a {
margin-right: 15px;
}
2014-09-02 18:07:02 +05:30
}
2015-11-26 14:37:03 +05:30
.well {
2015-12-23 02:04:40 +05:30
margin-bottom: $gl-padding;
2017-08-17 22:00:37 +05:30
hr {
border-color: $gray-darker;
}
2015-11-26 14:37:03 +05:30
}
2014-09-02 18:07:02 +05:30
.search_box {
2015-09-11 14:41:01 +05:30
@extend .well;
2014-09-02 18:07:02 +05:30
text-align: center;
}
2015-04-26 12:48:37 +05:30
#nprogress .spinner {
2015-09-11 14:41:01 +05:30
top: 15px !important;
right: 10px !important;
2015-04-26 12:48:37 +05:30
}
.header-with-avatar {
h3 {
margin: 0;
font-weight: bold;
}
.username {
font-size: 18px;
2017-08-17 22:00:37 +05:30
color: $username-color;
2015-04-26 12:48:37 +05:30
margin-top: 8px;
}
.description {
2015-09-25 12:07:36 +05:30
font-size: $gl-font-size;
2017-08-17 22:00:37 +05:30
color: $description-color;
2015-04-26 12:48:37 +05:30
margin-top: 8px;
}
}
2015-09-11 14:41:01 +05:30
.profiler-results {
2015-09-25 12:07:36 +05:30
top: 73px !important;
2015-09-11 14:41:01 +05:30
.profiler-button,
.profiler-controls {
2017-08-17 22:00:37 +05:30
border-color: $profiler-border !important;
2015-09-11 14:41:01 +05:30
}
}
2015-09-25 12:07:36 +05:30
.dropzone .dz-preview .dz-progress {
border-color: $border-color !important;
}
.dropzone .dz-preview .dz-progress .dz-upload {
background: $gl-success !important;
}
2015-10-24 18:46:33 +05:30
.space-right {
margin-right: 10px;
}
2015-12-23 02:04:40 +05:30
2017-08-17 22:00:37 +05:30
.alert,
.progress {
2015-12-23 02:04:40 +05:30
margin-bottom: $gl-padding;
}
2016-04-02 18:10:28 +05:30
.project-item-select-holder {
2015-12-23 02:04:40 +05:30
display: inline-block;
position: relative;
2016-04-02 18:10:28 +05:30
.project-item-select {
2015-12-23 02:04:40 +05:30
position: absolute;
top: 0;
right: 0;
2016-06-02 11:05:42 +05:30
min-width: 250px;
2015-12-23 02:04:40 +05:30
visibility: hidden;
}
}
.content-separator {
margin-left: -$gl-padding;
margin-right: -$gl-padding;
border-top: 1px solid $border-color;
}
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
.hide-bottom-border {
border-bottom: none !important;
}
.gl-accessibility {
&:focus {
top: 1px;
left: 1px;
width: auto;
height: 100%;
line-height: 50px;
padding: 0 10px;
clip: auto;
text-decoration: none;
color: $gl-text-color;
background: $gray-light;
z-index: 1;
}
}
.bordered-box {
border: 1px solid $border-color;
border-radius: $border-radius-default;
}
.str-truncated {
&-60 {
@include str-truncated(60%);
}
&-100 {
@include str-truncated(100%);
}
}
.tooltip {
.tooltip-inner {
word-wrap: break-word;
}
}