1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00
Files
csslayout/styles/patterns/_spin-button.scss
2022-09-21 10:45:12 +07:00

34 lines
603 B
SCSS

.spin-button {
border: 1px solid #d1d5db;
border-radius: 0.25rem;
display: flex;
overflow: hidden;
}
.spin-button__input {
border-color: transparent;
padding: 0.5rem;
/* Demo */
width: 8rem;
}
.spin-button__buttons {
/* Content is centered vertically */
display: flex;
flex-direction: column;
justify-content: center;
/* Left border */
border-left: 1px solid #d1d5db;
}
.spin-button__button {
/* Reset */
background: #fff;
border-color: transparent;
cursor: pointer;
/* Make buttons have the same height */
flex: 1;
}