| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569 |
- @versions-list-width: 320px;
- @history-toolbar-height: 40px;
- @history-change-list-padding: 16px;
- history-root {
- height: 100%;
- display: block;
- }
- // Adding !important to override the styling of overlays and popovers
- .history-popover {
- top: 90px !important;
- .arrow {
- top: 20px !important;
- }
- }
- .history-react {
- display: flex;
- height: 100%;
- background-color: @history-main-bg;
- .history-header {
- height: @history-toolbar-height;
- background-color: @history-react-header-bg;
- color: @history-react-header-color;
- font-size: @font-size-small;
- display: flex;
- flex-direction: column;
- justify-content: center;
- box-sizing: border-box;
- }
- .doc-panel {
- flex: 1;
- display: flex;
- flex-direction: column;
- .toolbar-container {
- border-bottom: 1px solid @history-react-separator-color;
- padding: 0 8px;
- }
- .doc-container {
- flex: 1;
- overflow-y: auto;
- }
- }
- .change-list {
- display: flex;
- flex-direction: column;
- width: @versions-list-width;
- font-size: @font-size-small;
- border-left: 1px solid @history-react-separator-color;
- box-sizing: content-box;
- }
- .toggle-switch-label {
- flex: 1;
- span {
- display: block;
- }
- }
- .history-version-list-container {
- flex: 1;
- overflow-y: auto;
- }
- .history-all-versions-scroller {
- overflow-y: auto;
- height: 100%;
- }
- .history-all-versions-container {
- position: relative;
- }
- .history-versions-bottom {
- position: absolute;
- height: 8em;
- bottom: 0;
- }
- .history-toggle-switch-container,
- .history-version-day,
- .history-version-details {
- padding: 0 @history-change-list-padding;
- }
- .history-version-day {
- background-color: white;
- position: sticky;
- z-index: 1;
- top: 0;
- display: block;
- padding-top: 12px;
- padding-bottom: 4px;
- line-height: 20px;
- }
- .history-version-details {
- padding-top: 8px;
- padding-bottom: 8px;
- position: relative;
- &.history-version-selectable {
- cursor: pointer;
- &:hover {
- background-color: @neutral-10;
- }
- }
- &.history-version-selected {
- background-color: @green-10;
- border-left: 3px solid @green-50;
- padding-left: @history-change-list-padding - 3px;
- }
- &.history-version-selected.history-version-selectable:hover {
- background-color: fade(@green-70, 16%);
- border-left: 3px solid @green-50;
- }
- &.history-version-within-selected {
- background-color: @neutral-10;
- border-left: 3px solid @green-50;
- }
- &.history-version-within-selected:hover {
- background-color: fade(@neutral-90, 8%);
- }
- }
- .version-element-within-selected {
- background-color: @neutral-10;
- border-left: 3px solid @green-50;
- }
- .version-element-selected {
- background-color: @green-10;
- border-left: 3px solid @green-50;
- }
- .history-version-metadata-time {
- display: block;
- margin-bottom: 4px;
- color: @neutral-90;
- &:last-child {
- margin-bottom: initial;
- }
- }
- .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-user-badge-text {
- overflow-wrap: anywhere;
- flex: 1;
- }
- .history-version-day,
- .history-version-change-action,
- .history-version-metadata-users,
- .history-version-origin,
- .history-version-saved-by {
- color: @neutral-70;
- }
- .history-version-change-action {
- overflow-wrap: anywhere;
- }
- .history-version-change-doc {
- color: @neutral-90;
- overflow-wrap: anywhere;
- }
- .history-version-divider-container {
- padding: 6px 8px;
- }
- .history-version-divider {
- margin: 0px;
- border-color: @neutral-20;
- }
- .history-version-badge {
- margin-bottom: 4px;
- margin-right: 10px;
- height: unset;
- white-space: normal;
- overflow-wrap: anywhere;
- }
- .history-version-label {
- margin-bottom: 4px;
- &:last-child {
- margin-bottom: initial;
- }
- }
- .loading {
- padding-top: 10rem;
- font-family: @font-family-serif;
- text-align: center;
- }
- & > .loading {
- flex: 1;
- }
- .history-all-versions-scroller .loading {
- position: sticky;
- bottom: 0;
- padding: @line-height-computed / 2 0;
- background-color: @gray-lightest;
- }
- .history-version-saved-by {
- &-label {
- margin-right: 8px;
- }
- }
- .dropdown.open {
- .history-version-dropdown-menu-btn {
- background-color: rgba(@neutral-90, 0.08);
- box-shadow: initial;
- }
- }
- .history-compare-btn,
- .history-version-dropdown-menu-btn {
- @size: 30px;
- padding: 0;
- width: @size;
- height: @size;
- line-height: 1;
- font-size: @font-size-small;
- color: @neutral-90;
- background-color: transparent;
- &:hover,
- &:active {
- z-index: initial;
- background-color: rgba(@neutral-90, 0.08);
- box-shadow: initial;
- }
- }
- .history-loading-panel {
- padding-top: 10rem;
- font-family: @font-family-serif;
- text-align: center;
- }
- .history-file-entity-operation-badge {
- flex: 0 0 auto;
- text-transform: lowercase;
- margin-left: 0.5em;
- font-size: 0.7em;
- background: @history-file-badge-bg;
- color: @history-file-badge-color;
- border-radius: 8px;
- line-height: 1;
- padding: 2px 4px 3px;
- margin-top: 2px;
- }
- .history-react-toolbar {
- display: flex;
- align-items: center;
- gap: 8px;
- .history-react-toolbar-file-info {
- flex: 1;
- text-align: right;
- }
- .history-react-toolbar-time {
- font-weight: 700;
- }
- }
- .history-paywall-prompt {
- padding: @history-change-list-padding;
- .history-feature-list {
- list-style: none;
- padding-left: 8px;
- li {
- margin-bottom: 16px;
- }
- }
- button {
- width: 100%;
- }
- }
- .history-version-faded .history-version-details {
- max-height: 6em;
- .mask-image(linear-gradient(black 35%, transparent));
- overflow: hidden;
- }
- .history-paywall-heading {
- .premium-text;
- font-family: inherit;
- font-size: 20px;
- font-weight: 700;
- }
- .history-content {
- padding: @line-height-computed / 2;
- }
- }
- .history-version-label-tooltip {
- padding: 6px;
- text-align: initial;
- &-row {
- margin-bottom: 6.25px;
- &-comment {
- overflow-wrap: anywhere;
- }
- &:last-child {
- margin-bottom: initial;
- }
- }
- }
- .history-version-dropdown-menu {
- [role='menuitem'] {
- padding: 10px 12px;
- color: @neutral-90;
- &:hover,
- &:focus {
- color: @neutral-90;
- background-color: @neutral-10;
- }
- span.material-symbols {
- vertical-align: middle;
- font-size: inherit;
- }
- }
- }
- .document-diff-container {
- height: 100%;
- display: flex;
- flex-direction: column;
- position: relative;
- .cm-viewer-container,
- .cm-editor {
- height: 100%;
- }
- .previous-highlight-button,
- .next-highlight-button {
- position: absolute;
- right: 16px;
- box-shadow: @box-shadow;
- }
- .previous-highlight-button {
- top: 16px;
- }
- .next-highlight-button {
- bottom: 16px;
- }
- }
- .history-dropdown-icon {
- color: @neutral-90;
- }
- .history-dropdown-icon-inverted {
- color: @neutral-10;
- vertical-align: top;
- }
- .history-file-tree {
- display: flex !important; // To work around jQuery layout's inline styles
- flex-direction: column;
- flex-grow: 1;
- max-height: 100%;
- ul.history-file-tree-list {
- margin: 0;
- overflow-x: hidden;
- height: 100%;
- flex-grow: 1;
- position: relative;
- overflow-y: auto;
- .history-file-tree-item > ul,
- ul[role='tree'] {
- margin-left: 22px;
- }
- &::after {
- content: '';
- display: block;
- min-height: @line-height-computed;
- }
- li {
- line-height: @file-tree-line-height;
- position: relative;
- margin-left: 8px;
- &:focus {
- outline: none;
- }
- .history-file-tree-item {
- color: @file-tree-item-color;
- cursor: pointer;
- white-space: nowrap;
- user-select: none;
- display: flex;
- align-items: center;
- &:focus {
- outline: none;
- }
- .fake-full-width-bg(transparent);
- &:hover {
- background-color: @file-tree-item-hover-bg;
- // When the entity is a subfolder, the DOM element is "indented" via margin-left. This makes the
- // element not fill the entire file-tree width (as it's spaced from the left-hand side via margin)
- // and, in consequence, the background gets clipped. The ::before pseudo-selector is used to fill
- // the empty space.
- .fake-full-width-bg(@file-tree-item-hover-bg);
- }
- .history-file-tree-folder-button,
- .history-file-tree-item-button {
- .reset-button;
- &:focus {
- outline: none;
- }
- }
- .history-file-tree-item-name-wrapper {
- display: flex;
- align-items: center;
- width: 100%;
- overflow: hidden;
- .history-file-tree-item-name {
- margin-right: @margin-xs;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: left;
- font-weight: normal;
- flex-grow: 1;
- &.strikethrough {
- text-decoration: line-through;
- }
- }
- .history-file-tree-item-badge {
- text-transform: capitalize;
- font-weight: normal;
- margin-right: @margin-sm;
- flex-shrink: 0;
- &:hover {
- background-color: @neutral-20;
- }
- }
- }
- }
- i.fa {
- color: @file-tree-item-icon-color;
- font-size: 14px;
- display: inline-flex;
- flex-shrink: 0;
- &.file-tree-icon {
- margin-right: 4px;
- margin-left: 8px;
- }
- &.file-tree-folder-icon {
- margin-right: 4px;
- }
- &.file-tree-expand-icon {
- margin-left: 8px;
- }
- }
- i.fa-folder-open,
- i.fa-folder {
- color: @file-tree-item-folder-color;
- font-size: 14px;
- }
- }
- li.selected > .history-file-tree-item {
- color: @file-tree-item-selected-color;
- background-color: @file-tree-item-selected-bg;
- font-weight: bold;
- > div > i.fa,
- > button > i.fa,
- > i.fa {
- color: @file-tree-item-selected-color;
- }
- .fake-full-width-bg(@file-tree-item-selected-bg);
- }
- }
- }
- .history-error {
- padding: 16px;
- }
|