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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

287 lines
4.3 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.nothing-here-block {
text-align: center;
2021-10-27 15:23:28 +05:30
padding: 16px;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-08-17 22:00:37 +05:30
font-size: 14px;
2016-08-24 12:49:21 +05:30
&.diff-collapsed {
padding: 5px;
2018-11-08 19:23:39 +05:30
line-height: 34px;
2016-08-24 12:49:21 +05:30
2016-11-03 12:29:30 +05:30
.click-to-expand {
cursor: pointer;
2018-11-08 19:23:39 +05:30
vertical-align: initial;
2016-08-24 12:49:21 +05:30
}
}
2014-09-02 18:07:02 +05:30
}
2015-09-25 12:07:36 +05:30
2019-09-04 21:01:54 +05:30
.oneline {
line-height: 35px;
}
2016-06-02 11:05:42 +05:30
.row-content-block {
margin-top: 0;
2017-08-17 22:00:37 +05:30
background-color: $gray-light;
2015-09-25 12:07:36 +05:30
padding: $gl-padding;
2016-06-02 11:05:42 +05:30
margin-bottom: 0;
border-top: 1px solid $white-dark;
border-bottom: 1px solid $white-dark;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2015-09-25 12:07:36 +05:30
2015-11-26 14:37:03 +05:30
&.oneline-block {
line-height: 42px;
}
&.white {
2020-04-22 19:07:51 +05:30
background-color: $white;
2015-11-26 14:37:03 +05:30
}
2015-09-25 12:07:36 +05:30
&.top-block {
2018-03-17 18:26:18 +05:30
border-top: 0;
.container-fluid {
background-color: inherit;
}
2015-09-25 12:07:36 +05:30
}
&.middle-block {
2018-10-15 14:42:47 +05:30
margin-top: $gl-padding-24;
2015-09-25 12:07:36 +05:30
margin-bottom: 0;
}
&.clear-block {
margin-bottom: $gl-padding - 1px;
padding-bottom: $gl-padding;
}
&.second-block {
margin-top: -1px;
margin-bottom: 0;
}
&.footer-block {
2018-10-15 14:42:47 +05:30
margin-top: $gl-padding-24;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2015-09-25 12:07:36 +05:30
}
&.content-component-block {
2021-09-04 01:27:46 +05:30
padding: 8px 0;
2021-02-22 17:27:13 +05:30
background-color: $body-bg;
}
2015-09-25 12:07:36 +05:30
.title {
color: $gl-text-color;
}
2015-12-23 02:04:40 +05:30
> p:last-child {
margin-bottom: 0;
}
2016-06-22 15:30:34 +05:30
}
.sub-header-block {
2020-04-22 19:07:51 +05:30
background-color: $white;
2016-06-22 15:30:34 +05:30
border-bottom: 1px solid $white-dark;
padding: 11px 0;
margin-bottom: 11px;
&.no-bottom-space {
border-bottom: 0;
margin-bottom: 0;
}
2015-09-25 12:07:36 +05:30
}
2015-11-26 14:37:03 +05:30
.cover-block {
text-align: center;
2017-08-17 22:00:37 +05:30
background: $gray-light;
padding-top: 44px;
2015-11-26 14:37:03 +05:30
position: relative;
.avatar-holder {
2017-08-17 22:00:37 +05:30
.avatar,
.identicon {
2015-11-26 14:37:03 +05:30
margin: 0 auto;
float: none;
}
.identicon {
2016-11-03 12:29:30 +05:30
border-radius: 50%;
2015-11-26 14:37:03 +05:30
}
}
.cover-title {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2015-11-26 14:37:03 +05:30
font-size: 23px;
2016-06-02 11:05:42 +05:30
h1 {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
margin-bottom: 6px;
font-size: 23px;
}
.visibility-icon {
display: inline-block;
margin-left: 5px;
font-size: 18px;
2019-07-07 11:18:12 +05:30
color: color('gray');
2016-06-02 11:05:42 +05:30
}
p {
padding: 0 $gl-padding;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
}
2015-11-26 14:37:03 +05:30
}
.cover-controls {
2020-04-08 14:13:33 +05:30
@include media-breakpoint-up(sm) {
position: absolute;
top: 1rem;
right: 1.25rem;
}
2015-12-23 02:04:40 +05:30
&.left {
2020-04-08 14:13:33 +05:30
@include media-breakpoint-up(sm) {
left: 1.25rem;
right: auto;
}
2015-12-23 02:04:40 +05:30
}
2015-11-26 14:37:03 +05:30
}
2016-06-02 11:05:42 +05:30
2016-11-03 12:29:30 +05:30
&.user-cover-block {
padding: 24px 0 0;
2018-03-17 18:26:18 +05:30
.nav-links {
width: 100%;
float: none;
&.scrolling-tabs {
float: none;
}
}
li:first-child {
margin-left: auto;
}
li:last-child {
margin-right: auto;
}
2016-11-03 12:29:30 +05:30
}
2015-12-23 02:04:40 +05:30
}
.content-block {
padding: $gl-padding 0;
border-bottom: 1px solid $white-dark;
&.oneline-block {
2016-04-02 18:10:28 +05:30
line-height: 36px;
}
> .controls {
float: right;
}
2016-09-29 09:46:39 +05:30
.new-branch {
margin-top: 3px;
}
}
2016-06-02 11:05:42 +05:30
.content-block-small {
2021-09-04 01:27:46 +05:30
padding: 4px 0;
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
.landing {
2017-09-10 17:25:29 +05:30
margin: $gl-padding auto;
2017-08-17 22:00:37 +05:30
overflow: hidden;
display: flex;
position: relative;
border: 1px solid $blue-300;
border-radius: $border-radius-default;
2018-03-17 18:26:18 +05:30
background-color: $blue-50;
2017-08-17 22:00:37 +05:30
justify-content: center;
.dismiss-button {
position: absolute;
2018-12-13 13:39:08 +05:30
right: $gl-padding-8;
top: $gl-padding-8;
2017-08-17 22:00:37 +05:30
cursor: pointer;
2018-12-13 13:39:08 +05:30
color: $blue-500;
2017-08-17 22:00:37 +05:30
z-index: 1;
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
background-color: transparent;
2018-12-13 13:39:08 +05:30
padding: $gl-padding-8;
line-height: 0;
2017-08-17 22:00:37 +05:30
&:hover,
&:focus {
2018-03-17 18:26:18 +05:30
border: 0;
2018-12-13 13:39:08 +05:30
color: $blue-700;
2017-08-17 22:00:37 +05:30
}
}
.svg-container {
align-self: center;
}
.inner-content {
text-align: left;
white-space: nowrap;
h4 {
color: $gl-text-color;
font-size: 17px;
}
p {
color: $gl-text-color;
margin-bottom: $gl-padding;
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(sm) {
2017-08-17 22:00:37 +05:30
flex-direction: column;
.inner-content {
white-space: normal;
padding: 0 28px;
text-align: center;
}
}
}
.empty-state {
2017-09-10 17:25:29 +05:30
margin: 5% auto 0;
2017-08-17 22:00:37 +05:30
.text-content {
max-width: 460px;
margin: 0 auto;
padding: $gl-padding;
}
.emoji-icon {
display: inline-block;
}
2021-11-18 22:05:49 +05:30
.btn:not(.split-content-button):not(.dropdown-toggle-split) {
2020-03-13 15:44:24 +05:30
margin: $gl-padding-8 $gl-padding-4;
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-08-17 22:00:37 +05:30
width: 100%;
2020-03-13 15:44:24 +05:30
margin: $gl-padding-8 0;
2017-08-17 22:00:37 +05:30
}
}
}
2018-11-18 11:00:15 +05:30
.code-block {
white-space: pre;
overflow-x: auto;
font-size: 12px;
border: 0;
padding: $grid-size;
code {
background-color: inherit;
padding: inherit;
}
}