sirius/pub/css/button.css

118 lines
2.3 KiB
CSS
Raw Normal View History

2023-04-22 16:11:29 +03:00
/*Стили для демонстрации*/
body{
background-color: #799eb4;
}
.wrapper{
width: 100%;
min-height: 30%;
height: 30%;
overflow: hidden;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
justify-content:center;
align-items: center;
}
.button13 {
display: inline-block;
width: 15em;
font-size: 80%;
color: rgba(255,255,255,.9);
text-shadow: #2e7ebd 0 1px 2px;
text-decoration: none;
text-align: center;
line-height: 1.1;
white-space: pre-line;
padding: .7em 0;
border: 1px solid;
border-color: #60a3d8 #2970a9 #2970a9 #60a3d8;
border-radius: 6px;
outline: none;
background: #3a9ef0 linear-gradient(#89bbe2, #60a3d8 50%, #378bce);
box-shadow: inset rgba(255,255,255,.5) 1px 1px;
}
.button13:first-line{
font-size: 170%;
font-weight: 700;
}
.button13:hover {
color: rgb(255,255,255);
background-image: linear-gradient(#9dc7e7, #74afdd 50%, #378bce);
}
.button13:active {
color: rgb(255,255,255);
border-color: #2970a9;
background-image: linear-gradient(#5796c8, #6aa2ce);
box-shadow: none;
}
.input-file {
position: relative;
display: inline-block;
}
.input-file-text {
padding: 0 10px;
line-height: 40px;
text-align: left;
height: 40px;
display: block;
float: left;
box-sizing: border-box;
width: 200px;
border-radius: 6px 0px 0 6px;
border: 1px solid #ddd;
}
.input-file-btn {
position: relative;
display: inline-block;
cursor: pointer;
outline: none;
text-decoration: none;
font-size: 14px;
vertical-align: middle;
color: rgb(255 255 255);
text-align: center;
border-radius: 0 4px 4px 0;
background-color: #419152;
line-height: 22px;
height: 40px;
padding: 10px 20px;
box-sizing: border-box;
border: none;
margin: 0;
transition: background-color 0.2s;
}
.input-file input[type=file] {
position: absolute;
z-index: -1;
opacity: 0;
display: block;
width: 0;
height: 0;
}
/* Focus */
.input-file input[type=file]:focus + .input-file-btn {
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
/* Hover/active */
.input-file:hover .input-file-btn {
background-color: #59be6e;
}
.input-file:active .input-file-btn {
background-color: #2E703A;
}
/* Disabled */
.input-file input[type=file]:disabled + .input-file-btn {
background-color: #eee;
}