← All changes
|
assets/css/modules/inactive-tab-message/admin/preview.css
+99
-29
1.7
→
2.3.2
View file →
| @@ -1,8 +1,8 @@ | ||
| 1 | +@charset "UTF-8"; | |
| 1 | 2 | /** |
| 2 | 3 | * Admin Preview |
| 3 | - * Inactive Tab Message | |
| 4 | - * | |
| 4 | + * Inactive Tab Message — Enhanced dual-tab preview. | |
| 5 | 5 | */ |
| 6 | 6 | .merchant-module-page-preview-browser-inner { |
| 7 | 7 | display: -webkit-box; |
| 8 | 8 | display: -ms-flexbox; |
| @@ -22,43 +22,113 @@ | ||
| 22 | 22 | padding: 35px 25px; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | .mrc-preview-inactive-tab-message { |
| 26 | + width: 100%; | |
| 27 | +} | |
| 28 | + | |
| 29 | +.mrc-inactive-tab-preview-tabs { | |
| 26 | 30 | display: -webkit-box; |
| 27 | 31 | display: -ms-flexbox; |
| 28 | 32 | display: flex; |
| 33 | + gap: 2px; | |
| 34 | + border-bottom: 2px solid #e0e0e0; | |
| 35 | +} | |
| 36 | + | |
| 37 | +.mrc-inactive-tab-preview-tab { | |
| 38 | + display: -webkit-box; | |
| 39 | + display: -ms-flexbox; | |
| 40 | + display: flex; | |
| 29 | 41 | -webkit-box-align: center; |
| 30 | 42 | -ms-flex-align: center; |
| 31 | 43 | align-items: center; |
| 32 | - gap: 14px; | |
| 33 | - padding: 20px 35px; | |
| 34 | - border-radius: 10px; | |
| 35 | - background-color: #f5f5f5; | |
| 36 | - border: 1px solid #e9e9e9; | |
| 44 | + gap: 8px; | |
| 45 | + padding: 10px 16px; | |
| 46 | + border-radius: 8px 8px 0 0; | |
| 47 | + font-size: 12px; | |
| 48 | + line-height: 1.3; | |
| 49 | + min-width: 0; | |
| 50 | + max-width: 220px; | |
| 51 | + overflow: hidden; | |
| 52 | + white-space: nowrap; | |
| 53 | + text-overflow: ellipsis; | |
| 54 | + position: relative; | |
| 55 | + cursor: default; | |
| 37 | 56 | } |
| 38 | -.mrc-preview-inactive-tab-message:after { | |
| 39 | - content: "\f335"; | |
| 40 | - display: block; | |
| 41 | - font-family: dashicons; | |
| 42 | - font-size: 20px; | |
| 43 | - color: #adadad; | |
| 44 | - -webkit-box-ordinal-group: 4; | |
| 45 | - -ms-flex-order: 3; | |
| 46 | - order: 3; | |
| 57 | +.mrc-inactive-tab-preview-tab--active { | |
| 58 | + background: #fff; | |
| 59 | + border: 1px solid #e0e0e0; | |
| 60 | + border-bottom-color: #fff; | |
| 61 | + margin-bottom: -2px; | |
| 62 | + z-index: 1; | |
| 63 | + color: #333; | |
| 47 | 64 | } |
| 65 | +.mrc-inactive-tab-preview-tab--inactive { | |
| 66 | + background: #f0f0f0; | |
| 67 | + border: 1px solid transparent; | |
| 68 | + color: #888; | |
| 69 | + width: 171px; | |
| 70 | + -ms-flex-negative: 0; | |
| 71 | + flex-shrink: 0; | |
| 72 | +} | |
| 73 | +.mrc-inactive-tab-preview-tab--inactive .mrc-inactive-tab-preview-tab__title { | |
| 74 | + color: #555; | |
| 75 | + font-weight: 600; | |
| 76 | +} | |
| 77 | +.mrc-inactive-tab-preview-tab__favicon { | |
| 78 | + -ms-flex-negative: 0; | |
| 79 | + flex-shrink: 0; | |
| 80 | + width: 16px; | |
| 81 | + height: 16px; | |
| 82 | + display: -webkit-box; | |
| 83 | + display: -ms-flexbox; | |
| 84 | + display: flex; | |
| 85 | + -webkit-box-align: center; | |
| 86 | + -ms-flex-align: center; | |
| 87 | + align-items: center; | |
| 88 | + -webkit-box-pack: center; | |
| 89 | + -ms-flex-pack: center; | |
| 90 | + justify-content: center; | |
| 91 | +} | |
| 92 | +.mrc-inactive-tab-preview-tab__favicon img { | |
| 93 | + width: 16px; | |
| 94 | + height: 16px; | |
| 95 | + border-radius: 2px; | |
| 96 | +} | |
| 97 | +.mrc-inactive-tab-preview-tab__title { | |
| 98 | + overflow: hidden; | |
| 99 | + text-overflow: ellipsis; | |
| 100 | + white-space: nowrap; | |
| 101 | + -webkit-box-flex: 1; | |
| 102 | + -ms-flex: 1; | |
| 103 | + flex: 1; | |
| 104 | + min-width: 0; | |
| 105 | +} | |
| 106 | +.mrc-inactive-tab-preview-tab__close { | |
| 107 | + -ms-flex-negative: 0; | |
| 108 | + flex-shrink: 0; | |
| 109 | + font-size: 14px; | |
| 110 | + color: #aaa; | |
| 111 | + margin-left: auto; | |
| 112 | +} | |
| 113 | +.mrc-inactive-tab-preview-tab__close:hover { | |
| 114 | + color: #666; | |
| 115 | +} | |
| 48 | 116 | |
| 49 | -.mrc-inactive-tab-message-icon-wrapper { | |
| 50 | - position: relative; | |
| 51 | - top: 3px; | |
| 52 | - -webkit-box-ordinal-group: 2; | |
| 53 | - -ms-flex-order: 1; | |
| 54 | - order: 1; | |
| 117 | +.mrc-inactive-tab-favicon-emoji { | |
| 118 | + font-size: 14px; | |
| 119 | + line-height: 1; | |
| 55 | 120 | } |
| 56 | -.mrc-inactive-tab-message-icon-wrapper .mrc-inactive-tab-message__icon img { | |
| 57 | - width: 20px; | |
| 58 | -} | |
| 59 | 121 | |
| 60 | -.mrc-inactive-tab-message-text { | |
| 61 | - -webkit-box-ordinal-group: 3; | |
| 62 | - -ms-flex-order: 2; | |
| 63 | - order: 2; | |
| 122 | +.mrc-inactive-tab-preview-label { | |
| 123 | + display: -webkit-box; | |
| 124 | + display: -ms-flexbox; | |
| 125 | + display: flex; | |
| 126 | + -webkit-box-pack: justify; | |
| 127 | + -ms-flex-pack: justify; | |
| 128 | + justify-content: space-between; | |
| 129 | + margin-top: 10px; | |
| 130 | + font-size: 10px; | |
| 131 | + color: #999; | |
| 132 | + text-transform: uppercase; | |
| 133 | + letter-spacing: 0.5px; | |
| 64 | 134 | } |