misuzu/assets/less/classes/changelog.less

282 lines
5.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 {
margin: 1px;
2018-07-06 01:28:06 +00:00
&__line {
2018-09-09 22:44:10 +00:00
border: 1px solid 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;
}
&__row,
&__column {
display: flex;
}
&__column {
flex-direction: column;
&--user-info {
justify-content: space-between;
flex: 0 0 auto;
}
&--change-info {
flex: 1 1 auto;
overflow: hidden;
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;
font-size: 1.4em;
align-self: center;
flex: 1 1 auto;
overflow: hidden;
&__text {
word-wrap: break-word;
}
2018-07-06 01:28:06 +00:00
}
&__date {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
color: inherit;
text-decoration: none;
margin-right: 1px;
text-align: center;
padding: 2px;
&:hover {
text-decoration: underline;
}
}
&__user {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
padding: 2px;
display: flex;
align-items: center;
text-decoration: none;
color: inherit;
margin: 1px;
margin-left: 0;
&__info {
margin: 2px 5px;
}
&__title {
width: 120px;
word-wrap: break-word;
}
&__avatar {
width: 60px;
height: 60px;
margin-right: 1px;
align-self: flex-start;
}
&__name {
2018-09-23 14:42:15 +00:00
color: var(--user-colour);
2018-07-06 01:28:06 +00:00
font-size: 1.5em;
line-height: 1.2em;
}
}
&__text {
margin: 1px 0;
padding: 1px 3px;
2018-09-09 22:44:10 +00:00
border-top: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
font-size: 1.2em;
line-height: 1.5em;
flex: 1 1 auto;
word-wrap: break-word;
2018-07-06 01:28:06 +00:00
}
&__tags {
list-style: none;
display: flex;
flex-wrap: wrap;
}
&__tag {
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
2018-07-06 01:28:06 +00:00
margin-right: 1px;
border-radius: 2px;
&__link {
display: block;
width: 100%;
height: 100%;
color: inherit;
text-decoration: none;
padding: 0 5px;
}
&:hover {
text-decoration: underline;
}
}
}
}