frankcollins3 / Next-Water-App

Happy, Healthy Water Cycling App that tracks user/human fluid intake.
https://next-water-app.vercel.app
1 stars 0 forks source link

💋SASS pseudo-class [7:55am] #80

Closed frankcollins3 closed 11 months ago

frankcollins3 commented 11 months ago

attempting to do: sass instead of css

error: ::-webkit-scrollbar { width: 10px; height: 5px; padding-top: 50%; }

Screen Shot 2023-07-22 at 7 56 35 AM

proposed approach: 1: find a container to which we can attribute this css property. 2: use the same for inline ?

frankcollins3 commented 11 months ago

trying: .form::-webkit-scrollbar { [7:59am]

frankcollins3 commented 11 months ago

new approach is @mixin which means this issue is turning into a double issue:

here is the code from which the error is produced:

@mixin webkit-scrollbar {
    &::-webkit-scrollbar {
      width: 10px;
      height: 5px;
      padding-top: 50%;
    }
    &::-webkit-scrollbar-track {
        background: #ffffff;
    }

    &::-webkit-scrollbar-thumb {
        background: #dedede70;
    }
    &::-webkit-scrollbar-thumb:hover {
        background: #98ddfc;
    }
    // &::-webkit-scrollbar-button {
    // }

  }

.settingsContainer {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 2em;
    @include webkit-scrollbar;
    @include webkit-scrollbar-track;
    @include webkit-scrollbar-thumb;
  }

Screen Shot 2023-07-22 at 8 31 18 AM

[8:31am]

frankcollins3 commented 11 months ago

👍 @include webkit-scrollbar // only 1 mixin needed: [8:38am]