gitlab-org--gitlab-foss/app/assets/stylesheets/pages/settings.scss

395 lines
5.9 KiB
SCSS
Raw Normal View History

@keyframes expandMaxHeight {
0% {
max-height: 0;
}
99% {
max-height: 100vh;
}
100% {
max-height: none;
}
}
@keyframes collapseMaxHeight {
0% {
max-height: 100vh;
}
100% {
max-height: 0;
}
}
.settings {
// border-top for each item except the top one
border-top: 1px solid $border-color;
&:first-of-type {
margin-top: 10px;
border: 0;
}
+ div .settings:first-of-type {
margin-top: 0;
border-top: 1px solid $border-color;
}
&.animating {
overflow: hidden;
}
}
.settings-header {
position: relative;
padding: 20px 110px 0 0;
h4 {
margin-top: 0;
}
.settings-title {
cursor: pointer;
}
button {
position: absolute;
top: 20px;
right: 6px;
min-width: 80px;
}
}
.settings-content {
max-height: 1px;
overflow-y: hidden;
padding-right: 110px;
animation: collapseMaxHeight 300ms ease-out;
// Keep the section from expanding when we scroll over it
pointer-events: none;
.settings.expanded & {
max-height: none;
overflow-y: visible;
animation: expandMaxHeight 300ms ease-in;
// Reset and allow clicks again when expanded
pointer-events: auto;
}
.settings.no-animate & {
animation: none;
}
2018-04-09 11:26:28 -04:00
@media(max-width: map-get($grid-breakpoints, md)-1) {
padding-right: 20px;
}
&::before {
content: ' ';
display: block;
height: 1px;
overflow: hidden;
margin-bottom: 4px;
}
&::after {
content: ' ';
display: block;
height: 1px;
overflow: hidden;
margin-top: 20px;
}
.sub-section {
margin-bottom: 32px;
padding: 16px;
border: 1px solid $border-color;
background-color: $gray-light;
}
.bs-callout,
2018-04-09 11:26:28 -04:00
.form-check:first-child,
.form-text.text-muted {
margin-top: 0;
}
}
.settings-list-icon {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
font-size: $default-icon-size;
line-height: 42px;
}
.settings-message {
padding: 5px;
line-height: 1.3;
color: $orange-700;
background-color: $orange-100;
border: 1px solid $orange-200;
border-radius: $border-radius-base;
}
2016-05-16 11:42:29 -04:00
.empty-variables {
padding: 20px 0;
}
2016-05-16 11:42:29 -04:00
.warning-title {
color: $orange-500;
2016-05-16 11:42:29 -04:00
}
.danger-title {
color: $red-500;
2016-05-16 11:42:29 -04:00
}
2016-11-21 17:11:21 -05:00
.integration-settings-form {
2018-06-07 16:37:07 -04:00
.card.card-body,
.info-well {
padding: $gl-padding / 2;
box-shadow: none;
}
.svg-container {
max-width: 150px;
}
}
.token-token-container {
#impersonation-token-token {
width: 80%;
display: inline;
}
.btn-clipboard {
margin-left: 5px;
}
}
.visibility-level-setting {
2018-04-09 11:26:28 -04:00
.form-check {
margin-bottom: 10px;
i.fa {
margin: 2px 0;
font-size: 20px;
}
.option-title {
font-weight: $gl-font-weight-normal;
display: inline-block;
color: $gl-text-color;
vertical-align: top;
}
.option-description,
.option-disabled-reason {
margin-left: 30px;
color: $project-option-descr-color;
margin-top: -5px;
}
.option-disabled-reason {
display: none;
}
&.disabled {
i.fa {
opacity: 0.5;
}
.option-description {
display: none;
}
.option-disabled-reason {
display: block;
}
}
}
}
.initialize-with-readme-setting {
.form-check {
margin-bottom: 10px;
.option-title {
font-weight: $gl-font-weight-normal;
display: inline-block;
color: $gl-text-color;
}
.option-description {
color: $project-option-descr-color;
}
}
}
.nested-settings {
padding-left: 20px;
}
.input-btn-group {
display: flex;
.input-large {
flex: 1;
}
.btn {
margin-left: 10px;
}
}
.content-list > .settings-flex-row {
display: flex;
align-items: center;
.float-right {
margin-left: auto;
}
}
.prometheus-metrics-monitoring {
2018-04-09 11:26:28 -04:00
.card {
.card-toggle {
2017-06-01 11:54:56 -04:00
width: 14px;
}
2018-04-09 11:26:28 -04:00
.badge.badge-pill {
font-size: 12px;
line-height: 12px;
}
.card-header .label-count {
color: $white;
background: $common-gray-dark;
}
2018-04-09 11:26:28 -04:00
.card-body {
padding: 0;
}
2017-05-31 09:35:54 -04:00
.flash-container {
margin-bottom: 0;
2017-06-01 11:54:56 -04:00
cursor: default;
2017-05-31 09:35:54 -04:00
.flash-notice {
border-radius: 0;
}
}
}
.custom-monitored-metrics {
.card-header {
display: flex;
align-items: center;
> .btn-success {
margin-left: auto;
}
}
.custom-metric {
display: flex;
align-items: center;
}
.custom-metric-link-bold {
font-weight: $gl-font-weight-bold;
text-decoration: none;
}
}
2017-06-01 11:54:56 -04:00
.loading-metrics .metrics-load-spinner {
color: $gl-gray-700;
2017-06-01 03:55:48 -04:00
}
.metrics-list {
2017-06-01 11:54:56 -04:00
margin-bottom: 0;
li {
2017-06-01 11:54:56 -04:00
padding: $gl-padding;
2018-04-09 11:26:28 -04:00
.badge.badge-pill {
2017-06-01 11:54:56 -04:00
margin-left: 5px;
background: $badge-bg;
}
2017-07-12 05:50:26 -04:00
/* Ensure we don't add border if there's only single li */
+ li {
border-top: 1px solid $border-color;
}
}
}
2017-05-31 10:47:31 -04:00
}
.saml-settings.info-well {
.form-control[readonly] {
background: $white;
}
}
.modal-doorkeepr-auth {
.modal-body {
padding: $gl-padding;
}
}
.personal-access-tokens-never-expires-label {
color: $note-disabled-comment-color;
}
.created-deploy-token-container {
.deploy-token-field {
width: 90%;
display: inline;
}
.btn-clipboard {
background-color: $white;
border: 1px solid $gray-100;
}
.deploy-token-help-block {
display: block;
margin-bottom: 0;
}
}
2018-07-25 07:05:40 -04:00
.mirror-error-badge {
background-color: $red-400;
2018-07-25 07:05:40 -04:00
border-radius: $border-radius-default;
color: $white;
2018-07-25 07:05:40 -04:00
}
2018-08-01 19:08:22 -04:00
.push-pull-table {
margin-top: 1em;
}
.ci-variable-table {
table {
thead {
border-bottom: 1px solid $white-normal;
}
tr {
td,
th {
padding-left: 0;
}
th {
background-color: transparent;
font-weight: $gl-font-weight-bold;
border: 0;
}
}
}
@media(max-width: map-get($grid-breakpoints, lg)-1) {
.truncated-container {
justify-content: flex-end;
}
}
}