Parcourir la source

Fix: swage extension config button (#4551)

* add configure class to the slide-opener link

* better cog color

* cog color of extension configure
maTh il y a 3 ans
Parent
commit
5e3f2a4ad5

+ 1 - 1
app/views/helpers/extension/details.phtml

@@ -16,7 +16,7 @@
 	}
 	}
 	if ($this->ext_details->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) {?>
 	if ($this->ext_details->getType() === 'user' || FreshRSS_Auth::hasAccess('admin')) {?>
 	<button class="switch<?= $button_class ?>" form="form-extension" formaction="<?= _url('extension', $action, 'e', $name_encoded) ?>" title="<?= _t('gen.action.enable') ?>"></button>
 	<button class="switch<?= $button_class ?>" form="form-extension" formaction="<?= _url('extension', $action, 'e', $name_encoded) ?>" title="<?= _t('gen.action.enable') ?>"></button>
-	<a class="open-slider" title="<?= _t('gen.action.manage') ?>" href="<?= _url('extension', 'configure', 'e', $name_encoded) ?>"><?= _i('configure') ?></a>
+	<a class="open-slider configure" title="<?= _t('gen.action.manage') ?>" href="<?= _url('extension', 'configure', 'e', $name_encoded) ?>"><?= _i('configure') ?></a>
 	<span class="ext_name<?= $name_class ?>"><?= $this->ext_details->getName() ?></span>
 	<span class="ext_name<?= $name_class ?>"><?= $this->ext_details->getName() ?></span>
 <?php } else { ?>
 <?php } else { ?>
 	<button class="switch<?= $button_class ?>" title="<?= _t('admin.extensions.system.no_rights') ?>" disabled="disabled"></button>
 	<button class="switch<?= $button_class ?>" title="<?= _t('admin.extensions.system.no_rights') ?>" disabled="disabled"></button>

+ 9 - 1
p/themes/Swage/swage.css

@@ -273,6 +273,14 @@ form th {
 	background: #f95c20 !important;
 	background: #f95c20 !important;
 }
 }
 
 
+.manage-list .configure .icon {
+	filter: brightness(0.4);
+	vertical-align: sub;
+}
+.manage-list .configure:hover {
+	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
+}
+
 .switch.active {
 .switch.active {
 	background-color: #0062be;
 	background-color: #0062be;
 }
 }
@@ -542,7 +550,7 @@ form th {
 }
 }
 .box .box-content .item .configure .icon {
 .box .box-content .item .configure .icon {
 	vertical-align: middle;
 	vertical-align: middle;
-	filter: invert(1);
+	filter: brightness(0.4);
 }
 }
 .box .box-content .item .configure .icon:hover {
 .box .box-content .item .configure .icon:hover {
 	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
 	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);

+ 9 - 1
p/themes/Swage/swage.rtl.css

@@ -273,6 +273,14 @@ form th {
 	background: #f95c20 !important;
 	background: #f95c20 !important;
 }
 }
 
 
+.manage-list .configure .icon {
+	filter: brightness(0.4);
+	vertical-align: sub;
+}
+.manage-list .configure:hover {
+	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
+}
+
 .switch.active {
 .switch.active {
 	background-color: #0062be;
 	background-color: #0062be;
 }
 }
@@ -542,7 +550,7 @@ form th {
 }
 }
 .box .box-content .item .configure .icon {
 .box .box-content .item .configure .icon {
 	vertical-align: middle;
 	vertical-align: middle;
-	filter: invert(1);
+	filter: brightness(0.4);
 }
 }
 .box .box-content .item .configure .icon:hover {
 .box .box-content .item .configure .icon:hover {
 	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
 	filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);

+ 14 - 1
p/themes/Swage/swage.scss

@@ -343,6 +343,19 @@ form {
 	}
 	}
 }
 }
 
 
+.manage-list {
+	.configure {
+		.icon {
+			filter: brightness(0.4);
+			vertical-align: sub;
+		}
+
+		&:hover {
+			filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
+		}
+	}
+}
+
 .switch.active {
 .switch.active {
 	background-color: #0062be;
 	background-color: #0062be;
 
 
@@ -680,7 +693,7 @@ form {
 			.configure {
 			.configure {
 				.icon {
 				.icon {
 					vertical-align: middle;
 					vertical-align: middle;
-					filter: invert(1);
+					filter: brightness(0.4);
 
 
 					&:hover {
 					&:hover {
 						filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);
 						filter: invert(56%) sepia(87%) saturate(1185%) hue-rotate(327deg) brightness(104%) contrast(96%);