-
diff --git a/services/web/frontend/stylesheets/app/editor/history-react.less b/services/web/frontend/stylesheets/app/editor/history-react.less
index 052402181d..68cec5e046 100644
--- a/services/web/frontend/stylesheets/app/editor/history-react.less
+++ b/services/web/frontend/stylesheets/app/editor/history-react.less
@@ -15,7 +15,7 @@ history-root {
height: @history-toolbar-height;
background-color: @history-react-header-bg;
color: @history-react-header-color;
- font-size: 14px;
+ font-size: @font-size-small;
display: flex;
flex-direction: column;
justify-content: center;
@@ -50,12 +50,9 @@ history-root {
.change-list {
width: @versions-list-width;
+ font-size: @font-size-small;
border-left: 1px solid @history-react-separator-color;
box-sizing: content-box;
-
- .toggle-switch-container {
- padding: 0 16px;
- }
}
.toggle-switch-label {
@@ -66,6 +63,112 @@ history-root {
}
}
+ .history-toggle-switch-container,
+ .history-version-day,
+ .history-version-details {
+ padding: 0 16px;
+ }
+
+ .history-version-day {
+ position: sticky;
+ top: 0;
+ display: block;
+ padding-top: 12px;
+ padding-bottom: 4px;
+ line-height: 20px;
+ background-color: @white;
+ }
+
+ .history-version-details {
+ padding-top: 6px;
+ padding-bottom: 6px;
+
+ &:hover {
+ cursor: pointer;
+ background-color: @neutral-10;
+ }
+ }
+
+ .history-version-metadata-time {
+ display: block;
+ margin-bottom: 4px;
+ font-weight: bold;
+ color: @neutral-90;
+ }
+
+ .history-version-metadata-users,
+ .history-version-changes {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .history-version-metadata-users {
+ display: inline;
+
+ > li {
+ display: inline-flex;
+ align-items: center;
+ margin-right: 8px;
+ }
+ }
+
+ .history-version-changes {
+ > li {
+ margin-bottom: 4px;
+ }
+ }
+
+ .history-version-user-badge-color {
+ @size: 8px;
+ display: inline-block;
+ width: @size;
+ height: @size;
+ margin-right: 4px;
+ border-radius: 2px;
+ }
+
+ .history-version-day,
+ .history-version-change-action,
+ .history-version-metadata-users,
+ .history-version-origin {
+ color: @neutral-70;
+ }
+
+ .history-version-change-doc {
+ color: @neutral-90;
+ }
+
+ .history-version-divider {
+ margin: 6px 8px;
+ border-color: @neutral-20;
+ }
+
+ .history-version-badge {
+ display: inline-flex;
+ align-items: center;
+ overflow: hidden;
+ height: 24px;
+ margin-bottom: 3px;
+ margin-right: 10px;
+ padding: 4px;
+ white-space: nowrap;
+ color: @ol-blue-gray-6;
+ background-color: @neutral-20;
+ border-radius: 4px;
+
+ &-comment {
+ margin-left: 2px;
+ }
+ }
+
+ .history-version-label-delete-btn {
+ .reset-button;
+ marigin-left: 8px;
+ padding: 4px;
+ font-size: 24px;
+ }
+
.history-loading-panel {
padding-top: 10rem;
font-family: @font-family-serif;
@@ -85,3 +188,16 @@ history-root {
margin-top: 2px;
}
}
+
+.history-version-label-tooltip {
+ padding: 6px;
+ text-align: initial;
+
+ &-row {
+ margin-bottom: 6.25px;
+
+ &:last-child {
+ margin-bottom: initial;
+ }
+ }
+}
diff --git a/services/web/frontend/stylesheets/core/mixins.less b/services/web/frontend/stylesheets/core/mixins.less
index 4664eea056..6d8beb097d 100755
--- a/services/web/frontend/stylesheets/core/mixins.less
+++ b/services/web/frontend/stylesheets/core/mixins.less
@@ -1317,3 +1317,11 @@
outline: 0;
}
}
+
+.reset-button {
+ padding: 0;
+ cursor: pointer;
+ background: transparent;
+ border: 0;
+ -webkit-appearance: none;
+}
diff --git a/services/web/frontend/stylesheets/core/variables.less b/services/web/frontend/stylesheets/core/variables.less
index 53ca508962..d2f6070e8a 100644
--- a/services/web/frontend/stylesheets/core/variables.less
+++ b/services/web/frontend/stylesheets/core/variables.less
@@ -13,6 +13,7 @@
@neutral-90: #1b222c;
@neutral-40: #afb5c0;
@neutral-10: #f4f5f6;
+@neutral-70: #495365;
@neutral-80: #2f3a4c;
// Styleguide colors
diff --git a/services/web/locales/en.json b/services/web/locales/en.json
index 031c6dcfc9..010c0d0925 100644
--- a/services/web/locales/en.json
+++ b/services/web/locales/en.json
@@ -1681,6 +1681,7 @@
"year": "year",
"yes_move_me_to_personal_plan": "Yes, move me to the Personal plan",
"yes_that_is_correct": "Yes, that’s correct",
+ "you": "You",
"you_already_have_a_subscription": "You already have a subscription",
"you_and_collaborators_get_access_to": "You and your project collaborators get access to",
"you_and_collaborators_get_access_to_info": "These features are available to you and your collaborators (other Overleaf users that you invite to your projects).",