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

339 lines
5 KiB
SCSS
Raw Normal View History

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