Service-Menue Logged-In (with Badge)
CODE
×
HTML
<a class='service-menue user-account'>Max Mustermann</a>
CSS
a.service-menue.user-account { position:relative; } a.service-menue.user-account:before { background-image: url('../img/logout.svg'); background-repeat: no-repeat; background-attachment: scroll; background-position: center center; background-size: auto; width: 21px; height: 19px; content: " "; position: absolute; left: -24px; top: -1px; background-size: 21px 19px; background-repeat: no-repeat; } a.service-menue.user-account { margin-left: calc(0.25vw + 34px); height: 20px; border-bottom: 2px solid rgba(234,22,31,0.77); } a.service-menue.user-account::after { border-color: transparent; } a.service-menue.user-account:hover, a.service-menue.user-account:focus { border-bottom: 2px solid #000; } a.service-menue { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size: 14px; line-height: 18px; letter-spacing: 0.01rem; word-spacing: 0.025rem; color: var(--black); display:inline-block; height: 20px; line-height: 1.3; margin: 0 calc(0.25vw + 15px) 0 calc(0.25vw + 15px); } a.service-menue:after { display: block; content: ''; border-bottom: 2px solid #000; -webkit-transform: scaleX(0); -ms-transform: scaleX(0); transform: scaleX(0); -webkit-transition: transform 100ms ease-in-out; transition: transform 100ms ease-in-out; } a.service-menue { text-decoration: none !important; } a { color: var(--black); } a:hover, a:focus { color: var(--black); }
JS
Service-Menue Logged-In (with Badge)
Letzte Änderung: 26.11.2024 - 13:50 Uhr
×
Max Mustermann