mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-18 23:38:31 +02:00
Use browser_style in webpack example
This commit is contained in:
42
webpack-modules/addon/popup/style.css
Normal file
42
webpack-modules/addon/popup/style.css
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* These styles extend the styles from browser_styles, see https://firefoxux.github.io/StyleGuide.
|
||||
*/
|
||||
|
||||
/* For some reason the footer creates a horizontal overflow */
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.panel-formElements-item label {
|
||||
width: 80px;
|
||||
}
|
||||
|
||||
.panel-formElements-item output,
|
||||
.panel-formElements-item input[type="number"] {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
input[type="number"] {
|
||||
background-color: #fff;
|
||||
border: 1px solid #b1b1b1;
|
||||
box-shadow: 0 0 0 0 rgba(97, 181, 255, 0);
|
||||
font: caption;
|
||||
padding: 0 6px 0;
|
||||
transition-duration: 250ms;
|
||||
transition-property: box-shadow;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
input[type="number"]:hover {
|
||||
border-color: #858585;
|
||||
}
|
||||
|
||||
input[type="number"]:focus {
|
||||
border-color: #0996f8;
|
||||
box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
|
||||
}
|
||||
|
||||
/* Reset the default styles for buttons if it's a footer button */
|
||||
button.panel-section-footer-button {
|
||||
padding: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user