overleaf/services/web/public/stylesheets/less/trackchanges.less

344 lines
5.7 KiB
Text
Raw Normal View History

2014-03-06 11:32:18 -05:00
@changesListWidth: 250px;
@changesListPadding: 10px;
#trackChangesPanel {
.track-changes-diff {
position: absolute;
2014-03-06 11:32:18 -05:00
right: @changesListWidth + 1px;
2014-03-06 09:08:12 -05:00
left: 0;
top: 0;
bottom: 0;
height: 100%;
2014-03-06 09:08:12 -05:00
.ace_editor {
position: absolute;
top: 30px;
2014-03-06 09:08:12 -05:00
left: 0;
right: 0;
bottom: 0;
2014-03-12 13:13:38 -04:00
.ace_active-line, .ace_cursor-layer, .ace_gutter-active-line {
2014-03-12 12:46:20 -04:00
display: none;
}
2014-03-06 09:08:12 -05:00
}
.track-changes-diff-toolbar {
position: absolute;
top: 0;
left: 0;
right: -1px;
height: 20px;
padding: 5px 5px 5px 5px;
margin: 0;
background-color: #282828;
color: white;
border-right: 1px solid white;
.number-of-changes, .restore {
position: absolute;
}
.number-of-changes {
left: 10px;
bottom: 7px;
}
.restore {
right: 10px;
bottom: 5px;
padding: 3px 9px;
}
2014-06-05 11:18:25 -04:00
.deleted-info {
.controls {
position: absolute;
right: 10px;
bottom: 5px;
a {
padding: 3px 9px;
}
2014-06-05 11:18:25 -04:00
}
}
}
}
.track-changes-side-bar {
border-left: 1px solid #999;
height: 100%;
2014-03-06 11:32:18 -05:00
width: @changesListWidth;
position: absolute;
right: 0;
2014-03-07 06:24:11 -05:00
background-color: white;
2014-03-07 08:05:59 -05:00
.track-changes-header {
background-color: #282828;
2014-03-07 08:05:59 -05:00
h3 {
color: white;
padding-left: 8px;
font-size: 1.2em;
}
a {
color: white;
position: absolute;
top: 6px;
right: 8px;
}
height: 30px;
}
.change-list-area {
overflow: scroll;
position: absolute;
left: 0px;
right: 0px;
top: 30px;
bottom: 0px;
}
}
2014-03-06 09:08:12 -05:00
.track-changes-upgrade-control, .track-changes-upgrade-popup {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
}
.track-changes-upgrade-popup {
background-color: rgba(128,128,128,0.4);
.message {
margin: auto;
margin-top: 200px;
padding: 10px 10px 14px 10px;
width: 400px;
font-weight: bold;
text-align: center;
background-color: white;
.border-radius(8px);
}
}
.track-changes-upgrade-control {
background-color: #eeeeee;
text-align: center;
.message {
font-size: 18px;
margin: 12px;
margin-top: 36px;
}
}
.deleted-change-background,
.deleted-change-foreground,
.inserted-change-background,
.change-name-marker,
.changes-before,
.changes-after {
2014-03-06 09:08:12 -05:00
position: absolute;
z-index: 2;
}
.change-name-marker {
2014-03-12 12:46:20 -04:00
font-size: 0.8em;
padding: 2px 6px;
.border-radius(3px 3px 3px 3px);
position: absolute;
border: 1px solid #999;
left: 0;
white-space: pre;
2014-03-06 09:08:12 -05:00
}
2014-03-06 11:32:18 -05:00
.changes-before {
top: 6px;
right: 6px;
}
.changes-after {
bottom: 6px;
right: 6px;
}
.changes-before, .changes-after {
padding: 4px 8px;
background-color: #eee;
border: 1px solid #999;
.border-radius(3px);
}
2014-03-06 11:32:18 -05:00
ul.change-list {
li {
position: relative;
2014-03-07 06:24:11 -05:00
border-bottom: 1px solid #ccc;
cursor: pointer;
user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
.track-changes-date-header {
border-bottom: 1px solid #ccc;
padding: 2px;
font-weight: bold;
text-align: center;
height: 19px;
display: none;
}
2014-03-06 11:32:18 -05:00
.change-selectors {
.change-selector-from {
position: absolute;
bottom: 5px;
left: 8px;
opacity: 0.8;
2014-03-06 11:32:18 -05:00
}
.change-selector-to {
position: absolute;
top: 5px;
left: 8px;
opacity: 0.8;
}
.range {
position: absolute;
left: 12px;
width: 4px;
2014-03-06 11:32:18 -05:00
top: 0;
bottom: 0;
2014-03-06 11:32:18 -05:00
}
}
.change-description {
2014-03-11 08:13:46 -04:00
padding: 6px 4px 6px 30px;
min-height: 38px;
2014-03-07 06:24:11 -05:00
}
.change-name {
font-size: 11px;
2014-03-07 06:24:11 -05:00
color: #666;
text-transform: capitalize;
2014-03-07 06:24:11 -05:00
}
.change-time {
float: right;
color: #666;
font-size: 12px;
display: inline-block;
padding-right: 6px;
}
.color-square {
display: inline-block;
height: 10px;
width: 10px;
margin-right: 4px;
margin-bottom: -1px;
}
.changed-docs {
font-weight: bold;
}
2014-03-11 08:13:46 -04:00
.restore {
a {
display: block;
padding: 4px;
text-align: center;
border-top: 1px solid #ccc;
}
display: none;
}
2014-03-07 06:24:11 -05:00
&:hover {
background-color: #eaeaea;
2014-03-06 11:32:18 -05:00
}
}
2014-03-12 13:13:38 -04:00
li.loading-changes, li.empty-message {
padding: 6px;
cursor: default;
&:hover {
background-color: inherit;
}
2014-03-12 13:13:38 -04:00
}
li.selected-change {
2014-03-07 06:24:11 -05:00
background-color: #eaeaea;
.change-selectors {
.range {
background-color: rgb(0, 143, 255);
}
}
}
li.selected-change-to {
.change-selectors {
.range {
top: 10px;
}
.change-selector-to {
opacity: 1;
}
}
}
li.selected-change-from {
.change-selectors {
.range {
bottom: 10px;
}
.change-selector-from {
opacity: 1;
}
}
2014-03-11 08:13:46 -04:00
.restore {
display: block;
}
}
li.first-in-day {
.track-changes-date-header {
display: block;
}
.change-selectors {
.change-selector-to {
top: 28px;
}
}
}
li.first-in-day.selected-change-to {
.change-selectors {
.range {
top: 33px;
}
}
}
li.track-changes-upgrade-oneweek {
padding: 15px;
background-color: rgb(255, 251, 210);
cursor: default;
}
}
ul.change-list.hover-state {
li {
.change-selectors {
.range {
background-color: transparent;
top: 0;
bottom: 0;
}
}
}
li.hover-selected {
.change-selectors {
.range {
2014-03-25 09:11:32 -04:00
top: 0;
background-color: #999;
}
}
}
li.hover-selected-to {
.change-selectors {
.range {
top: 10px;
}
.change-selector-to {
opacity: 1;
}
}
}
li.hover-selected-from {
.change-selectors {
.range {
bottom: 10px;
}
.change-selector-from {
opacity: 1;
}
}
2014-03-06 11:32:18 -05:00
}
li.first-in-day.hover-selected-to {
.change-selectors {
.range {
top: 33px;
}
}
}
2014-03-06 11:32:18 -05:00
}
}