web-apps/apps/common/main/resources/less/history.less

157 lines
3.6 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
#history-box {
position: relative;
2020-12-19 19:43:19 +00:00
border-right: 1px solid @border-toolbar;
2016-03-11 00:48:53 +00:00
}
#history-header {
position: absolute;
height: 53px;
2016-03-11 00:48:53 +00:00
left: 0;
top: 0;
right: 0;
overflow: hidden;
2020-12-19 19:43:19 +00:00
border-bottom: 1px solid @border-toolbar;
2016-03-11 00:48:53 +00:00
#history-btn-back {
height: 27px;
margin-top: 15px;
2016-03-11 00:48:53 +00:00
padding-top: 4px;
padding-left: 20px;
font-size: 13px;
cursor: pointer;
&:hover {
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-hover;
2016-03-11 00:48:53 +00:00
}
}
}
#history-expand-changes {
position: absolute;
height: 45px;
left: 0;
bottom: 0;
right: 0;
overflow: hidden;
2020-12-19 19:43:19 +00:00
border-top: 1px solid @border-toolbar;
#history-btn-expand {
height: 27px;
margin-top: 8px;
padding-top: 4px;
padding-left: 20px;
font-size: 13px;
cursor: pointer;
&:hover {
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-hover;
}
}
}
2016-03-11 00:48:53 +00:00
#history-list {
height: 100%;
overflow: hidden;
padding: 53px 0 45px 0;
2016-03-11 00:48:53 +00:00
.item {
display: block;
border: none;
width: 100%;
.box-shadow(none);
margin: 0;
font-size: 12px;
&:hover:not(.selected),
&.over {
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-hover;
2016-03-11 00:48:53 +00:00
}
&.selected {
2020-12-19 19:43:19 +00:00
background-color: @highlight-button-pressed;
2016-03-11 00:48:53 +00:00
.user-name,
.user-date {
2020-12-19 19:43:19 +00:00
color: @text-inverse;
2016-03-11 00:48:53 +00:00
}
.revision-expand {
2016-09-22 13:55:01 +00:00
background-position: -70px -145px;
}
2016-03-11 00:48:53 +00:00
}
}
.history-item-wrap {
padding: 10px 2px 15px 20px;
2020-12-19 19:43:19 +00:00
color: @text-normal;
2016-03-11 00:48:53 +00:00
text-overflow: ellipsis;
.user-date {
display: inline-block;
font-size: 12px;
font-weight: bold;
margin-right: 12px;
white-space: nowrap;
overflow: hidden;
}
.user-version {
display: inline-block;
max-width: 60px;
2016-03-11 00:48:53 +00:00
height: 18px;
2020-12-19 19:43:19 +00:00
color: @highlight-button-pressed;
2016-03-11 00:48:53 +00:00
font-size: 10px;
white-space: nowrap;
overflow: hidden;
2020-12-19 19:43:19 +00:00
color: @text-tertiary;
background-color: @background-normal;
2016-03-11 00:48:53 +00:00
text-align: center;
padding: 1px 5px;
2016-03-11 00:48:53 +00:00
border-radius: 2px;
}
.user-name {
width: 100%;
white-space: nowrap;
overflow: hidden;
font-size: 12px;
2018-06-01 07:51:09 +00:00
font-weight: bold;
2016-03-11 00:48:53 +00:00
cursor: pointer;
text-overflow: ellipsis;
2018-03-23 14:15:42 +00:00
padding-right: 35px;
2016-03-11 00:48:53 +00:00
}
.color {
width: 12px;
height: 12px;
2020-12-19 19:43:19 +00:00
border: 1px solid @border-toolbar;
2016-03-11 00:48:53 +00:00
margin: 0 5px 3px 0;
vertical-align: middle;
}
.revision-expand {
2016-09-22 13:55:01 +00:00
width: 23px;
height: 23px;
background-position: -43px -145px;
margin: 10px 10px;
display: inline-block;
position: absolute;
right: 0;
&.up {
transform: rotate(180deg);
}
}
.revision-restore {
2020-12-19 19:43:19 +00:00
color: @text-normal;
border-bottom: 1px dotted @text-normal;
height: 16px;
margin-top: 5px;
white-space: pre-wrap;
width: auto;
cursor: pointer;
}
2016-03-11 00:48:53 +00:00
}
}