mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-04 06:06:24 +00:00
Using global CSS and shadow DOM CSSs as well
This commit is contained in:
47
src/assets/scss/shared/_buttons.scss
Normal file
47
src/assets/scss/shared/_buttons.scss
Normal file
@ -0,0 +1,47 @@
|
||||
.tao-btn-primary {
|
||||
color: $tao-blue-500;
|
||||
font-size: $font-size-base;
|
||||
padding: 6px 19px;
|
||||
border-radius: 100px !important;
|
||||
background-color: transparent;
|
||||
border: 1px solid $tao-blue-500;
|
||||
outline: none !important;
|
||||
transition: all 0.18s ease-out 0.18s;
|
||||
cursor: pointer;
|
||||
|
||||
&.large {
|
||||
font-size: $font-size-h3;
|
||||
padding: 10px 32px;
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
visibility: hidden;
|
||||
|
||||
}
|
||||
|
||||
&.medium {
|
||||
font-size: $font-size-h4;
|
||||
padding: 8px 24px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
color: $tao-blue-500;
|
||||
box-shadow: inset 0 0 0 1px $tao-blue-500;
|
||||
}
|
||||
}
|
||||
|
||||
.tao-btn-rainbow {
|
||||
@extend .tao-btn-primary;
|
||||
background: linear-gradient(135deg, $tao-blue-500 0%, $tao-turqoise-500 70%,$tao-bright-green-300 100%);
|
||||
transition: all 2s ease;
|
||||
color: white;
|
||||
border: none;
|
||||
text-decoration: none !important;
|
||||
|
||||
&:hover {
|
||||
box-shadow: none;
|
||||
background: linear-gradient(135deg, $tao-blue-500 0%, $tao-turqoise-500 80%,$tao-bright-green-300 100%);
|
||||
color: white;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user