User:MonkeysHK/sandbox4

 .tut-browse ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin-left: 0; } .tut-browse li a { display: inline-block; padding-right: 14px; color: var(--theme-body-text-color); font-weight: 700; border-radius: 6px; } .tut-browse li a:hover { color: black; text-decoration: none; } .tut-browse li a::before { content: "Tutorial "; display: inline-block; margin-right: 14px; padding: 5px 14px 5px 14px; border-radius: 6px 0 0 6px; color: black; } .theme-fandomdesktop-light .tut-browse li a:hover, .theme-fandomdesktop-light .tut-browse li a::before { color: white; } .tut-browse li:nth-child(4n+1) a:hover { background: #b33636; } .tut-browse li:nth-child(4n+1) a::before { background: #e04141; } .tut-browse li:nth-child(4n+2) a:hover { background: #3e59ad; } .tut-browse li:nth-child(4n+2) a::before { background: #778ac4; } .tut-browse li:nth-child(4n+3) a:hover { background: #b1901d; } .tut-browse li:nth-child(4n+3) a::before { background: #d3b54e; } .tut-browse li:nth-child(4n+4) a:hover { background: #2e7a20; } .tut-browse li:nth-child(4n+4) a::before { background: #72a251; }