-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Yui button inspired style #10061
base: master
Are you sure you want to change the base?
Yui button inspired style #10061
Changes from all commits
18d825a
72a6662
f95810f
2c5f287
186d079
d823c78
6188712
c41c2bb
b41d99f
80665d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,36 @@ | |
} | ||
} | ||
|
||
.jenkins-button--outline { | ||
color: var(--text-color) !important; | ||
border: 2px solid var(--text-color); | ||
font-weight: bold; | ||
font-size: var(--font-size-xs); | ||
|
||
&::before { | ||
background: transparent !important; | ||
} | ||
|
||
&:not(:disabled) { | ||
&:hover { | ||
border: 2px solid var(--accent-color) !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. This wouldn't work if paired with colour modifiers. We've been using 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. 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. 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. 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. Heya, I'm travelling today but I'll take a look as soon as I can :) 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. good traveling and MCAAHNY |
||
color: var(--accent-color) !important; | ||
} | ||
|
||
&:active, | ||
&:focus-visible { | ||
&::before { | ||
opacity: 0.8; | ||
} | ||
|
||
&::after { | ||
box-shadow: 0 0 0 0.33rem var(--accent-color); | ||
opacity: 0.2; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.jenkins-button--tertiary { | ||
&::before { | ||
background: transparent; | ||
|
@@ -117,6 +147,36 @@ | |
} | ||
} | ||
|
||
.jenkins-button--outline[class*="color"] { | ||
color: var(--color) !important; | ||
border: 2px solid var(--color); | ||
|
||
&::before { | ||
background: var(--color) !important; | ||
} | ||
|
||
&:not(:disabled) { | ||
&:hover { | ||
border: 2px solid var(--background) !important; | ||
color: var(--background) !important; | ||
background: var(--color) !important; | ||
opacity: 0.8; | ||
} | ||
|
||
&:active, | ||
&:focus-visible { | ||
&::before { | ||
opacity: 0.8; | ||
} | ||
|
||
&::after { | ||
box-shadow: 0 0 0 0.33rem var(--background); | ||
opacity: 0.2; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.jenkins-button--primary[class*="color"] { | ||
background: transparent; | ||
color: var(--background) !important; | ||
|
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.
These props could be inherited from the base
jenkins-button
class.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.
Well but the original yui outline button had been bold, but if you want we can change it but IMHO it makes more sense bold.
vs