mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 11:52:44 +00:00
Changes to core.less, reset.less, and toolbar
Making some changes to the reset.less so that some default UA button styling is removed. Then, changing core.less so that the classic "HB" button styling is scoped to a certain class `.colorButton`. This will make it easier to use the button element in other places.
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
height : auto;
|
height : auto;
|
||||||
padding : 2px 0;
|
padding : 2px 0;
|
||||||
font-family : 'Open Sans', sans-serif;
|
font-family : 'Open Sans', sans-serif;
|
||||||
|
font-size : 13px;
|
||||||
color : #CCCCCC;
|
color : #CCCCCC;
|
||||||
background-color : #555555;
|
background-color : #555555;
|
||||||
& > *:not(.toggleButton) {
|
& > *:not(.toggleButton) {
|
||||||
@@ -154,13 +155,6 @@
|
|||||||
width : auto;
|
width : auto;
|
||||||
min-width : 46px;
|
min-width : 46px;
|
||||||
height : 100%;
|
height : 100%;
|
||||||
padding : 0 0px;
|
|
||||||
font-weight : unset;
|
|
||||||
color : inherit;
|
|
||||||
background-color : unset;
|
|
||||||
|
|
||||||
&:not(button:has(i, svg)) { padding : 0 8px; }
|
|
||||||
|
|
||||||
&:hover { background-color : #444444; }
|
&:hover { background-color : #444444; }
|
||||||
&:focus { border : 1px solid #D3D3D3;outline : none;}
|
&:focus { border : 1px solid #D3D3D3;outline : none;}
|
||||||
&:disabled {
|
&:disabled {
|
||||||
|
|||||||
@@ -79,6 +79,7 @@
|
|||||||
text-overflow : ellipsis;
|
text-overflow : ellipsis;
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
|
.colorButton();
|
||||||
padding : 0px 5px;
|
padding : 0px 5px;
|
||||||
color : white;
|
color : white;
|
||||||
background-color : black;
|
background-color : black;
|
||||||
@@ -138,16 +139,16 @@
|
|||||||
margin-bottom : 15px;
|
margin-bottom : 15px;
|
||||||
button { width : 100%; }
|
button { width : 100%; }
|
||||||
button.publish {
|
button.publish {
|
||||||
.button(@blueLight);
|
.colorButton(@blueLight);
|
||||||
}
|
}
|
||||||
button.unpublish {
|
button.unpublish {
|
||||||
.button(@silver);
|
.colorButton(@silver);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete.field .value {
|
.delete.field .value {
|
||||||
button {
|
button {
|
||||||
.button(@red);
|
.colorButton(@red);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.authors.field .value {
|
.authors.field .value {
|
||||||
|
|||||||
@@ -21,10 +21,7 @@ html,body, #reactRoot{
|
|||||||
*{
|
*{
|
||||||
box-sizing : border-box;
|
box-sizing : border-box;
|
||||||
}
|
}
|
||||||
button{
|
.colorButton(@backgroundColor : @green){
|
||||||
.button();
|
|
||||||
}
|
|
||||||
.button(@backgroundColor : @green){
|
|
||||||
.animate(background-color);
|
.animate(background-color);
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
padding : 0.6em 1.2em;
|
padding : 0.6em 1.2em;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
:where(html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video){
|
:where(html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,button,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video){
|
||||||
border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0
|
border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,3 +25,9 @@
|
|||||||
:where(table){
|
:where(table){
|
||||||
border-collapse:collapse;border-spacing:0
|
border-collapse:collapse;border-spacing:0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:where(button) {
|
||||||
|
background-color: unset;
|
||||||
|
text-transform: unset;
|
||||||
|
color: unset;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user