|
20 | 20 | .component-css-vars-image-viewer();
|
21 | 21 |
|
22 | 22 | &__wrapper {
|
23 |
| - background: var(--ti-image-viewer-mask-wrap-bg-color); |
| 23 | + background: none; |
24 | 24 | position: fixed;
|
25 | 25 | top: 0;
|
26 | 26 | right: 0;
|
|
35 | 35 | align-items: center;
|
36 | 36 | justify-content: center;
|
37 | 37 | border-radius: 50%;
|
38 |
| - opacity: var(--ti-image-viewer-btn-opacity); |
| 38 | + opacity: 1; |
39 | 39 | box-sizing: border-box;
|
40 | 40 | .user-select(none);
|
41 | 41 |
|
42 | 42 | svg {
|
43 |
| - fill: var(--ti-image-viewer-text-color); |
| 43 | + width: 20px; |
| 44 | + height: 20px; |
| 45 | + fill: var(--tv-Image-viewer-text-color); |
44 | 46 | }
|
45 | 47 | }
|
46 | 48 |
|
47 | 49 | &__close {
|
48 |
| - top: var(--ti-image-viewer-close-top); |
49 |
| - right: var(--ti-image-viewer-close-right); |
50 |
| - width: var(--ti-image-viewer-close-width); |
51 |
| - height: var(--ti-image-viewer-close-height); |
52 |
| - font-size: var(--ti-image-viewer-close-font-size); |
53 |
| - background-color: var(--ti-image-viewer-close-bg-color); |
| 50 | + top: 32px; |
| 51 | + right: 32px; |
| 52 | + width: 40px; |
| 53 | + height: 40px; |
| 54 | + font-size: var(--tv-Image-viewer-close-font-size); |
| 55 | + background-color: var(--tv-Image-viewer-close-bg-color); |
54 | 56 |
|
55 | 57 | &:hover {
|
56 | 58 | cursor: pointer;
|
57 |
| - background-color: var(--ti-image-viewer-close-bg-color-hover); |
| 59 | + background-color: #606266; |
58 | 60 | }
|
59 | 61 | }
|
60 | 62 |
|
61 |
| - &__canvas { |
| 63 | + &__canvas { |
62 | 64 | width: 100%;
|
63 | 65 | height: 100%;
|
64 | 66 | display: flex;
|
|
68 | 70 |
|
69 | 71 | &__actions {
|
70 | 72 | left: 50%;
|
71 |
| - bottom: var(--ti-image-viewer-actions-bottom); |
| 73 | + bottom: 32px; |
72 | 74 | transform: translateX(-50%);
|
73 |
| - width: var(--ti-image-viewer-actions-width); |
74 |
| - height: var(--ti-image-viewer-actions-height); |
75 |
| - padding: 0 23px; |
76 |
| - background-color: var(--ti-image-viewer-close-bg-color); |
77 |
| - border-radius: var(--ti-image-viewer-actions-border-radius); |
| 75 | + width: 248px; |
| 76 | + height: var(--tv-Image-viewer-actions-height); |
| 77 | + padding: 10px 24px; |
| 78 | + background-color: var(--tv-Image-viewer-close-bg-color); |
| 79 | + border-radius: var(--tv-Image-viewer-actions-border-radius); |
78 | 80 | }
|
79 | 81 |
|
80 | 82 | &__actions-inner {
|
81 | 83 | width: 100%;
|
82 | 84 | height: 100%;
|
83 |
| - text-align: justify; |
84 | 85 | cursor: default;
|
85 |
| - font-size: var(--ti-image-viewer-actions-inner-font-size); |
86 | 86 | display: flex;
|
87 | 87 | align-items: center;
|
88 |
| - justify-content: var(--ti-image-viewer-actions-inner-justify-content); |
| 88 | + justify-content: space-around; |
89 | 89 |
|
90 | 90 | svg {
|
91 |
| - fill: var(--ti-image-viewer-actions-inner-text-color); |
92 |
| - margin-right: var(--ti-image-viewer-actions-icon-margin-right); |
93 |
| - font-size: var(--ti-image-viewer-actions-icon-size); |
| 91 | + fill: var(--tv-Image-viewer-actions-inner-text-color); |
| 92 | + margin-right: var(--tv-Image-viewer-actions-icon-margin-right); |
94 | 93 |
|
95 | 94 | &:hover {
|
96 | 95 | cursor: pointer;
|
|
99 | 98 | }
|
100 | 99 |
|
101 | 100 | &__actions-divider {
|
102 |
| - display: var(--ti-image-viewer-actions-divider-display); |
| 101 | + display: inline-block; |
103 | 102 | }
|
104 | 103 |
|
105 | 104 | &__actions-count {
|
106 |
| - font-size: var(--ti-image-viewer-actions-count-font-size); |
| 105 | + display: inline-block; |
| 106 | + width: 20px; |
| 107 | + height: 20px; |
| 108 | + line-height: 20px; |
| 109 | + font-size: var(--tv-Image-viewer-actions-count-font-size); |
107 | 110 | color: #fff;
|
108 | 111 | position: relative;
|
109 |
| - margin-left: var(--ti-image-viewer-actions-count-margin-left); |
110 | 112 | }
|
111 | 113 |
|
112 | 114 | &__next,
|
113 | 115 | &__prev {
|
114 | 116 | top: 50%;
|
115 |
| - width: var(--ti-image-viewer-next-width); |
116 |
| - height: var(--ti-image-viewer-next-height); |
117 |
| - font-size: var(--ti-image-viewer-next-font-size); |
118 |
| - background-color: var(--ti-image-viewer-close-bg-color); |
| 117 | + width: var(--tv-Image-viewer-next-width); |
| 118 | + height: var(--tv-Image-viewer-next-height); |
| 119 | + font-size: var(--tv-Image-viewer-next-font-size); |
| 120 | + background-color: var(--tv-Image-viewer-close-bg-color); |
119 | 121 |
|
120 | 122 | &:hover {
|
121 | 123 | cursor: pointer;
|
122 |
| - background-color: var(--ti-image-viewer-close-bg-color-hover); |
| 124 | + background-color: #606266; |
123 | 125 | }
|
124 | 126 | }
|
125 | 127 |
|
126 | 128 | &__prev {
|
127 | 129 | transform: translateY(-50%);
|
128 |
| - left: var(--ti-image-viewer-prev-left); |
| 130 | + left: var(--tv-Image-viewer-prev-left); |
129 | 131 | }
|
130 | 132 |
|
131 | 133 | &__next {
|
132 | 134 | transform: translateY(-50%);
|
133 |
| - right: var(--ti-image-viewer-next-right); |
| 135 | + right: var(--tv-Image-viewer-next-right); |
134 | 136 | text-indent: 2px;
|
135 | 137 | }
|
136 | 138 |
|
|
140 | 142 | height: 100%;
|
141 | 143 | top: 0;
|
142 | 144 | left: 0;
|
143 |
| - background: var(--ti-image-viewer-mask-bg-color); |
| 145 | + background: rgba(0,0,0,0.08); |
144 | 146 | }
|
145 | 147 | }
|
0 commit comments