taiga-front/app/styles/layout/us-detail.scss

295 lines
5.8 KiB
SCSS

.us-detail-header {
position: relative;
.button {
color: $white;
position: absolute;
right: 0;
top: 0;
}
}
.us-story-main-data {
margin-bottom: 2rem;
.us-title {
@extend %large;
@extend %text;
background: $whitish;
margin-bottom: 1rem;
padding: 2rem 1rem;
position: relative;
.us-title-text {
margin-bottom: 0;
}
.us-number {
color: $gray-light;
margin-right: .5rem;
}
.us-name {
color: $grayer;
display: inline-block;
line-height: 1.5rem;
max-width: 80%;
overflow: hidden;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
}
}
.blocked-warning {
background: $red;
color: $white;
margin-bottom: 1rem;
padding: 1rem;
position: relative;
.icon {
@extend %xxlarge;
display: inline;
left: 1rem;
position: absolute;
top: 1rem;
}
.blocked {
@extend %xlarge;
@extend %bold;
margin-bottom: .3em;
}
p {
margin-bottom: 0;
margin-left: 4rem;
margin-right: 10rem;
}
.button-block {
position: absolute;
right: 1rem;
top: 1rem;
}
}
}
.issue-nav {
position: absolute;
right: 1rem;
top: 1.5rem;
a {
@extend %xlarge;
}
}
.us-content {
ul {
margin-left: 1rem;
}
li {
list-style-type: disc;
}
a {
color: $green-taiga;
}
textarea {
height: 10rem;
margin-bottom: 2rem;
}
}
.user-story-tags {
.tags-container {
display: inline-block;
vertical-align: middle;
}
input {
display: inline-block;
width: 14rem;
}
.tag {
padding: 2px 10px;
}
}
.us-activity-tabs {
@extend %title;
border-bottom: 3px solid $gray-light;
padding: .5rem 0;
li {
@extend %large;
display: inline-block;
&:first-child {
border-right: 1px solid $gray-light;
}
}
a {
@include transition(color .2s ease-in);
color: $gray-light;
padding: 0 2rem;
&.active {
color: $grayer;
}
&:hover {
@include transition(color .2s ease-in);
color: $green-taiga;
}
}
.icon {
margin-right: .5rem;
}
}
.comment-list {
padding: 1rem 2rem;
}
.us-detail-status {
@extend %large;
color: $green-taiga;
vertical-align: middle;
}
.us-detail-progress-bar {
background: $grayer;
height: 26px;
margin-bottom: 1rem;
position: relative;
.current-progress {
background: $fresh-taiga;
height: 26px;
left: 0;
position: absolute;
top: 0;
width: 60%;
}
.tasks-completed {
@extend %small;
color: $white;
left: 10px;
position: absolute;
top: 2px;
}
}
.points-per-role {
position: relative;
li {
border-right: 1px solid $grayer;
display: inline-block;
margin: .5rem .1rem;
opacity: .3;
text-align: center;
width: 18%;
&:first-child {
opacity: 1;
}
&:nth-child(5n) {
border: 0;
}
}
.points {
@extend %xlarge;
@extend %title;
display: block;
text-align: center;
}
.role {
display: inline-block;
max-width: 90%;
overflow: hidden;
text-align: center;
text-overflow: ellipsis;
white-space: nowrap;
}
.pop-points-open {
@include popover(150px, '', 30px, '', '');
}
}
.issue-data {
div {
@include clearfix();
@include transition(background .2s ease-in);
background: darken($whitish, 5%);
margin-bottom: .5rem;
padding: .5rem;
&:last-child {
margin: 0;
}
&:hover {
@include transition(background .2s ease-in);
background: darken($whitish, 10%);
}
}
.level {
display: inline-block;
margin-right: .5rem;
vertical-align: top;
}
.level-name {
color: darken($whitish, 20%);
float: right;
}
}
.us-detail-settings {
margin-top: 2rem;
.button {
color: $white;
display: block;
margin-bottom: .5rem;
text-align: center;
width: 100%;
}
.button-gray {
background: $gray-light;
&:hover,
&.active {
background: $grayer;
}
}
.button-red {
&:hover,
&.active {
background: $red;
}
}
label {
cursor: pointer;
&+input {
display: none;
}
}
span {
&.button-gray,
&.button-gray:hover {
background: $gray-light;
&.active {
background: $gray;
}
}
&.button-red,
&.button-red:hover {
background: $red-light;
&.active {
background: $red;
}
}
}
}
.us-status {
.severity-data {
position: relative;
.pop-severity {
@include popover(150px, '', 30px, '', '');
}
}
.priority-data {
position: relative;
.pop-priority {
@include popover(150px, '', 30px, '', '');
}
}
.status-data {
position: relative;
.pop-status {
@include popover(150px, '', 30px, '', '');
}
}
}