Browse Source

adding

master
Björn 5 years ago
parent
commit
7f00d7aaad
8 changed files with 148 additions and 142 deletions
  1. +0
    -20
      src/scss/components/_button.scss
  2. +5
    -5
      src/scss/helpers/_float.scss
  3. +34
    -0
      src/scss/helpers/_modifizer.scss
  4. +16
    -16
      src/scss/helpers/_spacing.scss
  5. +0
    -76
      src/scss/helpers/_text.scss
  6. +89
    -0
      src/scss/helpers/_typography.scss
  7. +0
    -21
      src/scss/helpers/_visibility.scss
  8. +4
    -4
      src/scss/helpers/_width.scss

+ 0
- 20
src/scss/components/_button.scss View File

@ -8,10 +8,6 @@
$crispy__button__padding: toEm(10px 25px) !default; $crispy__button__padding: toEm(10px 25px) !default;
$crispy__button__up__margin: toEm(20px) !default;
$crispy__button__up__padding: toEm(8px 13px) !default;
$crispy__button__up__z-index: zIndex('modal') !default;
@mixin crispy__button() { @mixin crispy__button() {
.button { .button {
position: relative; position: relative;
@ -26,22 +22,6 @@ $crispy__button__up__z-index: zIndex('modal') !default;
width: 100%; width: 100%;
} }
// button for scroll up and down
&--up, &--down {
position:fixed;
z-index: $crispy__button__up__z-index;
margin: $crispy__button__up__margin;
padding: $crispy__button__up__padding;
}
&--down {
top: 0;
}
&--up {
bottom: 0;
}
&:hover { &:hover {
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;


+ 5
- 5
src/scss/helpers/_float.scss View File

@ -10,24 +10,24 @@
*/ */
@mixin crispy__float() { @mixin crispy__float() {
.float-left {
.is-float-left {
float: left; float: left;
} }
.float-right {
.is-float-right {
float: right; float: right;
} }
.float-none {
.has-float-none {
float: none; float: none;
} }
.center {
.is-centered {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.clearfix {
.is-clearfixed {
@include crispy__clearfix(); @include crispy__clearfix();
} }
} }

+ 34
- 0
src/scss/helpers/_modifizer.scss View File

@ -0,0 +1,34 @@
/**
* helper: visibility
*
*
* @author Björn Hase
*
*/
@mixin crispy__modifiers() {
.is-absolute {
position: absolute !important;
}
.is-fixed {
position: fixed !important;
}
.is-relative {
position: relative !important;
}
.is-hidden {
display: none !important;
}
.is-visible {
display: block !important;
&--inline {
display: inline;
}
}
}

+ 16
- 16
src/scss/helpers/_spacing.scss View File

@ -8,36 +8,36 @@
@mixin crispy__spacing() { @mixin crispy__spacing() {
@for $i from 0 through $crispy__spacing__steps { @for $i from 0 through $crispy__spacing__steps {
.margin-top-#{($i + 1)}x {
margin-top: ($crispy__spacing * $i);
.has-margin-top-#{($i + 1)}x {
margin-top: ($crispy__spacing * $i) !important;
} }
.margin-left-#{($i + 1)}x {
margin-left: ($crispy__spacing * $i);
.has-margin-left-#{($i + 1)}x {
margin-left: ($crispy__spacing * $i) !important;
} }
.margin-bottom-#{($i + 1)}x {
margin-bottom: ($crispy__spacing * $i);
.has-margin-bottom-#{($i + 1)}x {
margin-bottom: ($crispy__spacing * $i) !important;
} }
.margin-right-#{($i + 1)}x {
margin-right: ($crispy__spacing * ($i));
.has-margin-right-#{($i + 1)}x {
margin-right: ($crispy__spacing * ($i)) !important;
} }
.padding-top-#{($i + 1)}x {
padding-top: ($crispy__spacing * $i);
.has-padding-top-#{($i + 1)}x {
padding-top: ($crispy__spacing * $i) !important;
} }
.padding-left-#{($i + 1)}x {
padding-left: ($crispy__spacing * $i);
.has-padding-left-#{($i + 1)}x {
padding-left: ($crispy__spacing * $i) !important;
} }
.padding-bottom-#{($i + 1)}x {
padding-bottom: ($crispy__spacing * $i);
.has-padding-bottom-#{($i + 1)}x {
padding-bottom: ($crispy__spacing * $i) !important;
} }
.padding-right-#{($i + 1)}x {
padding-right: ($crispy__spacing * $i);
.has-padding-right-#{($i + 1)}x {
padding-right: ($crispy__spacing * $i) !important;
} }
} }
} }

