2015-03-03 18:00:52 +08:00
|
|
|
.btn {
|
|
|
|
border: 0;
|
|
|
|
.box-shadow(none);
|
|
|
|
line-height: 20px;
|
|
|
|
|
|
|
|
& .fa {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-group .btn + .btn {
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
|
|
|
.btn-icon {
|
|
|
|
padding-left: 9px;
|
|
|
|
padding-right: 9px;
|
|
|
|
}
|
|
|
|
.btn-link {
|
|
|
|
color: @fl-body-muted-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-primary {
|
|
|
|
font-weight: bold;
|
2015-05-02 07:02:45 +08:00
|
|
|
& .icon {
|
2015-03-03 18:00:52 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-user {
|
|
|
|
& .avatar {
|
|
|
|
margin: -2px 5px -2px -5px;
|
|
|
|
.avatar-size(24px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.btn-more {
|
|
|
|
padding: 1px 3px;
|
|
|
|
border-radius: 2px;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2015-03-28 09:03:18 +08:00
|
|
|
.btn-danger {
|
|
|
|
.button-variant(#d66, #fdd, #fdd);
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
|
2015-03-28 09:03:18 +08:00
|
|
|
// Add to Bootstrap's mixin to make some general changes
|
2015-03-03 18:00:52 +08:00
|
|
|
.button-variant(@color; @background; @border) {
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&.focus,
|
|
|
|
&:active,
|
|
|
|
&.active,
|
|
|
|
.open > .dropdown-toggle& {
|
|
|
|
background-color: darken(@background, 5%);
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
.box-shadow(none);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Little round icon buttons
|
|
|
|
.btn-icon.btn-sm {
|
2015-06-23 09:06:36 +08:00
|
|
|
border-radius: 16px;
|
|
|
|
height: 32px;
|
|
|
|
width: 32px;
|
2015-03-03 18:00:52 +08:00
|
|
|
text-align: center;
|
2015-06-23 09:06:36 +08:00
|
|
|
padding: 7px 0;
|
2015-03-03 18:00:52 +08:00
|
|
|
|
|
|
|
& .label, & .icon-caret {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
& .fa-ellipsis-v {
|
|
|
|
font-size: 17px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2015-06-24 16:26:52 +08:00
|
|
|
|
|
|
|
@media @phone {
|
|
|
|
width: 38px;
|
|
|
|
height: 38px;
|
|
|
|
border-radius: 38px / 2;
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
& .fa-ellipsis-v {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
}
|
2015-03-03 18:00:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Buttons that blend into the background
|
|
|
|
.btn-naked {
|
|
|
|
background: transparent;
|
|
|
|
&:hover {
|
|
|
|
background: @fl-body-control-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-rounded {
|
|
|
|
border-radius: 18px;
|
|
|
|
}
|
2015-03-04 07:47:36 +08:00
|
|
|
|
|
|
|
.back-button {
|
|
|
|
& .back {
|
|
|
|
z-index: 3 !important; // z-index of an active .btn-group .btn is 2
|
|
|
|
border-radius: @border-radius-base !important;
|
|
|
|
.transition(border-radius 0.2s);
|
|
|
|
}
|
|
|
|
& .pin {
|
|
|
|
opacity: 0;
|
|
|
|
margin-left: -36px !important;
|
|
|
|
.transition(~"opacity 0.2s, margin-left 0.2s");
|
|
|
|
|
2015-04-25 21:01:30 +08:00
|
|
|
& .fa {
|
2015-03-04 07:47:36 +08:00
|
|
|
.rotate(45deg);
|
|
|
|
}
|
|
|
|
}
|
2015-03-04 10:00:18 +08:00
|
|
|
@media @desktop-hd {
|
2015-04-25 21:01:30 +08:00
|
|
|
.has-pane.pane-pinned &, .has-pane.pane-showing & {
|
2015-03-04 10:00:18 +08:00
|
|
|
& .back {
|
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base !important;
|
|
|
|
}
|
|
|
|
& .pin {
|
|
|
|
opacity: 1;
|
|
|
|
margin-left: 1px !important;
|
|
|
|
}
|
2015-03-04 07:47:36 +08:00
|
|
|
}
|
2015-04-25 21:01:30 +08:00
|
|
|
.has-pane.pane-pinned & .pin .fa {
|
|
|
|
.rotate(0deg);
|
|
|
|
}
|
2015-03-04 07:47:36 +08:00
|
|
|
}
|
|
|
|
}
|