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

222 lines
3.2 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
.light-well {
2016-06-02 11:05:42 +05:30
background-color: $background-color;
2014-09-02 18:07:02 +05:30
padding: 15px;
}
.centered-light-block {
text-align: center;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2014-09-02 18:07:02 +05:30
margin: 20px;
}
.nothing-here-block {
text-align: center;
padding: 20px;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2014-09-02 18:07:02 +05:30
font-weight: normal;
font-size: 16px;
line-height: 36px;
}
2015-09-25 12:07:36 +05:30
2016-06-02 11:05:42 +05:30
.row-content-block {
margin-top: 0;
margin-bottom: -$gl-padding;
2015-09-25 12:07:36 +05:30
background-color: $background-color;
padding: $gl-padding;
2016-06-02 11:05:42 +05:30
margin-bottom: 0;
2015-09-25 12:07:36 +05:30
border-top: 1px solid $border-color;
border-bottom: 1px solid $border-color;
color: $gl-gray;
2015-11-26 14:37:03 +05:30
&.oneline-block {
line-height: 42px;
}
&.white {
background-color: white;
}
2015-09-25 12:07:36 +05:30
&.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;
}
.title {
color: $gl-text-color;
}
.oneline {
2016-06-02 11:05:42 +05:30
line-height: 35px;
2015-09-25 12:07:36 +05:30
}
2015-12-23 02:04:40 +05:30
> p:last-child {
margin-bottom: 0;
}
.block-controls {
float: right;
.control {
float: left;
margin-left: 10px;
}
}
2016-06-02 11:05:42 +05:30
&.build-content {
background-color: $white-light;
border-top: none;
}
2015-09-25 12:07:36 +05:30
}
2015-11-26 14:37:03 +05:30
.cover-block {
text-align: center;
background: $background-color;
padding-top: 44px;
2015-11-26 14:37:03 +05:30
position: relative;
.avatar-holder {
margin-bottom: 16px;
.avatar, .identicon {
margin: 0 auto;
float: none;
}
.identicon {
@include border-radius(50%);
}
}
.cover-title {
color: $gl-header-color;
margin: 0;
font-size: 23px;
font-weight: normal;
2016-06-02 11:05:42 +05:30
margin: 16px 0 5px;
2015-11-26 14:37:03 +05:30
color: #4c4e54;
font-size: 23px;
line-height: 1.1;
2016-06-02 11:05:42 +05:30
h1 {
color: $gl-gray-dark;
margin-bottom: 6px;
font-size: 23px;
}
.visibility-icon {
display: inline-block;
margin-left: 5px;
font-size: 18px;
color: $gray;
}
p {
padding: 0 $gl-padding;
color: #5c5d5e;
}
2015-11-26 14:37:03 +05:30
}
.cover-desc {
padding: 0 $gl-padding 3px;
color: $gl-text-color;
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 {
position: absolute;
top: 10px;
right: 10px;
2015-12-23 02:04:40 +05:30
&.left {
left: 10px;
right: auto;
}
2015-11-26 14:37:03 +05:30
}
2016-06-02 11:05:42 +05:30
&.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;
}
}
}
.group-info {
h1 {
display: inline;
font-weight: normal;
font-size: 24px;
color: $gl-title-color;
}
}
2015-11-26 14:37:03 +05:30
}
2015-12-23 02:04:40 +05:30
.block-connector {
margin-top: -1px;
}
.nav-block {
.controls {
float: right;
margin-top: 11px;
}
}
.content-block {
padding: $gl-padding 0;
border-bottom: 1px solid $border-color;
&.oneline-block {
2016-04-02 18:10:28 +05:30
line-height: 36px;
}
> .controls {
float: right;
}
}
2016-06-02 11:05:42 +05:30
.content-block-small {
padding: 10px 0;
}