PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 6.2
پارسی دیت – Parsi Date v6.2
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / assets / scss / admin / _media.scss
wp-parsidate / assets / scss / admin Last commit date
_about.scss 1 month ago _admin_menu.scss 1 month ago _dashboard.scss 1 month ago _media.scss 1 month ago _panel.scss 1 month ago _responsive.scss 1 month ago _rtl.scss 1 month ago
_media.scss
130 lines
1 @use 'sass:color';
2 @use "../utilities/variables";
3
4 .wppd-media-wrap {
5 display: flex;
6 flex-direction: column;
7 gap: 10px;
8 width: 100%;
9
10 .wppd-media-placeholder {
11 background-color: variables.$background_light;
12 border: 1px dashed variables.$input_border_color;
13 border-radius: 10px;
14 corner-shape: squircle;
15 cursor: pointer;
16 display: flex;
17 align-items: center;
18 justify-content: center;
19 gap: 15px;
20 -webkit-transition: .2s;
21 transition: .2s;
22 min-height: 200px;
23 color: color.scale(variables.$input_border_color, $lightness: -25%);
24
25 &:hover {
26 border-color: variables.$primary;
27 color: color.scale(variables.$input_border_color, $lightness: -35%);
28 }
29 }
30
31 .wppd-media-images, .wppd-media-buttons {
32 display: none;
33 }
34
35 &.wppd-media-selected {
36 background-color: variables.$background_light;
37 border: 1px solid variables.$input_border_color;
38 border-radius: 10px;
39 corner-shape: squircle;
40 padding: 15px;
41 min-height: 200px;
42
43 .wppd-media-placeholder {
44 display: none;
45 }
46
47 .wppd-media-images {
48 width: 100%;
49 display: grid;
50 grid-template-columns: repeat(3, 1fr);
51 gap: 10px;
52 margin-bottom: 15px;
53 -webkit-user-select: none; /* Safari */
54 -ms-user-select: none; /* IE 10 and IE 11 */
55 user-select: none; /* Standard syntax */
56
57 .wppd-media-image {
58 position: relative;
59 overflow: hidden;
60
61 &:after {
62 content: "×";
63 display: block;
64 position: absolute;
65 background-color: variables.$danger__badge;
66 border: 1px solid color.scale(variables.$danger__badge, $lightness: -50%);
67 color: white;
68 left: 10px;
69 top: 10px;
70 width: 24px;
71 height: 24px;
72 line-height: 1;
73 text-align: center;
74 border-radius: 50%;
75 font-size: 20px;
76 cursor: pointer;
77 opacity: 0.2;
78 }
79
80 .wppd-media-image-title {
81 position: absolute;
82 bottom: 0;
83 left: 0;
84 background-color: rgba(255, 255, 255, 0.4);
85 color: variables.$meta;
86 padding: 5px;
87 display: block;
88 width: 100%;
89 white-space: nowrap;
90 font-size: 0.8em;
91 cursor: pointer;
92 }
93
94 &:hover {
95 &:after {
96 opacity: 1;
97 }
98 }
99 }
100 }
101
102 button {
103 font-size: 0.9em;
104 }
105
106 .wppd-media-buttons {
107 display: inline-flex;
108 align-items: center;
109 margin-top: auto;
110 gap: 15px;
111 }
112 }
113
114 img {
115 border-radius: 5px;
116 corner-shape: squircle;
117 width: 100%;
118 height: 100%;
119 object-fit: cover;
120 border: 1px dashed transparent;
121 cursor: pointer;
122 -webkit-transition: .2s;
123 transition: .2s;
124
125 &:hover {
126 border-color: color.scale(variables.$danger__badge, $lightness: 50%);
127 }
128 }
129 }
130