+ 0
- 76
src/scss/helpers/_text.scss View File

@ -1,76 +0,0 @@
/**
* helper: text
*
* align, font-sizes, color, background-color
*
*
* @author Björn Hase
*
*/
$crispy__text-colors: $crispy__colors !default;
$crispy__text-font-sizes: $crispy__font-sizes !default;
@mixin crispy__text() {
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-italic {
font-style: italic;
}
.text-normal {
font-style: normal;
}
.text-bold {
font-weight: bold;
}
.text-uppercase {
text-transform: uppercase;
}
.text-lowercase {
text-transform: lowercase;
}
.text-small {
font-size: 80%;
}
.text-crossed {
text-decoration: line-through;
}
@each $name, $font-size in $crispy__font-sizes {
.text-#{$name} {
@include crispy__font-size($font-size);
}
}
@each $name, $color in $crispy__text-colors {
.text-#{$name} {
color: $color;
}
}
@each $name, $color in $crispy__text-colors {
.background-#{$name} {
background-color: $color;
}
}
}

+ 89
- 0
src/scss/helpers/_typography.scss View File

@ -0,0 +1,89 @@
/**
* helper: typography
*
* align, font-sizes, color, background-color
*
*
* @author Björn Hase
*
*/
$crispy__typography-colors: $crispy__colors !default;
$crispy__typography-font-sizes: $crispy__font-sizes !default;
@mixin crispy__typography() {
.has-text-left {
text-align: left !important;
}
.has-text-right {
text-align: right !important;
}
.has-text-center {
text-align: center !important;
}
.has-text-justify {
text-align: justify !important;
}
.has-text-italic {
font-style: italic !important;
}
.has-text-uppercase {
text-transform: uppercase !important;
}
.has-text-lowercase {
text-transform: lowercase !important;
}
.has-text-crossed {
text-decoration: line-through !important;
}
.is-capitalized {
text-transform: capitalize !important;
}
// text weight
.is-text-weight-light {
font-weight: light !important;
}
.is-text-weight-normal {
font-weight: normal !important;
}
.is-text-weight-bold {
font-weight: bold !important;
}
.has-text-weight-medium {
}
.has-text-weight-semibold {
}
@each $name, $font-size in $crispy__typography-font-sizes {
.has-font-size-#{$name} {
font-size: $font-size !important;
}
}
@each $name, $color in $crispy__typography-colors {
.has-text-#{$name} {
color: $color !important;
}
}
@each $name, $color in $crispy__typography-colors {
.has-background-#{$name} {
background-color: $color !important;
}
}
}

+ 0
- 21
src/scss/helpers/_visibility.scss View File

@ -1,21 +0,0 @@
/**
* helper: visibility
*
*
* @author Björn Hase
*
*/
@mixin crispy__visibility() {
.hide {
display: none;
}
.show {
display: block;
&--inline {
display: inline;
}
}
}

+ 4
- 4
src/scss/helpers/_width.scss View File

@ -7,19 +7,19 @@
*/ */
@mixin crispy__width() { @mixin crispy__width() {
.width-25 {
.has-width-25 {
width: 25%; width: 25%;
} }
.width-50 {
.has-width-50 {
width: 50%; width: 50%;
} }
.width-75 {
.has-width-75 {
width: 75%; width: 75%;
} }
.width-100 {
.has-width-100 {
width: 100%; width: 100%;
} }
} }

Loading…
Cancel
Save