Giter Club home page Giter Club logo

sierra's People

Contributors

brianbower avatar devswert avatar gitter-badger avatar hackzzila avatar joanclaret avatar kittygiraudel avatar maraisr avatar n10v avatar peterbrinck avatar pngnlib avatar xdamman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sierra's Issues

Textarea horizontal resize overflows parent

Hi, while browsing the home page of your library, I tried resizing a textarea and it actually reacted weirdly

So basically you can resize it both vertically and horizontally, and while vertical resizing is acting normally, horizontal resizing doesn't work as I thought it would: when you release the mouse, the textarea remains the same size ( so it's not overflowing its parent, good ), but the symbol in the bottom right of the textarea on which you click to resize actually stays where you left it

Example
I tried puttin max-width: 100% on the .textarea textarea and it actually behaved like I think it should

Note: It's actually my first ever contribution outside my personal projects, sorry if I did it the wrong way.

Avoid vendor prefixes

Hey there!

I would argue it is not Penguin’s role to prefix the styles and this should be delayed to a third party library such as Autoprefixer. While I understand how having “all-in-one” is a good thing, Autoprefixer handles prefixing based on actual stats + configuration, which is better than hard-coded prefixes in a stylesheet.

If you want me to submit a PR to get rid of the prefixes, just ask. :)

General Question - React Lib

Wondering if anyone knows of a lib out them implementing sierra-library in react or preact? Might build one if not.

_variables.scss

Line 55 of testscss/src/_variables.scss: Invalid CSS after " 'primary'": expected ")", was ": ..."

Add Hello World

I'm not familiar with SCSS so it's going to take me a little while to figure out how it works. A hello world application would be good for new users to help adoption.

Transition on Buttons

Hi!
When you do a transition on button hover, this listen only the background-color, if you add (or replace background property) opacity can see that the transition it's more clean.

Ellipsis mixin and display

I don’t think it is the responsibility of the ellipsis mixin to set the display property, as it is somehow unrelated. I would remove it from the mixin, which has the positive side of making the mixin argument-less.

Unclear Copyright/License

Origin

I recently built my own website, which uses Sierra Library.

Issue

  1. Since Sierra Library is Licensed under GPL-2.0, copyright notices have to be applied, but no unambiguous license and copyright notice was present in any file header
  2. It is not clear, whether the GPL-2.0 variant GPL-2.0-only, or GPL-2.0-or-later is intended

Solution

  1. Add a license and copyright notice the the main source file (like src/index.scss)
  2. Add the intended license code to the license name for clarification

Align Colors for Components

Every component seems to have its own colour name, especially Buttons, they seem to have a completely different color naming scheme ?? Wondering why with is?

Im trying to implement this ui into a react lib but this is making things complicated.

Wondering for 3.0 if we can have a constant colour, size scheme through out the lib ??

v3.0 Button text invisible for some colours

If you look at the demo page, Outlined and Transparent buttons have an issue if you click (focus) and move your mouse off the button element the text becomes invisible. Something to do with hover i guess ?

image

image

Breakpoint mixin improvements

The breakpoint mixin could be made a bit more automatic and elegant like this. :)

Improvements:

  • Query-agnostic (to allow min-height and max-height queries for instance)
  • Emit a warning when using an unknown breakpoint
  • Less repetitive code
@mixin breakpoint($breakpoint, $query: 'min-width') {
  $breakpoints: (
    'bp-small': $screen-xs-min,
    'bp-medium': $screen-sm-min,
    'bp-large': $screen-md-min,
    'bp-huge': $screen-lg-min,
  );

  @if map-has-key($breakpoints, $breakpoint) {
    @media (#{$query}: map-get($breakpoints, $breakpoint)) { @content; }
  } @else {
    @warn 'No breakpoint found for `#{$breakpoint}`. Allowed values are: #{map-keys($breakpoints)}.';
  }
}

Superscript indistinguishable from normal text

<sup> elements look just like other text elements due to sharing the same font-size and vertical-align, and this could present accessibility issues.
I found it necessary to override Sierra with the following:

sup
  vertical-align: super
  font-size: 0.8rem

Mixin media-breakpoint-down doesn't work for the largest breakpoint

Config:

$grid-breakpoints: (
  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1300px
);

Mixin call:

.bla{
  @include media-breakpoint-down(xl){
    display:none;
  }
}

CSS output:

.bla{
  display:none;
}

Mixin/Debugging:

@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
  $max: breakpoint-max($name, $breakpoints);
  @debug("===========");
  @debug($name);  // ==> xl
  @debug($max); // ==> null
  @debug("===========");
  @if $max {
    @media (max-width: $max) {
      @content;
    }
  } @else {
    @content;
  }
}

This is because the breakpoint-max function ...

@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
  $next: breakpoint-next($name, $breakpoints);
  @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
}

... is (also) designed for the media-breakpoint-between mixin. So, the media-breakpoint-down mixin needs to address this.

Possible fix:

@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
  $max: breakpoint-max($name, $breakpoints);
  @if $max {
    @media (max-width: $max) {
      @content;
    }
  } @else {
    // Largest (last) breakpoint
    @media (max-width: (map-get($grid-breakpoints, $name) - 1px)) {
      @content;
    }
  }
}

Thoughts?

Add some form of dropdown?

Awesome lib, looks great.

