This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
#106 Remove unused one line helpers #111
Open
DaveOrDead
wants to merge
1
commit into
master
Choose a base branch
from
#106_one_line_helpers
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,255 +141,20 @@ | |
* | ||
* CONTENTS: | ||
* | ||
* 1. Clear fix | ||
* 2. Text | ||
* 3. Hide | ||
* 4. Spacing | ||
* 5. Alignment | ||
* 6. Intrinsic ratio | ||
* 7. Non-responsive image | ||
* 1. Text | ||
* 2. Hide | ||
* 3. Spacing | ||
* 4. Alignment | ||
* 5. Intrinsic ratio | ||
* 6. Non-responsive image | ||
*/ | ||
|
||
|
||
|
||
|
||
/* 1. Clear fix | ||
/* 1. Text | ||
========================================================================= */ | ||
|
||
/** | ||
* Makes an element expand to contain floated children. | ||
* | ||
* N.B. mixin is here: "Mixins and Functions -> Helpers". | ||
*/ | ||
|
||
.h-clear-fix { | ||
@include clear-fix(true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the mixin also. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you also be able to remove this mixin also (and its comments)? @mixin text-osx-font-smoothing($apply-important-keyword: false) {
$important-keyword: if($apply-important-keyword, ' !important', '');
-moz-osx-font-smoothing: grayscale#{$important-keyword};
-webkit-font-smoothing: antialiased#{$important-keyword};
} |
||
} | ||
|
||
|
||
|
||
|
||
/* 2. Text | ||
========================================================================= */ | ||
|
||
/** | ||
* Sizes. | ||
*/ | ||
|
||
|
||
/** | ||
* Base. | ||
*/ | ||
|
||
.h-text-size { | ||
font-size: rem($shell-g-font-size) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size',$shell-helper-define-text-size-breakpoints) { | ||
font-size: rem($shell-g-font-size) !important; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Decrease from base. | ||
*/ | ||
|
||
// Small | ||
.h-text-size-small { | ||
font-size: rem($shell-g-font-size-small) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-small-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-small', $shell-helper-define-text-size-small-breakpoints) { | ||
font-size: rem($shell-g-font-size-small) !important; | ||
} | ||
} | ||
|
||
// X-small | ||
.h-text-size-x-small { | ||
font-size: rem($shell-g-font-size-x-small) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-x-small-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-x-small', $shell-helper-define-text-size-x-small-breakpoints) { | ||
font-size: rem($shell-g-font-size-x-small) !important; | ||
} | ||
} | ||
|
||
// 2X-small | ||
.h-text-size-2x-small { | ||
font-size: rem($shell-g-font-size-2x-small) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-x-small-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-2x-small', $shell-helper-define-text-size-2x-small-breakpoints) { | ||
font-size: rem($shell-g-font-size-2x-small) !important; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Increase from base. | ||
*/ | ||
|
||
// Large | ||
.h-text-size-large { | ||
font-size: rem($shell-g-font-size-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-large', $shell-helper-define-text-size-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-large) !important; | ||
} | ||
} | ||
|
||
// X-Large | ||
.h-text-size-x-large { | ||
font-size: rem($shell-g-font-size-x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-x-large', $shell-helper-define-text-size-x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-x-large) !important; | ||
} | ||
} | ||
|
||
// 2X-Large | ||
.h-text-size-2x-large { | ||
font-size: rem($shell-g-font-size-2x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-2x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-2x-large', $shell-helper-define-text-size-2x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-2x-large) !important; | ||
} | ||
} | ||
|
||
// 3X-Large | ||
.h-text-size-3x-large { | ||
font-size: rem($shell-g-font-size-3x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-3x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-3x-large', $shell-helper-define-text-size-3x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-3x-large) !important; | ||
} | ||
} | ||
|
||
// 4X-Large | ||
.h-text-size-4x-large { | ||
font-size: rem($shell-g-font-size-4x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-4x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-4x-large', $shell-helper-define-text-size-4x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-4x-large) !important; | ||
} | ||
} | ||
|
||
// 5X-Large | ||
.h-text-size-5x-large { | ||
font-size: rem($shell-g-font-size-5x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-5x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-5x-large', $shell-helper-define-text-size-5x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-5x-large) !important; | ||
} | ||
} | ||
|
||
// 6X-Large | ||
.h-text-size-6x-large { | ||
font-size: rem($shell-g-font-size-6x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-6x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-6x-large', $shell-helper-define-text-size-6x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-6x-large) !important; | ||
} | ||
} | ||
|
||
// 7X-Large | ||
.h-text-size-7x-large { | ||
font-size: rem($shell-g-font-size-7x-large) !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-size-7x-large-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-size-7x-large', $shell-helper-define-text-size-7x-large-breakpoints) { | ||
font-size: rem($shell-g-font-size-7x-large) !important; | ||
} | ||
} | ||
|
||
|
||
/** | ||
* Alignments. | ||
*/ | ||
|
||
// Center | ||
.h-text-align-center { | ||
text-align: center !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-align-center-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-align-center', $shell-helper-define-text-align-center-breakpoints) { | ||
text-align: center !important; | ||
} | ||
} | ||
|
||
// Left | ||
.h-text-align-left { | ||
text-align: left !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-align-left-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-align-left', $shell-helper-define-text-align-left-breakpoints) { | ||
text-align: left !important; | ||
} | ||
} | ||
// Right | ||
.h-text-align-right { | ||
text-align: right !important; | ||
} | ||
|
||
// Apply at breakpoints | ||
@if $shell-helper-apply-text-align-right-at-breakpoints { | ||
/* stylelint-disable-next-line max-line-length */ | ||
@include apply-at-breakpoints('.h-text-align-right', $shell-helper-define-text-align-right-breakpoints) { | ||
text-align: right !important; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove all the related settings also. |
||
|
||
|
||
/** | ||
* Truncate some text using an ellipsis. This Helper will only work on block | ||
* container elements so the default is set to `display: block;`, to override | ||
|
@@ -458,7 +223,7 @@ | |
|
||
|
||
|
||
/* 3. Hide | ||
/* 2. Hide | ||
========================================================================= */ | ||
|
||
/** | ||
|
@@ -556,7 +321,7 @@ | |
|
||
|
||
|
||
/* 4. Spacing | ||
/* 3. Spacing | ||
========================================================================= */ | ||
|
||
/** | ||
|
@@ -734,7 +499,7 @@ | |
|
||
|
||
|
||
/* 5. Alignment | ||
/* 4. Alignment | ||
========================================================================= */ | ||
|
||
/** | ||
|
@@ -767,7 +532,7 @@ | |
|
||
|
||
|
||
/* 6. Intrinsic ratio | ||
/* 5. Intrinsic ratio | ||
========================================================================= */ | ||
|
||
/** | ||
|
@@ -833,7 +598,7 @@ | |
|
||
|
||
|
||
/* 7. Non-responsive image | ||
/* 6. Non-responsive image | ||
========================================================================= */ | ||
|
||
/** | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still references in the text above to the classes you've removed.