1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Modify primary button & search styles

This commit is contained in:
maxieprotocol 2020-05-13 14:36:07 +02:00
parent ed7ae876ba
commit 4bc6f3599e
3 changed files with 60 additions and 37 deletions

View File

@ -1,33 +1,47 @@
.button { .button {
border: 2px solid var(--color-secondary); border: 0;
cursor: pointer; cursor: pointer;
outline: 0; outline: 0;
margin: 0; margin: 0;
display: inline-block; display: inline-block;
width: fit-content; width: fit-content;
padding: calc(var(--spacer) / 5) var(--spacer); padding: calc(var(--spacer) / 3) var(--spacer);
font-size: var(--font-size-base); font-size: var(--font-size-base);
font-family: var(--font-family-base); font-family: var(--font-family-base);
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
text-transform: uppercase;
border-radius: var(--border-radius); border-radius: var(--border-radius);
transition: 0.2s ease-out; transition: 0.2s ease-out;
color: var(--brand-grey-lighter); color: var(--brand-white);
background: var(--color-secondary); background: var(--brand-grey-light);
box-shadow: 0 9px 18px 0 rgba(0, 0, 0, 0.1);
user-select: none; user-select: none;
margin-left: calc(var(--spacer) / 4);
margin-right: calc(var(--spacer) / 4);
}
.button:first-child {
margin-left: 0;
}
.button:last-child {
margin-right: 0;
} }
.button:hover, .button:hover,
.button:focus { .button:focus {
text-decoration: none;
color: var(--brand-white); color: var(--brand-white);
transform: translate3d(0, -1px, 0); background: var(--brand-grey-light);
text-decoration: none;
transform: translate3d(0, -0.05rem, 0);
box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.1);
} }
.button:active { .button:active {
color: var(--brand-white); background: var(--brand-grey-light);
background: var(--brand-grey-dark);
border-color: var(--brand-grey-dark);
transition: none; transition: none;
transform: none;
box-shadow: 0 5px 18px 0 rgba(0, 0, 0, 0.1);
} }
.button:disabled { .button:disabled {
@ -36,32 +50,35 @@
opacity: 0.5; opacity: 0.5;
} }
.primary { .primary,
background: var(--color-primary);
border-color: var(--color-primary);
}
.primary:hover, .primary:hover,
.primary:focus { .primary:focus,
}
.primary:active { .primary:active {
background: var(--brand-gradient);
} }
.link { .link {
border: 0; border: 0;
outline: 0; outline: 0;
display: inline-block; display: inline-block;
width: fit-content;
background: 0; background: 0;
padding: 0; padding: 0;
color: var(--color-primary); color: var(--brand-pink);
font-size: var(--font-size-base);
font-weight: var(--font-weight-base);
font-family: inherit;
box-shadow: none; box-shadow: none;
cursor: pointer; cursor: pointer;
} }
.link:hover { .link:hover {
color: var(--color-primary); background: none;
color: var(--brand-pink);
box-shadow: none;
}
/* Size Modifiers */
.small {
font-size: var(--font-size-small);
padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
}
.text.small {
padding: 0;
} }

View File

@ -13,32 +13,36 @@
margin-top: -1px; margin-top: -1px;
width: 100%; width: 100%;
border-width: 1px; border-width: 1px;
background-color: var(--brand-pink);
border-color: var(--brand-pink);
color: var(--brand-grey-lighter);
text-transform: uppercase; text-transform: uppercase;
} color: var(--brand-grey-lighter);
background: var(--brand-gradient);
.inputGroup button:hover, box-shadow: none;
.inputGroup button:focus,
.inputGroup .input:focus + button {
color: var(--brand-white);
background-color: var(--brand-pink);
} }
.inputGroup button:hover, .inputGroup button:hover,
.inputGroup button:focus, .inputGroup button:focus,
.inputGroup .input:focus + button:hover, .inputGroup .input:focus + button:hover,
.inputGroup .input:focus + button:focus { .inputGroup .input:focus + button:focus {
background-color: var(--brand-pink); background: var(--brand-gradient);
border-color: var(--brand-pink);
transform: none; transform: none;
box-shadow: none;
}
.inputGroup .input:focus + button {
color: var(--brand-white);
}
/* .inputGroup button:hover,
.inputGroup button:focus,
.inputGroup .input:focus + button {
color: var(--brand-white);
background-color: var(--brand-pink);
} }
.inputGroup .input:focus + button { .inputGroup .input:focus + button {
border-color: var(--brand-pink); border-color: var(--brand-pink);
background-color: var(--brand-pink); background-color: var(--brand-pink);
} } */
@media screen and (min-width: 30rem) { @media screen and (min-width: 30rem) {
.inputGroup { .inputGroup {

View File

@ -11,6 +11,8 @@
--brand-violet: #e000cf; --brand-violet: #e000cf;
--brand-blue: #11597b; --brand-blue: #11597b;
--brand-gradient: linear-gradient(to right bottom, #7b1173, #ff4092);
--green: #5fb359; --green: #5fb359;
--red: #d80606; --red: #d80606;
--orange: #b35f36; --orange: #b35f36;
@ -53,7 +55,7 @@
--break-point--huge: 1400px; --break-point--huge: 1400px;
--spacer: 2rem; --spacer: 2rem;
--border-radius: 2px; --border-radius: 0.2rem;
--layout-max-width: 85rem; --layout-max-width: 85rem;