192 lines
3.4 KiB
SCSS
192 lines
3.4 KiB
SCSS
//
|
|
// Buttons
|
|
// --------------------------------------------------
|
|
|
|
input[type="button"],
|
|
input[type="submit"],
|
|
button {
|
|
display: inline-block;
|
|
margin-bottom: 0;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
font-weight: $btn-font-weight;
|
|
white-space: nowrap;
|
|
border: 1px solid;
|
|
@include button-size($input-padding-vertical, $input-padding-horizontal, $font-size-base, $line-height-base, $border-radius-base);
|
|
@include user-select(none);
|
|
@include transition(background-color ease-in-out .07s, border-color ease-in-out .07s, box-shadow ease-in-out .07s);
|
|
@include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
|
|
|
|
&:hover,
|
|
&:focus {
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:active {
|
|
outline: 0;
|
|
}
|
|
|
|
&.disabled,
|
|
&[disabled],
|
|
fieldset[disabled] & {
|
|
pointer-events: none; // Future-proof disabling of clicks
|
|
box-shadow: none;
|
|
@include opacity(.65);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Issue form buttons layout
|
|
*/
|
|
|
|
#issue-form,
|
|
#history .journal form {
|
|
input[type="submit"] {
|
|
margin-right: 5px;
|
|
|
|
& + input {
|
|
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
|
}
|
|
|
|
& + a {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
& + a + a {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Project's repository form buttons layout
|
|
*/
|
|
|
|
#repository-form {
|
|
input[type="submit"] {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* New _somethind_ form buttons layout
|
|
*/
|
|
|
|
#add_attachment_form,
|
|
#new_time_entry,
|
|
#new_project,
|
|
#new_document,
|
|
#new_group,
|
|
#new_user {
|
|
input[type="submit"] {
|
|
margin-right: 5px;
|
|
|
|
& + input {
|
|
@include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Wiki form buttons layout
|
|
*/
|
|
|
|
#wiki_form {
|
|
input[type="submit"] {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Forum and news message form buttons layout
|
|
*/
|
|
|
|
#message-form,
|
|
#news-form {
|
|
input[type="submit"] {
|
|
margin-right: 5px;
|
|
|
|
& + a {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
& + a + a {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
#message_sticky,
|
|
#message_locked {
|
|
position: relative;
|
|
top: 1px;
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Query builder buttons
|
|
*/
|
|
|
|
.query-columns {
|
|
.buttons {
|
|
vertical-align: middle;
|
|
|
|
input[type="button"] {
|
|
width: 32px;
|
|
margin-bottom: 4px;
|
|
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* JS Toolbar buttons
|
|
*/
|
|
|
|
.jstElements {
|
|
.box & {
|
|
padding: 0 0 5px;
|
|
}
|
|
|
|
button {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Button for toggling multiselect (in filters)
|
|
*/
|
|
|
|
a[data-expands],
|
|
.toggle-multiselect {
|
|
cursor: pointer;
|
|
position: relative;
|
|
top: 3px;
|
|
padding: 1px 8px 2px 7px;
|
|
vertical-align: top;
|
|
border: 1px solid;
|
|
background-image: url(../../../images/bullet_toggle_plus.png);
|
|
background-position: 2px 2px;
|
|
background-repeat: no-repeat;
|
|
border-radius: $border-radius-base;
|
|
@include user-select(none);
|
|
@include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
|
|
}
|
|
|
|
a[data-expands] {
|
|
display: inline-block;
|
|
padding: 10px 10px 9px 9px;
|
|
margin-right: 10px;
|
|
|
|
img {
|
|
display: none;
|
|
}
|
|
} |