misuzu/assets/less/classes/changelog.less

342 lines
7.8 KiB
Text
Raw Normal View History

2018-07-06 01:28:06 +00:00
.changelog {
display: flex;
margin: 1px;
2018-07-06 01:28:06 +00:00
@media (max-width: @site-mobile-width) {
2018-07-06 01:28:06 +00:00
flex-wrap: wrap;
}
&:not(:last-child) {
margin-bottom: 1px;
@media (max-width: @site-mobile-width) {
2018-09-09 22:44:10 +00:00
border-bottom: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
padding-bottom: 1px;
}
}
&__pagination {
2018-07-06 01:28:06 +00:00
margin: 1px;
}
2018-07-17 13:45:37 +00:00
&__none {
margin: 1px 4px;
}
&__info {
display: flex;
}
// date header in public changelog
2018-07-06 01:28:06 +00:00
&__date {
display: block;
text-decoration: none;
padding: 1px 3px;
2018-10-22 21:05:22 +00:00
color: var(--accent-colour);
font-size: 1.2em;
line-height: 1.5em;
2018-07-06 01:28:06 +00:00
&:hover {
text-decoration: underline;
}
&:not(:first-child) {
margin-top: 4px;
}
}
&__datetime,
2018-07-06 01:28:06 +00:00
&__user,
&__action {
2018-09-23 14:42:15 +00:00
--action-colour: inherit;
background-color: var(--action-colour);
color: var(--user-colour);
2018-07-06 01:28:06 +00:00
flex: 0 0 auto;
margin-right: 1px;
text-decoration: none;
display: flex;
align-items: center;
2018-07-06 01:28:06 +00:00
&:hover {
text-decoration: underline;
}
&__text {
width: 100%;
}
2018-07-06 01:28:06 +00:00
}
// prefix date time in manage
&__datetime {
min-width: 100px;
text-align: center;
}
2018-07-06 01:28:06 +00:00
&__user {
min-width: 100px;
padding-left: 4px;
@media (max-width: @site-mobile-width) {
2018-07-06 01:28:06 +00:00
flex-grow: 1;
}
}
&__action {
min-width: 80px;
padding-right: 4px;
&__text {
text-align: right;
}
@media (max-width: @site-mobile-width) {
2018-07-06 01:28:06 +00:00
margin-right: 0;
}
2018-10-22 21:05:22 +00:00
&--dark {
2018-09-09 22:44:10 +00:00
color: var(--text-colour-inverted);
2018-07-06 01:28:06 +00:00
}
}
&__log {
word-wrap: break-word;
overflow: hidden;
flex: 1 1 auto;
margin-left: 2px;
@media (max-width: @site-mobile-width) {
2018-07-06 01:28:06 +00:00
width: 100%;
}
&--link {
color: inherit;
text-decoration: underline dotted;
&:hover {
text-decoration: underline solid;
}
}
}
&__tags {
display: flex;
flex-wrap: wrap;
font-size: .9em;
line-height: 1.5em;
}
&__tag {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
margin-right: 1px;
border-radius: 2px;
display: block;
color: inherit;
text-decoration: none;
padding: 0 5px;
&:hover {
text-decoration: underline;
}
}
2018-07-06 01:28:06 +00:00
&__change {
2018-11-17 21:59:01 +00:00
display: flex;
margin-bottom: 2px;
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
2018-07-06 01:28:06 +00:00
&__line {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
2018-11-17 21:59:01 +00:00
background-color: var(--accent-colour);
2018-07-06 01:28:06 +00:00
display: flex;
align-items: stretch;
2018-07-06 01:28:06 +00:00
flex: 1 0 auto;
2018-11-17 21:59:01 +00:00
margin-bottom: 2px;
2018-07-06 01:28:06 +00:00
}
&__action {
display: block;
padding: 6px 2px;
2018-09-23 14:42:15 +00:00
background-color: var(--accent-colour);
2018-09-09 22:44:10 +00:00
border-right: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
writing-mode: sideways-lr;
text-orientation: sideways;
letter-spacing: 1px;
text-align: center;
flex: 0 0 auto;
2018-07-06 01:28:06 +00:00
2018-10-22 21:08:31 +00:00
&--dark {
2018-09-09 22:44:10 +00:00
color: var(--text-colour-inverted);
2018-07-06 01:28:06 +00:00
}
}
&__log {
padding: 4px 12px;
2018-11-17 21:59:01 +00:00
font-size: 1.5em;
align-self: center;
flex: 1 1 auto;
overflow: hidden;
2018-11-17 21:59:01 +00:00
width: 100%;
height: 100%;
&__text {
word-wrap: break-word;
}
2018-07-06 01:28:06 +00:00
}
2018-11-17 21:59:01 +00:00
&__info {
2018-07-06 01:28:06 +00:00
2018-11-17 21:59:01 +00:00
&__content {
width: 200px;
text-align: center;
display: flex;
flex-direction: column;
padding: 15px;
flex: 0 0 auto;
margin-right: 4px;
@media (max-width: @site-mobile-width) {
flex-direction: row;
align-items: center;
width: 100%;
flex-wrap: wrap;
}
}
&__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
background: var(--background-pattern);
background-color: var(--accent-colour);
background-blend-mode: multiply;
@media (max-width: @site-mobile-width) {
mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
}
}
@media (max-width: @site-mobile-width) {
flex-direction: row;
margin: 0;
padding: 5px;
2018-07-06 01:28:06 +00:00
}
}
&__user {
display: flex;
2018-11-17 21:59:01 +00:00
text-align: left;
2018-07-06 01:28:06 +00:00
align-items: center;
2018-11-17 21:59:01 +00:00
margin-bottom: 10px;
&__details {
display: flex;
flex-direction: column;
}
@media (max-width: @site-mobile-width) {
margin-bottom: 0;
margin-right: 10px;
}
}
&__avatar {
width: 60px;
height: 60px;
margin-right: 10px;
@media (max-width: @site-mobile-width) {
width: 50px;
height: 50px;
}
}
&__username {
2018-07-06 01:28:06 +00:00
color: inherit;
2018-11-17 21:59:01 +00:00
font-size: 1.4em;
line-height: 1.5em;
text-decoration: none;
2018-07-06 01:28:06 +00:00
2018-11-17 21:59:01 +00:00
&[href]:hover {
text-decoration: underline;
2018-07-06 01:28:06 +00:00
}
2018-11-17 21:59:01 +00:00
}
2018-07-06 01:28:06 +00:00
2018-11-17 21:59:01 +00:00
&__userrole {
font-size: .9em;
line-height: 1.5em;
color: inherit;
text-decoration: none;
&[href]:hover {
text-decoration: underline;
2018-07-06 01:28:06 +00:00
}
2018-11-17 21:59:01 +00:00
@media (max-width: @site-mobile-width) {
display: none;
2018-07-06 01:28:06 +00:00
}
2018-11-17 21:59:01 +00:00
}
&__date {
color: inherit;
text-decoration: none;
font-size: 1.1em;
line-height: 1.5em;
2018-07-06 01:28:06 +00:00
2018-11-17 21:59:01 +00:00
&:hover {
text-decoration: underline;
2018-07-06 01:28:06 +00:00
}
}
&__text {
2018-11-17 21:59:01 +00:00
line-height: 1.2em;
2018-07-06 01:28:06 +00:00
flex: 1 1 auto;
word-wrap: break-word;
2018-11-17 21:59:01 +00:00
overflow: hidden;
margin: 2px;
2018-07-06 01:28:06 +00:00
}
&__tags {
list-style: none;
display: flex;
flex-wrap: wrap;
2018-11-17 21:59:01 +00:00
margin-top: 10px;
justify-content: center;
@media (max-width: @site-mobile-width) {
margin-top: 0;
margin-left: 10px;
}
2018-07-06 01:28:06 +00:00
}
&__tag {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
2018-11-17 21:59:01 +00:00
background-color: var(--accent-colour);
margin: 1px;
2018-07-06 01:28:06 +00:00
border-radius: 2px;
&__link {
2018-11-17 21:59:01 +00:00
background-color: var(--background-colour-translucent);
2018-07-06 01:28:06 +00:00
display: block;
width: 100%;
height: 100%;
color: inherit;
text-decoration: none;
padding: 0 5px;
}
&:hover {
text-decoration: underline;
}
}
}
}