| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- // import diff2html styles
- @import '~diff2html/bundles/css/diff2html.min.css';
- .main-container {
- .url-line {
- font-size: 1rem;
- color: $gray-400;
- }
- h1.title {
- margin-top: 0;
- margin-bottom: 0;
- .d-flex {
- flex-wrap: wrap; // for long page path
- }
- // crowi layout only
- a.last-path {
- color: $gray-300;
- &:hover {
- color: inherit;
- }
- }
- }
- }
- .main .content-main .revision-history {
- .revision-history-list {
- .revision-history-outer {
- // add border-top except of first element
- &:not(:first-of-type) {
- @extend .border-top;
- }
- .revision-history-main {
- .picture-lg {
- width: 32px;
- height: 32px;
- }
- .revision-history-meta {
- a:hover {
- cursor: pointer;
- }
- }
- .caret {
- transition: 0.4s;
- transform: rotate(-90deg);
- &.caret-opened {
- transform: rotate(0deg);
- }
- }
- }
- .revision-history-main-nodiff {
- .picture-container {
- min-width: 32px;
- text-align: center; // centering .picture
- }
- }
- .revision-history-diff {
- padding-left: 40px;
- color: $gray-900;
- table-layout: fixed;
- }
- }
- li {
- position: relative;
- list-style: none;
- }
- }
- // compacted list
- .revision-history-list-compact {
- .revision-history-outer-contiguous-nodiff {
- border-top: unset !important; // force unset border
- }
- }
- // adjust
- // this is for diff2html. hide page name from diff view
- .d2h-file-header {
- display: none;
- }
- .d2h-diff-tbody {
- background-color: white;
- }
- }
- /**
- * for table with handsontable modal button
- */
- .editable-with-handsontable {
- position: relative;
- .handsontable-modal-trigger {
- position: absolute;
- top: 11px;
- right: 10px;
- padding: 0;
- font-size: 16px;
- line-height: 1;
- vertical-align: bottom;
- background-color: transparent;
- border: none;
- opacity: 0;
- }
- .page-mobile & .handsontable-modal-trigger {
- opacity: 0.3;
- }
- &:hover .handsontable-modal-trigger {
- opacity: 1;
- }
- }
- /**
- * for drawio with drawio iframe button
- */
- .editable-with-drawio {
- .drawio-iframe-trigger {
- top: 11px;
- right: 10px;
- z-index: 14;
- font-size: 12px;
- line-height: 1;
- }
- }
- .card.grw-page-status-alert {
- $margin-bottom: $grw-navbar-bottom-height + 10px;
- box-shadow: 0px 2px 4px #0000004d;
- opacity: 0.9;
- @include media-breakpoint-down(sm) {
- margin: 0 10px $margin-bottom;
- .grw-card-label-container {
- text-align: center;
- }
- .grw-card-btn-container {
- text-align: center;
- .btn {
- @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
- }
- }
- }
- @include media-breakpoint-up(md) {
- width: 700px;
- margin: 0 auto $margin-bottom;
- .card-body {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .grw-card-label-container,
- .grw-card-btn-container {
- margin: 0;
- }
- }
- }
|