awesomeLink
widget and try to embed it on NHL.com.color
, font-size
and display
properties. For the display
property, I set the default inline-block
. .awesomeLink { --uiAwesomeLinkColor: var(--awesomeLinkColor); --uiAwesomeLinkFontSize: var(--awesomeLinkFontSize); --uiAwesomeLinkDisplay: var(--awesomeLinkDisplay, inline-block); display: var(--uiAwesomeLinkDisplay); font-size: var(--uiAwesomeLinkFontSize); color: var(--uiAwesomeLinkColor); }
devTools
and add the link
tag.awesomeLink
class to the “Stats” element in the navigation.display
, font-size
and color
properties are crossed out.!important
.!important
, and this already leads to an endless struggle with it. .awesomeLink { --uiAwesomeLinkColor: var(--awesomeLinkColor); --uiAwesomeLinkFontSize: var(--awesomeLinkFontSize); --uiAwesomeLinkDisplay: var(--awesomeLinkDisplay, inline-block); display: var(--uiAwesomeLinkDisplay) !important; font-size: var(--uiAwesomeLinkFontSize) !important; color: var(--uiAwesomeLinkColor) !important; }
color
, font-size
and display
properties: :root { --awesomeLinkColor: #c21bc2; --awesomeLinkFontSize: 20px; --awesomeLinkDisplay: flex; }
awesomeLink
class to the Schedule element. We set the settings in its parent element li
with the class megamenu-navbar-overflow__menu-item
. .megamenu-navbar-overflow__menu-item:nth-child(6) { --awesomeLinkColor: tomato; --awesomeLinkFontSize: 25px; --awesomeLinkDisplay: block; }
!important
declaration. I also had doubts, but so far I have not encountered any problems. If you see problems due to !important
, let's discuss in the comments.Source: https://habr.com/ru/post/449418/
All Articles