Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename .text-xs-* to .text-* #21217

Merged
merged 1 commit into from Nov 27, 2016
Merged

Rename .text-xs-* to .text-* #21217

merged 1 commit into from Nov 27, 2016

Conversation

Starsam80
Copy link
Contributor

I've noticed a trend that we're removing xs from class names, so I thought that we should do this for the text utilities too. All I did was grep all the files for lines containing text-xs- and replaced that with just text-, and use the SCSS logic from scss/utilities/_spacing.scss (at line 20) to get rid of the -xs.

.text-#{$breakpoint}-center { text-align: center !important; }
} @else {
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening curly brace { should be preceded by one space

.text-#{$breakpoint}-right { text-align: right !important; }
.text-#{$breakpoint}-center { text-align: center !important; }
} @else {
.text-left { text-align: left !important; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening curly brace { should be preceded by one space


@if $min {
.text-#{$breakpoint}-left { text-align: left !important; }
.text-#{$breakpoint}-right { text-align: right !important; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening curly brace { should be preceded by one space

$min: breakpoint-min($breakpoint, $grid-breakpoints);

@if $min {
.text-#{$breakpoint}-left { text-align: left !important; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opening curly brace { should be preceded by one space

@mdo mdo added this to the v4.0.0-alpha.6 milestone Nov 27, 2016
@mdo mdo merged commit b1e8d60 into twbs:v4-dev Nov 27, 2016
@mdo mdo mentioned this pull request Nov 27, 2016
@Starsam80 Starsam80 deleted the remove-xs-from-text-utils branch November 27, 2016 04:46
asterion pushed a commit to asterion/rails_layout that referenced this pull request Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants