Button has more styles w/ added clases.
- .small: minimal height for content. - .pulse-button: animate a pulsating effect, used for getting user attention. - .warning: new orange warning button styling, used for update buttons.
This commit is contained in:
@@ -93,10 +93,6 @@ a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.small > button {
|
|
||||||
height: min-content;
|
|
||||||
}
|
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
&:not(.row) {
|
&:not(.row) {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -114,6 +110,8 @@ input,
|
|||||||
textarea {
|
textarea {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
border: 1px solid rgba(#333333, 0.3);
|
border: 1px solid rgba(#333333, 0.3);
|
||||||
@@ -127,7 +125,6 @@ textarea {
|
|||||||
color: #333;
|
color: #333;
|
||||||
padding: 10px 30px;
|
padding: 10px 30px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: 0;
|
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
line-height: 1.3rem;
|
line-height: 1.3rem;
|
||||||
@@ -145,6 +142,11 @@ textarea {
|
|||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.warning {
|
||||||
|
background-color: #f9826c;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
&.danger {
|
&.danger {
|
||||||
background-color: $red;
|
background-color: $red;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -160,9 +162,12 @@ textarea {
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.07),
|
||||||
0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
|
0 8px 16px rgba(0, 0, 0, 0.07), 0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
|
||||||
0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover:not(:disabled) {
|
&:hover:not(:disabled) {
|
||||||
@@ -172,7 +177,7 @@ textarea {
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:disabled{
|
&:disabled {
|
||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
@@ -182,6 +187,21 @@ textarea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pulse-button:not(:hover) {
|
||||||
|
animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
from {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
transform: scale(1.12);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: scale(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.cursor {
|
.cursor {
|
||||||
&-pointer {
|
&-pointer {
|
||||||
@@ -202,7 +222,8 @@ textarea {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: $matte-text-color;
|
color: $matte-text-color;
|
||||||
|
|
||||||
&:focus, &:hover {
|
&:focus,
|
||||||
|
&:hover {
|
||||||
border-color: $link-color;
|
border-color: $link-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user