taiga-front/app/styles/layout/wiki.scss

94 lines
1.8 KiB
SCSS

.wiki {
.wiki-title {
@extend %light;
@extend %larger;
}
.remove {
@extend %small;
color: $gray-light;
&:hover {
color: $red-light;
transition: color .1s linear;
.icon {
fill: $red-light;
transition: fill .1s linear;
}
}
.icon {
color: $gray-light;
margin-right: .2rem;
}
}
}
.wiki-content {
@include cursor-progress;
margin-bottom: 2rem;
position: relative;
&.editable {
&:hover {
.wysiwyg {
background: $whitish;
cursor: pointer;
}
}
}
.view-wiki-content {
&:hover {
.edit {
opacity: 1;
top: -1.5rem;
transition: all .2s linear;
}
}
}
.edit {
@include svg-size(2rem);
background: $whitish;
left: 0;
opacity: 0;
padding: .2rem .5rem;
position: absolute;
top: 0;
transition: all .2s linear;
&:hover {
cursor: pointer;
}
}
.preview {
padding-top: 1.8rem;
}
}
.edit-wiki-content {
a {
display: inline-block;
margin-right: .5rem;
&:last-child {
margin: 0;
}
&:hover {
cursor: pointer;
.icon {
fill: $primary-dark;
opacity: .3;
transition: all .2s linear;
}
}
}
.preview-icon {
position: absolute;
right: 3.5rem;
}
.action-container {
position: absolute;
right: 1rem;
top: .3rem;
}
.edit {
position: absolute;
right: 3.5rem;
top: .4rem;
}
}