mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 21:02:43 +00:00
tool elements use width:auto for flexibility, but with min-width
Set the child elements of the toolbar to have auto width (can expand as needed), but have a min-width so no button, such as an icon, is too small.
This commit is contained in:
@@ -61,12 +61,12 @@
|
|||||||
color : #CCCCCC;
|
color : #CCCCCC;
|
||||||
padding : 0;
|
padding : 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: auto;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
|
|
||||||
&:hover,&:focus-within { background-color : #444444; }
|
&:hover,&:focus-within { background-color : #444444; }
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width : 70px;
|
|
||||||
font-family : 'Open Sans', sans-serif;
|
font-family : 'Open Sans', sans-serif;
|
||||||
font-size : 11px;
|
font-size : 11px;
|
||||||
font-weight : normal;
|
font-weight : normal;
|
||||||
@@ -74,6 +74,8 @@
|
|||||||
text-transform : uppercase;
|
text-transform : uppercase;
|
||||||
background-color : transparent;
|
background-color : transparent;
|
||||||
height : 100%;
|
height : 100%;
|
||||||
|
width : auto;
|
||||||
|
min-width : 46px;
|
||||||
padding : 0 8px;
|
padding : 0 8px;
|
||||||
|
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
|
|||||||
Reference in New Issue
Block a user