UNPKG

@d4sd/components

Version:

D4SD Component Library, extended from Ant-Design

173 lines (168 loc) 4.17 kB
@import "../../styles/vars.less"; .d4sdbutton { // defaults cursor: pointer; margin-bottom: 8px; margin-right: 12px; border: 2px solid @d4sd-color; vertical-align: middle; color: @white; border-width: 2px; border-radius: 10px; height: 50px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: bold; transition: all 0.2s; } .d4sdbutton.d4sdbutton-outline { margin-bottom: 8px; margin-right: 12px; border-color: @d4sd-color; color: @white; border-width: 2px; border-radius: 10px; height: 50px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: bold; } .d4sdbutton:hover { box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); background-color: @white; border-color: @d4sd-color; color: @d4sd-color; } .d4sdbutton:active { box-shadow: none; border-color: @d4sd-color; color: @white; } .d4sdbutton.d4sdbutton-primary { background-color: @d4sd-color; color: @white; } .d4sdbutton.d4sdbutton-primary:hover { background-color: @white; color: @d4sd-color; } .d4sdbutton.d4sdbutton-secondary { background-color: @d4sd-secondary-color; border-color: @d4sd-secondary-color; color: @white; } .d4sdbutton.d4sdbutton-secondary:hover { background-color: @white; color: @d4sd-secondary-color; border-color: @d4sd-secondary-color; } .d4sdbutton.d4sdbutton-primary.d4sdbutton-outline { color: @d4sd-color; border-color: @d4sd-color; background-color: @white; } .d4sdbutton.d4sdbutton-secondary.d4sdbutton-outline { color: @d4sd-secondary-color; border-color: @d4sd-secondary-color; background-color: @white; } .d4sdbutton.d4sdbutton-primary:active { } .d4sdbutton.d4sdbutton-secondary:active { } .d4sdbutton-primary.d4sdbutton-outline:hover { background-color: @d4sd-color; color: @white; } .d4sdbutton-primary.d4sdbutton-outline:active { } .d4sdbutton-secondary.d4sdbutton-outline:hover { background-color: @d4sd-secondary-color; color: @white; } .d4sdbutton-secondary.d4sdbutton-outline:active { } .d4sdbutton-google { background-color: @google-color; border-color: @google-color; color: @white; border-width: 2px; border-radius: 10px; } .d4sdbutton-google:hover { border-color: @google-color; background-color: @google-color; color: @white; } .d4sdbutton-google:active { background-color: @google-color-active; border-color: @google-color; color: @white; } .d4sdbutton-facebook { background-color: @facebook-color; border-color: @facebook-color; color: @white; border-width: 2px; border-radius: 10px; } .d4sdbutton-facebook:hover { border-color: @facebook-color; background-color: @facebook-color; border-color: @facebook-color; color: @white; } .d4sdbutton-facebook:active { background-color: @facebook-color-active; border-color: @facebook-color; color: @white; } .d4sdbutton-small { width: 165px; font-size: 14px; font-weight: bold; } .d4sdbutton-medium { padding-left: 30px; padding-right: 30px; font-weight: bold; font-size: 14px; } .d4sdbutton-large { width: 335px; } .ant-btn[disabled] { border-color:@b3 !important; color:@b3 !important; background-color: white !important; } .ant-btn[disabled]:hover { border-color:@b3 !important; color:@b3 !important; box-shadow: none; } .ant-btn[disabled]:active { border-color:@b3 !important; color:@b3 !important; } .d4sdbutton-disabled { background-color: @b3 !important; color: @white !important; border-color: @b3 !important; cursor: not-allowed; } .d4sdbutton-disabled:hover { background-color: @b3 !important; color: @white !important; border-color: @b3 !important;; } .d4sdbutton-disabled.d4sdbutton-outline { background-color: @white !important; color: @b3 !important; border-color: @b3 !important; } .d4sdbutton-disabled.d4sdbutton-outline:hover { background-color: @white !important; color: @b3 !important; border-color: @b3 !important; }