todos-contra-el-fuego-web/imports/ui/components/OAuthLoginButton/OAuthLoginButton.scss
vjrj c6c22643c1 scss: migrate @import -> @use, lighten/darken -> color.adjust (dart-sass)
Silences the dart-sass deprecation warnings that flooded every build:
- All @import of local partials (colors, mixins, and the CSS-emitting
  partials) -> @use '...' as * (partials are pure defs, so 'as *' keeps the
  global names and the ~25 call sites unchanged). Added explicit @use './colors'
  to bootstrap-overrides.scss and cookies-eu.scss, which used -palette*
  transitively (broke under @use's scoping).
- lighten(c, x%) -> color.adjust(c, $lightness: x%) and darken -> negative,
  with @use 'sass:color' in the 6 affected files.
Compiles clean (byte-for-byte CSS behavior preserved).
2026-07-17 18:18:04 +02:00

53 lines
914 B
SCSS

@use 'sass:color';
@use '../../stylesheets/colors' as *;
.OAuthLoginButton {
/* display: block;
width: 100%;
padding: 10px 15px;
border: none; */
background: $gray-lighter;
/* border-radius: 3px; */
i {
margin-right: 3px;
font-size: 18px;
position: relative;
top: 1px;
}
&.OAuthLoginButton-facebook {
background: $facebook;
color: #fff;
&:hover { background: color.adjust($facebook, $lightness: -5%); }
}
&.OAuthLoginButton-google {
background: $google;
color: #fff;
&:hover { background: color.adjust($google, $lightness: -5%); }
}
&.OAuthLoginButton-github {
background: $github;
color: #fff;
&:hover { background: color.adjust($github, $lightness: -5%); }
}
&:active {
position: relative;
top: 1px;
}
&:active,
&:focus {
outline: 0;
}
}
.OAuthLoginButton + .OAuthLoginButton {
margin-top: 10px;
}