Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added a custom Option type and extended the select and added a few new classes for typography#1060

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SilasMarvin merged 3 commits intomasterfromsilas-new-home
Oct 10, 2023

Conversation

SilasMarvin
Copy link
Contributor

No description provided.

.text-white {
color: #{$gray-100} !important;
}
.text-gradient-blue {
Copy link
Contributor

Choose a reason for hiding this comment

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

Using a mixin for this would prevent the repetition.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Let me update this. I haven't used mixins before

Copy link
Contributor

@levkklevkkOct 10, 2023
edited
Loading

Choose a reason for hiding this comment

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

classes are better than mixins, mixings generate a ton of repetitive css code, while classes inherit and cascade. That's why bootstrap has.btn and.btn-primary classes separately..btn styles a lot of the button while.btn-primary just changes the color, which is just one or two lines of css.

Copy link
Contributor

Choose a reason for hiding this comment

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

@extend is also an option that minimizes css code (same as having two classes) and reduces the number of classes an element needs to take. If we do go with two classes here we should have the _typographic class .text-gradient then a utility class for all the gradients so they can be applies as text color, background color, border color ect.

levkk reacted with thumbs up emoji
@SilasMarvinSilasMarvin merged commitff02581 intomasterOct 10, 2023
@SilasMarvinSilasMarvin deleted the silas-new-home branchOctober 10, 2023 18:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@levkklevkklevkk left review comments

@chillenbergerchillenbergerchillenberger approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@SilasMarvin@levkk@chillenberger

[8]ページ先頭

©2009-2025 Movatter.jp