File tree 4 files changed +39
-15
lines changed
arduino-ide-extension/src/browser
dialogs/certificate-uploader
4 files changed +39
-15
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const CertificateUploaderComponent = ({
94
94
>
95
95
< button
96
96
type = "button"
97
- className = "theia-button primary add-cert-btn"
97
+ className = "theia-button secondary add-cert-btn"
98
98
onClick = { ( ) => {
99
99
showAdd ? setShowAdd ( false ) : setShowAdd ( true ) ;
100
100
} }
Original file line number Diff line number Diff line change 60
60
/* Overrule the default Theia CSS button styles. */
61
61
button .theia-button ,
62
62
.theia-button {
63
- border : 1px solid var (--theia-dropdown-border );
64
- }
65
-
66
- button .theia-button : hover ,
67
- .theia-button : hover {
68
- border : 1px solid var (--theia-focusBorder );
63
+ align-items : center;
64
+ display : flex;
65
+ font-family : 'Open Sans' , sans-serif;
66
+ font-style : normal;
67
+ font-weight : 700 ;
68
+ font-size : 1rem ;
69
+ justify-content : center;
70
+ cursor : pointer;
71
+ letter-spacing : .01em ;
72
+ line-height : 170% ;
73
+ outline : none;
74
+ padding : 0 18px ;
75
+ position : relative;
76
+ text-align : center;
77
+ text-decoration : none;
78
+ border-width : 2px ;
79
+ border-radius : 32px ;
80
+ text-transform : uppercase;
81
+ transition : none;
82
+ box-shadow : none;
69
83
}
70
84
71
85
button .theia-button {
72
- height : 31px ;
86
+ height : auto;
87
+ max-width : none;
73
88
}
74
89
75
90
button .theia-button .secondary {
76
- background-color : var (--theia-secondaryButton-background );
77
- color : var (--theia-secondaryButton-foreground );
91
+ border : 1.5px solid var (--theia-secondaryButton-foreground );
78
92
}
79
93
80
- button .theia-button .main {
94
+ button .theia-button [disabled ], .theia-button [disabled ] {
95
+ opacity : 0.5 ;
81
96
color : var (--theia-button-foreground );
97
+ background-color : var (--theia-button-background );
98
+ }
99
+
100
+ button .secondary [disabled ], .theia-button .secondary [disabled ] {
101
+ color : var (--theia-secondaryButton-foreground );
102
+ background-color : var (--theia-secondaryButton-background );
82
103
}
83
104
84
105
/* To make the progress-bar slightly thicker, and use the color from the status bar */
Original file line number Diff line number Diff line change @@ -127,12 +127,12 @@ https://github.com/arduino/arduino-pro-ide/issues/82 */
127
127
}
128
128
129
129
.component-list-item : hover .footer > * {
130
- display : block;
130
+ display : inline- block;
131
131
margin : 5px 0px 0px 10px ;
132
132
}
133
133
134
134
.component-list-item : hover .footer > label {
135
- display : block;
135
+ display : inline- block;
136
136
align-self : center;
137
137
margin : 5px 0px 0px 10px ;
138
138
}
Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ export class ListItemRenderer<T extends ArduinoComponent> {
72
72
) ;
73
73
const onClickInstall = ( ) => install ( item ) ;
74
74
const installButton = item . installable && (
75
- < button className = "theia-button install" onClick = { onClickInstall } >
75
+ < button
76
+ className = "theia-button secondary install"
77
+ onClick = { onClickInstall }
78
+ >
76
79
{ nls . localize ( 'arduino/component/install' , 'INSTALL' ) }
77
80
</ button >
78
81
) ;
@@ -121,8 +124,8 @@ export class ListItemRenderer<T extends ArduinoComponent> {
121
124
</ div >
122
125
< div className = "info" > { moreInfo } </ div >
123
126
< div className = "footer" >
124
- { installButton }
125
127
{ versions }
128
+ { installButton }
126
129
</ div >
127
130
</ div >
128
131
) ;
You can’t perform that action at this time.
0 commit comments