Просмотр исходного кода

Prefere having OS icon on hover

On hover on the menu there is a conflict with backgrounds. Forcing it this way works to have the normal background with the OS icon (when it exists) on the right side instead of the little arrow on the left side.
®omano 4 лет назад
Родитель
Сommit
f6d454f7d1
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      themes/Revolution/style.css

+ 19 - 0
themes/Revolution/style.css

@@ -116,6 +116,25 @@ hr {
 			color:#FFFFFF;
 			text-decoration:none;
 			}
+		
+		/*Prefere having OS icon on hover*/
+		li.win32 a:hover{
+			background: #999 url('../../images/os/win32.png') no-repeat 97% center !important;
+			background-size: 20px auto;
+		}
+		li.linux32 a:hover{
+			background: #999 url('../../images/os/linux32.png') no-repeat 97% center !important;
+			background-size: 20px auto;
+		}
+		li.win64 a:hover{
+			background: #999 url('../../images/os/win64.png') no-repeat 97% center !important;
+			background-size: 20px auto;
+		}
+		li.linux64 a:hover{
+			background: #999 url('../../images/os/linux64.png') no-repeat 97% center !important;
+			background-size: 20px auto;
+		}
+		
 	.menu li ul{
 		background:#333333;
 		display:none;