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

359 lines
5.2 KiB
SCSS
Raw Normal View History

.centered-light-block {
text-align: center;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
margin: 20px;
}
.nothing-here-block {
text-align: center;
padding: 20px;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
font-weight: $gl-font-weight-normal;
font-size: 14px;
2016-07-06 20:11:44 +00:00
&.diff-collapsed {
padding: 5px;
.click-to-expand {
cursor: pointer;
}
2016-07-06 20:11:44 +00:00
}
}
2016-04-25 20:02:15 +00:00
.row-content-block {
margin-top: 0;
2016-12-12 22:26:21 +00:00
background-color: $gray-light;
padding: $gl-padding;
margin-bottom: 0;
2016-05-19 15:11:54 +00:00
border-top: 1px solid $white-dark;
border-bottom: 1px solid $white-dark;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
&.oneline-block {
line-height: 42px;
}
&.white {
2016-11-30 13:25:25 +00:00
background-color: $white-light;
}
&.top-block {
2017-11-02 23:59:51 +00:00
border-top: 0;
2017-07-12 09:50:26 +00:00
.container-fluid {
background-color: inherit;
}
}
&.middle-block {
margin-top: $gl-padding-24;
margin-bottom: 0;
}
&.clear-block {
margin-bottom: $gl-padding - 1px;
padding-bottom: $gl-padding;
}
&.second-block {
margin-top: -1px;
margin-bottom: 0;
}
&.footer-block {
margin-top: $gl-padding-24;
2017-11-02 23:59:51 +00:00
border-bottom: 0;
margin-bottom: -$gl-padding;
}
2016-06-03 18:09:45 +00:00
&.content-component-block {
padding: 11px 0;
background-color: $white-light;
}
.title {
color: $gl-text-color;
}
.oneline {
line-height: 35px;
}
2015-12-02 14:32:45 +00:00
> p:last-child {
margin-bottom: 0;
}
.block-controls {
display: -webkit-flex;
display: flex;
-webkit-justify-content: flex-end;
justify-content: flex-end;
-webkit-flex: 1;
flex: 1;
.control {
float: left;
margin-left: 10px;
}
}
2016-04-25 20:02:15 +00:00
&.build-content {
background-color: $white-light;
2017-11-02 23:59:51 +00:00
border-top: 0;
2016-04-25 20:02:15 +00:00
}
}
.sub-header-block {
background-color: $white-light;
border-bottom: 1px solid $white-dark;
padding: 11px 0;
margin-bottom: 11px;
.oneline {
line-height: 35px;
}
&.no-bottom-space {
border-bottom: 0;
margin-bottom: 0;
}
}
.cover-block {
text-align: center;
2016-12-12 22:26:21 +00:00
background: $gray-light;
padding-top: 44px;
position: relative;
.avatar-holder {
.avatar,
.identicon {
margin: 0 auto;
float: none;
}
.identicon {
2016-09-09 16:59:36 +00:00
border-radius: 50%;
}
}
.cover-title {
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
font-size: 23px;
2016-03-17 22:42:46 +00:00
h1 {
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
2016-03-17 22:42:46 +00:00
margin-bottom: 6px;
font-size: 23px;
}
.visibility-icon {
display: inline-block;
margin-left: 5px;
font-size: 18px;
2018-04-06 18:19:42 +00:00
color: color("gray");
2016-03-17 22:42:46 +00:00
}
p {
padding: 0 $gl-padding;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
2016-03-17 22:42:46 +00:00
}
}
.cover-desc {
color: $gl-text-color;
&.username:last-child {
padding-bottom: $gl-padding;
}
}
.cover-controls {
position: absolute;
top: 10px;
right: 10px;
&.left {
left: 10px;
right: auto;
}
}
2016-05-03 16:44:55 +00:00
&.groups-cover-block {
background: $white-light;
border-bottom: 1px solid $border-color;
text-align: left;
padding: 24px 0;
.group-info {
.cover-title {
margin-top: 9px;
}
p {
margin-bottom: 0;
}
}
2018-04-09 15:26:28 +00:00
@include media-breakpoint-down(xs) {
text-align: center;
.avatar {
float: none;
}
}
}
2016-09-08 21:38:14 +00:00
&.user-cover-block {
padding: 24px 0 0;
.nav-links {
2017-09-28 23:17:04 +00:00
width: 100%;
float: none;
&.scrolling-tabs {
float: none;
}
}
li:first-child {
margin-left: auto;
}
li:last-child {
margin-right: auto;
}
2016-09-08 21:38:14 +00:00
}
.group-info {
h1 {
display: inline;
font-weight: $gl-font-weight-normal;
font-size: 24px;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
}
2016-05-03 16:44:55 +00:00
}
}
.block-connector {
margin-top: -1px;
}
.nav-block {
.controls {
float: right;
margin-top: 8px;
padding-bottom: 8px;
}
}
.content-block {
padding: $gl-padding 0;
2016-05-19 15:11:54 +00:00
border-bottom: 1px solid $white-dark;
&.oneline-block {
line-height: 36px;
}
> .controls {
float: right;
}
2016-09-07 17:04:59 +00:00
.new-branch {
margin-top: 3px;
}
}
.content-block-small {
padding: 10px 0;
}
2017-05-02 08:05:43 +00:00
.landing {
margin: $gl-padding auto;
2017-05-02 08:05:43 +00:00
overflow: hidden;
display: flex;
position: relative;
border: 1px solid $blue-300;
border-radius: $border-radius-default;
background-color: $blue-50;
2017-05-02 08:05:43 +00:00
justify-content: center;
.dismiss-button {
position: absolute;
right: 6px;
top: 6px;
cursor: pointer;
color: $blue-300;
z-index: 1;
2017-11-02 23:59:51 +00:00
border: 0;
2017-05-02 08:05:43 +00:00
background-color: transparent;
&:hover,
&:focus {
2017-11-02 23:59:51 +00:00
border: 0;
2017-05-02 08:05:43 +00:00
color: $blue-400;
}
}
.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-04-09 15:26:28 +00:00
@include media-breakpoint-down(sm) {
2017-05-02 08:05:43 +00:00
flex-direction: column;
.inner-content {
white-space: normal;
padding: 0 28px;
text-align: center;
}
}
}
.empty-state {
2017-05-10 16:57:39 +00:00
margin: 5% auto 0;
.text-content {
max-width: 460px;
margin: 0 auto;
padding: $gl-padding;
}
2016-12-05 15:59:30 +00:00
.emoji-icon {
display: inline-block;
}
.btn {
2017-05-10 16:57:39 +00:00
margin: $btn-side-margin 5px;
2018-04-09 15:26:28 +00:00
@include media-breakpoint-down(xs) {
width: 100%;
}
}
}
.flex-container-block {
display: -webkit-flex;
display: flex;
}
2017-11-15 23:13:20 +00:00
.flex-right {
margin-left: auto;
}