Mise à jour CSS
davvalent

davvalent commited on 2022-04-26 23:39:56
Showing 1 changed files, with 41 additions and 13 deletions.

... ...
@@ -503,8 +503,7 @@ function rookie_custom_colors() {
503 503
 	?>
504 504
 	<style type="text/css"> /* Rookie Custom Colors */
505 505
 
506
-/* MODIFICATIONS */
507
-
506
+  /** Hard coded custom style */
508 507
 	.main-navigation .nav-menu > .menu-item-has-children:hover > a {
509 508
 		background: #c92a2e;
510 509
 		}
... ...
@@ -527,9 +526,11 @@ function rookie_custom_colors() {
527 526
 		color: #ffffff;
528 527
 		}
529 528
 
530
-/* MODIFICATIONS */
529
+  /** Hard coded custom style */
530
+  .site-content {
531
+    background: <?php echo $colors['content_background']; ?>;
532
+  }
531 533
 
532
-.site-content { background: <?php echo $colors['content_background']; ?>; }
533 534
 	pre,
534 535
 	code,
535 536
 	kbd,
... ...
@@ -625,9 +626,8 @@ function rookie_custom_colors() {
625 626
 	select,
626 627
 	textarea,
627 628
 
628
-  /* MODIFICATIONS */
629
-
630 629
 /*.main-navigation .nav-menu > .menu-item-has-children:hover > a,*/
630
+
631 631
 	.main-navigation ul ul a,
632 632
 	.widget_recent_entries ul li:before,
633 633
 	.widget_pages ul li:before,
... ...
@@ -655,8 +655,6 @@ function rookie_custom_colors() {
655 655
 	var,
656 656
 	table,
657 657
 
658
-  /* MODIFICATIONS */
659
-
660 658
 /*.main-navigation li.menu-item-has-children:hover a:hover,*/
661 659
 
662 660
 	.main-navigation ul ul li.page_item_has_children:hover > a,
... ...
@@ -731,17 +729,15 @@ function rookie_custom_colors() {
731 729
 	.main-navigation ul ul .current-menu-ancestor > a,
732 730
 	.main-navigation ul ul .current_page_item > a,
733 731
 
734
-    /* MODIFICATIONS */
735
-
736 732
 /*.main-navigation ul ul .current_page_parent > a,*/
737 733
 
738 734
 	.main-navigation ul ul .current_page_ancestor > a,
739
-	.main-navigation li.menu-item-has-children:hover ul .current-menu-item > a:hover,
735
+
736
+/*.main-navigation li.menu-item-has-children:hover ul .current-menu-item > a:hover,*/
737
+
740 738
 	.main-navigation li.menu-item-has-children:hover ul .current-menu-parent > a:hover,
741 739
 	.main-navigation li.menu-item-has-children:hover ul .current-menu-ancestor > a:hover,
742 740
 
743
-    /* MODIFICATIONS */
744
-
745 741
 /*.main-navigation li.menu-item-has-children:hover ul .current_page_item > a:hover,*/
746 742
 
747 743
 	.main-navigation li.menu-item-has-children:hover ul .current_page_parent > a:hover,
... ...
@@ -888,6 +884,38 @@ function rookie_custom_colors() {
888 884
 
889 885
 	<?php do_action( 'sportspress_frontend_css', $colors ); ?>
890 886
 
887
+  /** Hard coded custom style */
888
+  a:hover {
889
+    background-color: #c92a2e;
890
+  }
891
+  a:hover,
892
+  .sp-tab-menu-item a:hover,
893
+  .sp-row.sp-post a:hover,
894
+  .widget_archive ul li a:hover,
895
+  .widget_nav_menu ul li a:hover,
896
+  .widget_recent_entries ul li a:hover {
897
+    color: #fff;
898
+  }
899
+  a.site-logo:hover,
900
+  h1.site-title a:hover,
901
+  .posted-on a:hover,
902
+  .entry-title a:hover,
903
+  .entry-meta a:hover,
904
+  .nav-links a:hover {
905
+    background: none;
906
+  }
907
+  .sp-tab-menu-item a {
908
+    transition: none;
909
+  }
910
+
911
+  td {
912
+      border: 2px solid #e0e0e0;
913
+  }
914
+  td,
915
+  .widget {
916
+    font-size: inherit;
917
+  }
918
+
891 919
 	</style>
892 920
 	<?php
893 921
 }
894 922