Vulcan/packages/vulcan-ui-bootstrap/lib/stylesheets/style.scss

258 lines
No EOL
4.5 KiB
SCSS

$light-grey: #ddd;
$medium-grey: #bbb;
$vmargin: 15px;
$light-border: $light-grey;
select.form-control{
height: 38px;
}
/* Example Styles for React Tags*/
div.ReactTags__tags {
position: relative;
}
/* Styles for the input */
div.ReactTags__tagInput {
width: 200px;
border-radius: 2px;
display: inline-block;
}
div.ReactTags__tagInput input,
div.ReactTags__tagInput input:focus {
// height: 31px;
// margin: 0;
// font-size: 12px;
// width: 100%;
// border: 1px solid #eee;
display: block;
width: 100%;
padding: .375rem .75rem;
font-size: 1rem;
line-height: 1.5;
color: #55595c;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: .25rem;
}
/* Styles for selected tags */
div.ReactTags__selected {
float: left;
display: flex;
align-items: center;
margin-left: -5px;
}
div.ReactTags__selected span.ReactTags__tag {
border: 1px solid #ddd;
background: #eee;
font-size: 12px;
display: inline-block;
padding: 5px;
margin: 0 5px;
// cursor: move;
border-radius: 2px;
}
div.ReactTags__selected a.ReactTags__remove {
color: #aaa;
margin-left: 5px;
cursor: pointer;
}
/* Styles for suggestions */
div.ReactTags__suggestions {
position: absolute;
z-index: 10;
}
div.ReactTags__suggestions ul {
list-style-type: none;
box-shadow: .05em .01em .5em rgba(0,0,0,.2);
background: white;
width: 200px;
padding: 0;
}
div.ReactTags__suggestions li {
border-bottom: 1px solid #ddd;
padding: 5px 10px;
margin: 0;
}
div.ReactTags__suggestions li mark {
text-decoration: underline;
background: none;
font-weight: 600;
}
div.ReactTags__suggestions ul li.active {
background: #b7cfe0;
cursor: pointer;
}
div.ReactTags__suggestions mark{
padding: 0;
}
.form-section{
.form-section-heading{
border-bottom: 1px solid $light-border;
padding-bottom: $vmargin;
margin-bottom: $vmargin;
font-size: 1.2rem;
font-weight: bold;
}
}
.control-label{
strong{
font-weight: normal;
}
}
.search-form{
position: relative;
.search-form-reset{
position: absolute;
top: 6px;
right: 5px;
color: $light-grey;
}
}
.form-input{
position: relative;
margin-bottom: 1rem;
}
.form-group{
margin-bottom: 0;
}
.form-control-limit{
position: absolute;
background: white;
padding: 5px;
top: 5px;
right: 5px;
color: $light-grey;
font-size: 80%;
&.danger{
color: #EF1642;
}
}
.form-section-heading{
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
padding-bottom: 10px;
margin-bottom: 10px;
border-bottom: 1px solid $light-grey;
}
.form-section-heading-title{
margin: 0;
font-size: 1.25rem;
}
.form-section-collapsed{
display: none;
}
.form-errors{
.alert{
ul{
padding: 0 0 0 20px;
margin: 0;
}
}
}
.input-error{
color: #EF1642;
input, textarea, select{
border-color: #EF1642;
}
}
.form-input-errors{
color: #EF1642;
text-align: right;
list-style-type: none;
padding: 0;
margin: 5px 0 0 0;
font-size: 0.8rem;
li{
margin: 0;
}
}
.form-component-select, .form-component-datetime, .form-component-time, .form-component-date {
.col-sm-9{
padding-right: 40px;
}
}
.form-component-clear{
position: absolute;
top: 11px;
right: 0px;
background: $light-grey;
color: #fff;
border-radius: 100%;
height: 16px;
width: 16px;
border: 0;
display: flex;
justify-content: center;
align-items: center;
span{
font-size: 8px;
display: block;
line-height: 1;
}
&:hover{
text-decoration: none;
background: $medium-grey;
color: #fff;
}
}
.form-nested-item{
border: 1px solid $light-grey;
padding: 10px;
border-radius: 3px;
margin-bottom: 10px;
display: flex;
align-items: center;
position: relative;
.form-nested-item-deleted-overlay{
position: absolute;
display: none;
opacity: 0.3;
z-index: 10000;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100%;
width: 100%;
background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.5' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}
}
.form-nested-item-inner{
flex: 1;
}
.form-nested-item-remove{
margin-left: 10px;
}
.form-nested-button{
display: flex;
justify-content: center;
align-items: center;
svg{
display:block;
path{
fill: rgba(255,255,255,0.7);
stroke: rgba(255,255,255,0.7);
}
}
}