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

359 lines
5.3 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.centered-light-block {
text-align: center;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2014-09-02 18:07:02 +05:30
margin: 20px;
}
.nothing-here-block {
text-align: center;
padding: 20px;
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 {
padding: 11px 0;
2020-04-22 19:07:51 +05:30
background-color: $white;
}
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;
}
.block-controls {
2017-08-17 22:00:37 +05:30
display: flex;
justify-content: flex-end;
flex: 1;
.control {
float: left;
margin-left: 10px;
}
}
2016-06-02 11:05:42 +05:30
&.build-content {
2020-04-22 19:07:51 +05:30
background-color: $white;
2018-03-17 18:26:18 +05:30
border-top: 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-desc {
2016-06-02 11:05:42 +05:30
&.username:last-child {
padding-bottom: $gl-padding;
}
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
&.groups-cover-block {
2020-04-22 19:07:51 +05:30
background: $white;
2016-06-02 11:05:42 +05:30
border-bottom: 1px solid $border-color;
text-align: left;
padding: 24px 0;
.group-info {
.cover-title {
margin-top: 9px;
}
p {
margin-bottom: 0;
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2016-06-02 11:05:42 +05:30
text-align: center;
.avatar {
float: none;
}
}
}
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
}
2016-06-02 11:05:42 +05:30
.group-info {
h1 {
display: inline;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2016-06-02 11:05:42 +05:30
font-size: 24px;
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
}
2015-12-23 02:04:40 +05:30
.block-connector {
margin-top: -1px;
}
.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 {
padding: 10px 0;
}
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;
}
.btn {
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-03-17 18:26:18 +05:30
.flex-right {
margin-left: auto;
}
2018-11-18 11:00:15 +05:30
.code-block {
background: $black;
color: $gray-darkest;
white-space: pre;
overflow-x: auto;
font-size: 12px;
border: 0;
padding: $grid-size;
code {
background-color: inherit;
padding: inherit;
}
}