فهرست منبع

Improved: Slider: Close area = grey background (#4292)

* CSS

* fix order

* no X icon

* improved CSS

* Update queries.phtml
maTh 4 سال پیش
والد
کامیت
d350a54513
4فایلهای تغییر یافته به همراه38 افزوده شده و 2 حذف شده
  1. 0 1
      app/views/extension/index.phtml
  2. 0 1
      app/views/subscription/index.phtml
  3. 19 0
      p/themes/base-theme/template.css
  4. 19 0
      p/themes/base-theme/template.rtl.css

+ 0 - 1
app/views/extension/index.phtml

@@ -77,7 +77,6 @@
 			</table>
 		</div>
 	<?php } ?>
-
 	<?php $class = isset($this->extension) ? ' active' : ''; ?>
 	<a href="#" id="close-slider" class="<?= $class ?>">
 		<?= _i('close') ?>

+ 0 - 1
app/views/subscription/index.phtml

@@ -73,7 +73,6 @@
 			</div>
 		</div>
 	</div>
-
 	<?php $class = $this->displaySlider ? ' active' : ''; ?>
 	<a href="#" id="close-slider" class="<?= $class ?>">
 		<?= _i('close') ?>

+ 19 - 0
p/themes/base-theme/template.css

@@ -1445,6 +1445,7 @@ br {
 	overflow: auto;
 	border-left: 1px solid #aaa;
 	transition: width 200ms linear;
+	z-index: 100;
 }
 
 #slider.active {
@@ -1459,13 +1460,25 @@ br {
 }
 
 #close-slider.active {
+	background: rgba(0, 0, 0, 0.2);
+	font-size: 0;
 	left: 0;
+	z-index: 99;
 }
 
 #close-slider img {
 	display: none;
 }
 
+#close-slider.active img {
+	padding: 0.5rem;
+	display: inline-block;
+	position: absolute;
+	top: 0.5rem;
+	left: 0.5rem;
+	filter: grayscale(100%) brightness(2.5);
+}
+
 /*=== SLIDESHOW */
 /*==============*/
 .slides {
@@ -1881,6 +1894,12 @@ input:checked + .slide-container .properties {
 		display: initial;
 	}
 
+	#close-slider.active img {
+		display: initial;
+		position: initial;
+		filter: initial;
+	}
+
 	#close-slider.active {
 		background: #f6f6f6;
 		display: block;

+ 19 - 0
p/themes/base-theme/template.rtl.css

@@ -1445,6 +1445,7 @@ br {
 	overflow: auto;
 	border-right: 1px solid #aaa;
 	transition: width 200ms linear;
+	z-index: 100;
 }
 
 #slider.active {
@@ -1459,13 +1460,25 @@ br {
 }
 
 #close-slider.active {
+	background: rgba(0, 0, 0, 0.2);
+	font-size: 0;
 	right: 0;
+	z-index: 99;
 }
 
 #close-slider img {
 	display: none;
 }
 
+#close-slider.active img {
+	padding: 0.5rem;
+	display: inline-block;
+	position: absolute;
+	top: 0.5rem;
+	right: 0.5rem;
+	filter: grayscale(100%) brightness(2.5);
+}
+
 /*=== SLIDESHOW */
 /*==============*/
 .slides {
@@ -1881,6 +1894,12 @@ input:checked + .slide-container .properties {
 		display: initial;
 	}
 
+	#close-slider.active img {
+		display: initial;
+		position: initial;
+		filter: initial;
+	}
+
 	#close-slider.active {
 		background: #f6f6f6;
 		display: block;