mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Customize buttons; make button borders configurable.
This commit is contained in:
parent
e68b367f3f
commit
66654e4a14
4 changed files with 98 additions and 53 deletions
|
@ -15,8 +15,7 @@ block content
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
.content.content-alt.project-list-page(ng-controller="ProjectPageController")
|
.container-fluid.content.content-alt.project-list-page(ng-controller="ProjectPageController")
|
||||||
.container
|
|
||||||
.announcements(
|
.announcements(
|
||||||
ng-controller="AnnouncementsController"
|
ng-controller="AnnouncementsController"
|
||||||
ng-class="{ 'announcements-open': ui.isOpen }"
|
ng-class="{ 'announcements-open': ui.isOpen }"
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
||||||
border: 1px solid transparent;
|
border: @btn-border-width solid transparent;
|
||||||
border-bottom: 2px solid transparent;
|
border-bottom: @btn-border-bottom-width solid transparent;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
||||||
.user-select(none);
|
.user-select(none);
|
||||||
|
|
|
@ -796,6 +796,9 @@
|
||||||
// Custom
|
// Custom
|
||||||
@content-alt-bg-color: lighten(@gray-lightest, 2.5%);
|
@content-alt-bg-color: lighten(@gray-lightest, 2.5%);
|
||||||
|
|
||||||
|
@btn-border-width: 1px;
|
||||||
|
@btn-border-bottom-width: 2px;
|
||||||
|
|
||||||
@left-menu-width: 260px;
|
@left-menu-width: 260px;
|
||||||
@left-menu-animation-duration: 0.35s;
|
@left-menu-animation-duration: 0.35s;
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,49 @@
|
||||||
|
|
||||||
@card-border-radius-base: 3px;
|
@card-border-radius-base: 3px;
|
||||||
|
|
||||||
|
// Button colors and sizing
|
||||||
|
@btn-border-width : 0;
|
||||||
|
@btn-border-bottom-width : 0;
|
||||||
|
|
||||||
|
@btn-default-color : #FFF;
|
||||||
|
@btn-default-bg : @ol-blue-gray-4;
|
||||||
|
@btn-default-border : transparent;
|
||||||
|
|
||||||
|
@btn-primary-color : #FFF;
|
||||||
|
@btn-primary-bg : @ol-green;
|
||||||
|
@btn-primary-border : transparent;
|
||||||
|
|
||||||
|
@btn-success-color : #FFF;
|
||||||
|
@btn-success-bg : @ol-green;
|
||||||
|
@btn-success-border : transparent;
|
||||||
|
|
||||||
|
@btn-info-color : #FFF;
|
||||||
|
@btn-info-bg : @ol-blue;
|
||||||
|
@btn-info-border : transparent;
|
||||||
|
|
||||||
|
// TODO Warning color-orange?
|
||||||
|
@btn-warning-color : #FFF;
|
||||||
|
@btn-warning-bg : @ol-red;
|
||||||
|
@btn-warning-border : transparent;
|
||||||
|
|
||||||
|
@btn-danger-color : #FFF;
|
||||||
|
@btn-danger-bg : @ol-red;
|
||||||
|
@btn-danger-border : transparent;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
||||||
|
}
|
||||||
|
// Warning appears as orange
|
||||||
|
.btn-warning {
|
||||||
|
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
||||||
|
}
|
||||||
|
// Danger and error appear as red
|
||||||
|
.btn-danger {
|
||||||
|
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
||||||
|
}
|
||||||
|
|
||||||
//== Colors
|
//== Colors
|
||||||
//
|
//
|
||||||
//## Gray and brand colors for use across Bootstrap.
|
//## Gray and brand colors for use across Bootstrap.
|
||||||
|
|
Loading…
Reference in a new issue