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

365 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;
2014-09-02 18:07:02 +05:30
font-weight: normal;
2017-08-17 22:00:37 +05:30
font-size: 14px;
2014-09-02 18:07:02 +05:30
line-height: 36px;
2016-08-24 12:49:21 +05:30
&.diff-collapsed {
padding: 5px;
2016-11-03 12:29:30 +05:30
.click-to-expand {
cursor: pointer;
2016-08-24 12:49:21 +05:30
}
}
2014-09-02 18:07:02 +05:30
}
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;
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 {
2017-08-17 22:00:37 +05:30
background-color: $white-light;
2015-11-26 14:37:03 +05:30
}
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;
}
&.content-component-block {
padding: 11px 0;
background-color: $white-light;
}
2015-09-25 12:07:36 +05:30
.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 {
2017-08-17 22:00:37 +05:30
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-06-02 11:05:42 +05:30
&.build-content {
background-color: $white-light;
border-top: none;
}
2016-06-22 15:30:34 +05:30
&.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;
}
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;
color: $gray;
}
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 {
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;
}
}
}
2016-11-03 12:29:30 +05:30
&.user-cover-block {
padding: 24px 0 0;
}
2016-06-02 11:05:42 +05:30
.group-info {
h1 {
display: inline;
font-weight: normal;
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;
}
.nav-block {
.controls {
float: right;
2016-08-24 12:49:21 +05:30
margin-top: 8px;
2017-08-17 22:00:37 +05:30
padding-bottom: 8px;
}
}
.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 {
margin-bottom: $gl-padding;
overflow: hidden;
display: flex;
position: relative;
border: 1px solid $blue-300;
border-radius: $border-radius-default;
background-color: $blue-25;
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 {
margin: 100px 0 0;
.text-content {
max-width: 460px;
margin: 0 auto;
padding: $gl-padding;
}
.svg-content {
text-align: center;
svg {
max-width: 425px;
width: 100%;
padding: $gl-padding;
}
}
.emoji-icon {
display: inline-block;
}
.btn {
margin: $btn-side-margin $btn-side-margin 0 0;
}
@media(max-width: $screen-xs-max) {
margin-top: 50px;
text-align: center;
.btn {
width: 100%;
}
}
@media(min-width: $screen-xs-max) {
&.merge-requests .text-content {
margin-top: 40px;
}
&.labels .text-content {
margin-top: 70px;
}
}
}
.flex-container-block {
display: -webkit-flex;
display: flex;
}