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

359 lines
5.2 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;
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;
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 {
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 {
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;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2015-09-25 12:07:36 +05:30
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;
2018-03-17 18:26:18 +05:30
border-top: 0;
2016-06-22 15:30:34 +05:30
}
}
.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;
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;
}
.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 {
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;
right: 6px;
top: 6px;
cursor: pointer;
color: $blue-300;
z-index: 1;
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
background-color: transparent;
&:hover,
&:focus {
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
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-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 {
2017-09-10 17:25:29 +05:30
margin: $btn-side-margin 5px;
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
@media(max-width: $screen-xs-max) {
2017-08-17 22:00:37 +05:30
width: 100%;
}
}
}
.flex-container-block {
display: -webkit-flex;
display: flex;
}
2018-03-17 18:26:18 +05:30
.flex-right {
margin-left: auto;
}