123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- @import "var";
- // Button.
- .btn {
- white-space: nowrap;
- }
- .btn-small {
- font-size: 0.9*@baseFontSize;
- padding: .4em .9em;
- }
- .btn-medium {
- font-size: @baseFontSize;
- padding: .4em .9em;
- }
- .btn-large {
- font-size: 1.2*@baseFontSize;
- padding: .4em .9em;
- }
- .btn-green {
- background-color: @btnGreenColor;
- border: 1px solid @btnGreenColor;
- &:hover {
- background-color: @btnHoverGreenColor;
- color: #FFF;
- }
- }
- .btn-blue {
- background-color: @btnBlueColor;
- border: 1px solid @btnBlueColor;
- &:hover {
- background-color: @btnHoverBlueColor;
- color: #FFF;
- }
- }
- .btn-red {
- color: #FFF;
- background-color: @btnRedColor;
- border: 1px solid @btnRedColor;
- &:hover {
- background-color: @btnHoverRedColor;
- color: #FFF;
- }
- }
- .btn-orange {
- background-color: @btnOrangeColor;
- border: 1px solid @btnOrangeColor;
- &:hover {
- background-color: @btnHoverOrangeColor;
- color: #FFF;
- }
- }
- .btn-black {
- background-color: @btnBlackColor;
- border: 1px solid @btnBlackColor;
- &:hover {
- background-color: @btnHoverBlackColor;
- color: #FFF;
- }
- }
- .btn-gray {
- background-color: @btnGrayColor;
- color: @baseFontColor;
- border: 1px solid @btnGrayBorderColor;
- &:hover {
- background-color: @btnGrayHoverColor;
- color: @baseFontColor;
- }
- }
- .btn-white {
- background-color: @btnWhiteColor;
- color: @baseFontColor;
- border: 1px solid @btnWhiteBorderColor;
- &:hover {
- background-color: @btnWhiteHoverColor;
- color: @baseFontColor;
- }
- &.active {
- background-color: @btnWhiteHoverColor;
- color: @baseFontColor;
- }
- }
- // status buttons
- .btn-active {
- box-shadow: 0 0 0 1px rgba(0, 0, 0, .1) inset, 0 0 4px rgba(0, 0, 0, .15) inset
- }
- .btn-header {
- margin-top: -1px;
- color: white;
- padding: 0 10px;
- }
- .btn-link {
- overflow: visible;
- color: white;
- padding: .6em 1.2em;
- }
- .btn-radius {
- border-radius: .25em;
- }
- .btn-left-radius {
- border-top-left-radius: .25em;
- border-bottom-left-radius: .25em;
- }
- .btn-right-radius {
- border-top-right-radius: .25em;
- border-bottom-right-radius: .25em;
- }
- .btn-block {
- display: block;
- width: 100%;
- box-sizing: content-box;
- text-align: center;
- }
- .btn-comb {
- margin-left: -1px;
- }
- .btn-disabled {
- opacity: .6;
- cursor: not-allowed;
- box-shadow: none;
- background-image: none !important;
- border: none;
- &:hover {
- background-image: none !important;
- color: @btnHoverFontColor;
- }
- }
- .btn-group {
- display: inline-block;
- > .btn {
- position: relative;
- float: left;
- margin-right: -1px;
- &:first-child{
- border-bottom-left-radius: .25em;
- border-top-left-radius: .25em;
- }
- &:last-child{
- border-bottom-right-radius: .25em;
- border-top-right-radius: .25em;
- }
- }
- }
- // input form elements
- .ipt {
- &:focus {
- border-color: @iptFocusBorderColor;
- }
- }
- .ipt-radius {
- border-radius: .25em;
- }
- .ipt-small {
- font-size: .8*@baseFontSize;
- }
- .ipt-large {
- font-size: 1.2*@baseFontSize;
- }
- .ipt-textarea {
- height: auto !important;
- width: auto;
- }
- .ipt-disabled,
- input[disabled] {
- background-color: @iptDisabledColor !important;
- &:focus {
- background-color: @iptDisabledColor !important;
- }
- color: #888;
- cursor: not-allowed;
- }
- .ipt-readonly,
- input[readonly] {
- &:focus {
- background-color: @iptDisabledColor !important;
- }
- }
- .ipt-error {
- border-color: @iptErrorBorderColor !important;
- background-color: @iptErrorFocusColor !important;
- }
- .form {
- label {
- margin-right: 1em;
- }
- .help {
- color: @formHelpFontColor;
- padding-top: .6em;
- display: inline-block;
- }
- }
- .form-stack {
- label {
- display: block;
- }
- .field {
- margin-bottom: 1em;
- }
- }
- .form-align {
- label,
- .form-label {
- display: inline-block;
- width: 120px;
- text-align: right;
- margin-right: 1em;
- }
- .field {
- margin-bottom: 1em;
- }
- }
- label {
- &.text-left {
- text-align: left;
- }
- &.req {
- &:after {
- content: "*";
- color: @labelRedColor;
- }
- }
- }
|