misuzu/assets/less/classes/profile/warning.less

139 lines
2.4 KiB
Text
Raw Normal View History

2018-12-24 20:35:25 +00:00
.profile__warning {
margin: 2px;
border-radius: 2px;
border: 1px solid var(--accent-colour);
2018-12-25 21:41:28 +00:00
&__container {
margin: 2px 0;
}
2018-12-24 20:35:25 +00:00
&--warning {
--accent-colour: #666;
}
&--silence {
--accent-colour: #f70;
}
&--ban {
--accent-colour: #c33;
}
2018-12-27 21:01:57 +00:00
&--extendo {
margin: 4px;
}
2018-12-25 21:41:28 +00:00
&__background {
background-color: var(--accent-colour);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
&__content {
background-color: var(--background-colour-translucent);
2018-12-24 20:35:25 +00:00
display: flex;
2018-12-25 21:41:28 +00:00
padding: 1px;
2018-12-26 14:49:08 +00:00
@media (max-width: @site-mobile-width) {
flex-wrap: wrap;
}
2018-12-25 21:41:28 +00:00
}
&__type,
&__created,
&__duration {
display: inline-flex;
align-items: center;
justify-content: center;
2018-12-24 20:35:25 +00:00
}
&__type {
2018-12-25 21:41:28 +00:00
min-width: 80px;
2018-12-24 20:35:25 +00:00
background-color: var(--accent-colour);
border-radius: 1px;
padding: 0 4px;
}
2018-12-25 21:41:28 +00:00
&__created,
&__duration {
2018-12-24 20:35:25 +00:00
min-width: 100px;
padding: 0 4px;
}
&__note {
padding: 1px 4px;
2018-12-25 21:41:28 +00:00
flex: 1 1 auto;
2018-12-24 20:35:25 +00:00
}
&__private {
border-top: 1px solid var(--accent-colour);
margin-top: 1px;
2018-12-25 21:41:28 +00:00
width: 100%;
opacity: .5;
transition: opacity .2s;
&:hover,
&:active,
&:focus {
opacity: 1;
}
2018-12-24 20:35:25 +00:00
}
2018-12-27 21:01:57 +00:00
&__tools {
display: flex;
padding-bottom: 1px;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
}
&__options {
flex: 1 1 auto;
display: flex;
justify-content: flex-end;
align-items: center;
@media (max-width: @site-mobile-width) {
justify-content: flex-start;
}
}
&__option {
padding: 2px 5px;
color: inherit;
text-decoration: none;
}
&__user {
display: flex;
padding: 2px;
min-width: 300px;
&__avatar {
width: 20px;
height: 20px;
}
&__username {
padding: 0 5px;
min-width: 60px;
}
&__ip {
display: inline-flex;
padding: 0 5px;
2018-12-27 21:01:57 +00:00
&:before {
content: "(";
}
&:after {
content: ")";
}
}
}
2018-12-24 20:35:25 +00:00
}