Only thing I'm not keen on is the fact that "dropdowns", for example on the menus are the default browser select options. Anything that can be done/made?

State of the project?

I have been relying on sierra-ui since around 2017, and I have noticed that updates stopped back in 2019. This makes me wonder - is the project abandoned? If so, could you please refer me to an alternative?

Thank you.

P.S There is a similar issue already closed, but it is way older.

Rename "entry" to something better namespaced

If someone wants to use Bower to install Sierra, and then use bower_components\sierra\src as a location to look for items being imported they'd have to use the generic @import "entry" which is not very descriptive and would lend itself to importing in the wrong file from a different directory.

entry.scss should be renamed to sierra-entry.scss or something similarly namespaced.

See how the following mixin libraries follow this same pattern:

Code Source
@import "buttons"; github.com/alexwolfe/Buttons
@import "saffron"; github.com/corporadobob/saffron
@import "sassmatic"; github.com/DarbyBrown/sassmatic
@import "scut"; github.com/davidtheclark/scut
@import "su"; github.com/ericam/susy
@import "susy"; github.com/ericam/susy
@import "susyone"; github.com/ericam/susy
@import "andy"; github.com/gillesbertaux/andy
@import "typesettings"; github.com/ianrose/typesettings
@import "animate"; github.com/Igosuki/compass-mixins
@import "compass"; github.com/Igosuki/compass-mixins
@import "lemonade"; github.com/Igosuki/compass-mixins
@import "sassy-buttons"; github.com/jhardy/Sassy-Buttons
@import "bluebird"; github.com/kalebheitzman/bluebird
@import "sass-easing"; github.com/kingscooty/sass-easing
@import "breakpoint"; github.com/lesjames/breakpoint
@import "css3-mixins"; github.com/matthieua/sass-css3-mixins
@import "cssowl"; github.com/owl-stars/cssowl
@import "spice"; github.com/spice-sass/spice
@import "bourbon-deprecated-upcoming"; github.com/thoughtbot/bourbon
@import "bourbon"; github.com/thoughtbot/bourbon
@import "neat"; github.com/thoughtbot/neat

Since this may be a breaking change for those who explicitly targeted bower_components\sierra\src\entry.scss you should include a major version bump from v1.1.4 to v2.0.0.

Define global variables as default

Hi,

I thinks that it would be great if you included global variables with !default flags so they can be easily overwritter in custom .scss files.

And thanks for awesome work!

BEM'ify

Thinking as a Version 2, I'll BEMify the sass to be just another supporter of the SASS movement.. What you guys thinking? Think it'll leave even a lower footprint..

Warning with badge key name

There's a warning when I compile, which isn't an issue but can easily be resolved to remove that warning. For the badges, the compiler doesn't like how the key gray in _variables.scss is being interpolated. An easy fix is to simply scroll down to $badges-color-map and rename gray to something else, such as light. Then of course we'll have to begin using that new class (badge-light) if we want to use that grey badge.

The warning is bringing attention to the fact that the color may be converted to another value such as hex, but in this case, I don't believe that will happen since we're just grabbing a key name in _badges.scss.

how configuration in webpack?

I including in app.jsx by import "sierral-ibrary"
but getting error :

ERROR in ./node_modules/sierra-library/dist/sierra.min.css
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type.

Why use classes and not element names?

I apologize if this is a fairly neophyte question. But it's hard to keep up with speed at which CSS stuff moves. What is the decision for only using class names for styling and not element names?

For instance, <h2>Heading</h2> will not be styled while <h2 class="text-big">Heading</h2> will be.

I attempted to use Sierra on jekyll and can't due to this constraint.

textarea font-color

Is black, should be white.
And padding is missing.
And background:focus highlight:

My change in _forms.scss:

// textarea
.textarea {
  background-color: $form-bg-color;
  padding: 0;
  width: 100%;
  color: $form-text-color;
  padding: 10px 15px;

  textarea {
    background: transparent;
    border: 0;
    display: block; // prevent small margin at the bottom of textarea
    font-family: $basefont;
    width: 100%;
  }
    &:focus,
    &:active {
      outline: none;
      background-color: lighten($form-bg-color, 5%);
    }
}

And please change "Klingon search" to "Ferengi find"

Doesn't compile with libsass

Trying to compile with sassc (node-sass should be the same) yields:

Error: Import directives may not be used within control directives or mixins.
        on line 28 of sierra/src/_sierra.scss
>>   @import 'scss/flexboxgrid';
   --^

@import inside @if statements are apparently not really supported by sass, they just happen to work with the ruby compiler.

Form placeholders and validation

what's the variable for the form element's placeholder text?

what's the recommended script for form validation that can be hooked to the form element's states?

Weird classes for container sizes

I find it very weird with the classes for container sizes

There's three classes for the container:
.container
.container-small
.container-xs


I think it should be consistent with the naming, so it's easier to remember and use.
The current 3 classes is confusing, in the way that two of them have the same "size", small. One is even smaller than small - Does it make sense?

I recommend using these classes instead, for easy use and consistent naming:
.container
.container-medium - equivalent to .container-small
.container-small - equivalent to .container-xs


Also, I find it weird that there isn't SCSS/SASS variables for all the container sizes.

Deprecation Warning

Due to using DART-SASS instead of NODE-SASS, I am getting DEPRACATION warnings;
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0. on all the areas of Sierra that using / to work stuff out, any chance this could be addressed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.