Use CSS custom properties
This commit is contained in:
parent
6a3cc4f7c6
commit
a1a7bf7259
5 changed files with 97 additions and 71 deletions
2
dist/electron-tabs.js
vendored
2
dist/electron-tabs.js
vendored
|
@ -1,4 +1,4 @@
|
|||
var $4866f6bbac7a0ed7$export$2e2bcd8739ae039 = "/* TODO: use custom properties */\n\nwebview {\n position: absolute;\n visibility: hidden;\n width: 100%;\n height: 100%;\n}\n\nwebview.visible {\n visibility: visible;\n}\n\n.etabs {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga', 'clig', 'kern';\n}\n\n.etabs-tabgroup {\n width: 100%;\n height: 32px;\n cursor: default;\n font: caption;\n font-size: 14px;\n -webkit-user-select: none;\n user-select: none;\n display: none;\n background: #E7EAED;\n box-shadow: inset 0 -1px #DADCE0;\n border-top: 1px solid #DADCE0;\n}\n\n.etabs-tabgroup.visible {\n display: flex;\n}\n\n.etabs-tabs {\n height: 100%;\n}\n\n.etabs-tab {\n display: none;\n position: relative;\n height: 100%;\n background: #E7EAED;\n color: #696A6C;\n padding: 5px 9px;\n transition: background-color 150ms ease-out;\n box-shadow: inset 0 -1px #DADCE0;\n font: caption;\n font-size: 13px;\n cursor: pointer;\n box-sizing: border-box;\n}\n\n/* Dragula */\n.etabs-tab.gu-mirror {\n padding-bottom: 0;\n cursor: grab;\n\tborder: none;\n}\n\n.etabs-tab:first-child {\n border-left: none;\n}\n\n.etabs-tab.visible {\n display: inline-block;\n}\n\n.etabs-tab.active {\n background: #fff;\n box-shadow: none;\n\tborder-left: 1px solid #DADCE0;\n\tborder-right: 1px solid #DADCE0;\n\tpadding-left: 8px;\n\tpadding-right: 8px;\n}\n\n.etabs-tab.active:last-child {\n border-right: none;\n}\n\n.etabs-tab.flash {\n background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);\n}\n\n.etabs-tab.visible:not(.active)+.etabs-tab.visible:not(.active) {\n\tborder-left: 1px solid #B4B6B8;\n\tpadding-left: 8px;\n}\n\n.etabs-tab:not(.active):hover {\n\tbackground: #F1F3F4;\n}\n\n.etabs-buttons {\n border-left: 1px solid #B4B6B8;\n}\n\n.etabs-buttons button {\n display: block;\n color: #777;\n background: none;\n border: none;\n font-size: 16px;\n font-family: inherit;\n margin-top: 5px;\n border-radius: 50%;\n margin-left: 4px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 14px;\n padding: 1px 0 0 0;\n\tcursor: pointer;\n}\n\n.etabs-buttons button:hover {\n color: #333;\n background-color: #bbb;\n}\n\n.etabs-tab-badge {\n position: absolute;\n right: 0;\n top: -7px;\n background: red;\n border-radius: 100%;\n text-align: center;\n font-size: 10px;\n padding: 0 5px;\n}\n\n.etabs-tab-badge.hidden {\n display: none;\n}\n\n.etabs-tab-icon {\n display: inline-block;\n height: 16px;\n}\n\n.etabs-tab-icon img {\n max-width: 16px;\n max-height: 16px;\n}\n\n.etabs-tab-title {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons button {\n display: inline-block;\n color: #777;\n background: none;\n border: none;\n width: 20px;\n height: 20px;\n text-align: center;\n border-radius: 50%;\n cursor: pointer;\n padding: 1px 0 0 0;\n font-size: 16px;\n}\n\n.etabs-tab-buttons button:hover {\n color: #333;\n background-color: #bbb;\n}\n\n.etabs-views {\n position: relative;\n height: calc(100vh - 33px);\n}\n\n.etab-view {\n position: relative;\n}\n";
|
||||
var $4866f6bbac7a0ed7$export$2e2bcd8739ae039 = "/* CUSTOM PROPERTIES */\n/* ================= */\n\n:host {\n --tabgroup-background: #E7EAED;\n --tab-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n --tab-font-size: 13px;\n --tab-background: #E7EAED;\n --tab-color: #696A6C;\n --tab-border-color: #DADCE0;\n --tab-transition: background-color 150ms ease-out;\n --tab-cursor: pointer;\n --tab-active-color: currentcolor;\n --tab-active-background: #FFF;\n --tag-hover-color: currentcolor;\n --tag-hover-background: #F1F3F4;\n --tab-flash-color: #696A6C;\n --tab-flash-background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);\n --button-font-size: 15px;\n --button-background: none;\n --button-color: #696A6C;\n --button-hover-background: #DADCE0;\n --button-hover-color: #383a3e;\n --button-border-radius: 50%;\n --button-cursor: pointer;\n --badge-background: red;\n}\n\n/* STYLES */\n/* ====== */\n\nwebview {\n position: absolute;\n visibility: hidden;\n width: 100%;\n height: 100%;\n}\n\nwebview.visible {\n visibility: visible;\n}\n\n.etabs {\n font-family: var(--tab-font-family);\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga', 'clig', 'kern';\n}\n\n.etabs-tabgroup {\n background: var(--tabgroup-background);\n box-shadow: inset 0 -1px var(--tab-border-color);\n border-top: 1px solid var(--tab-border-color);\n font-size: var(--tab-font-size);\n display: none;\n width: 100%;\n height: 32px;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.etabs-tabgroup.visible {\n display: flex;\n}\n\n.etabs-tabs {\n height: 100%;\n}\n\n.etabs-tab {\n background: var(--tab-background);\n box-shadow: inset 0 -1px var(--tab-border-color);\n color: var(--tab-color);\n cursor: var(--tab-cursor);\n font-size: var(--tab-font-size);\n transition: var(--tab-transition);\n display: none;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n padding: 5px 9px;\n}\n\n.etabs-tab:first-child {\n border-left: none;\n}\n\n.etabs-tab.visible {\n display: inline-block;\n}\n\n.etabs-tab.active {\n color: var(--tab-active-color);\n background: var(--tab-active-background);\n\tborder-left: 1px solid var(--tab-border-color);\n\tborder-right: 1px solid var(--tab-border-color);\n\tpadding-left: 8px;\n\tpadding-right: 8px;\n box-shadow: none;\n}\n\n.etabs-tab.active:last-child {\n border-right: none;\n}\n\n.etabs-tab.flash {\n background: var(--tab-flash-background);\n color: var(--tab-flash-color);\n}\n\n.etabs-tab.visible:not(.active)+.etabs-tab.visible:not(.active) {\n\tborder-left: 1px solid var(--tab-border-color);\n\tpadding-left: 8px;\n}\n\n.etabs-tab:not(.active):hover {\n\tbackground: var(--tab-hover-background);\n color: var(--tab-hover-color);\n}\n\n.etabs-tab-badge {\n background: var(--badge-background);\n position: absolute;\n right: 0;\n top: -7px;\n border-radius: 50%;\n text-align: center;\n font-size: 10px;\n padding: 0 5px;\n}\n\n.etabs-tab-badge.hidden {\n display: none;\n}\n\n.etabs-tab-icon {\n display: inline-block;\n height: 16px;\n}\n\n.etabs-tab-icon img {\n max-width: 16px;\n max-height: 16px;\n}\n\n.etabs-tab-title {\n display: inline-block;\n margin-left: 10px;\n}\n\n/* tab buttons */\n.etabs-tab-buttons {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons button {\n background: var(--button-background);\n border-radius: var(--button-border-radius);\n color: var(--button-color);\n cursor: var(--button-cursor);\n font-size: var(--button-font-size);\n display: inline-block;\n border: none;\n width: 20px;\n height: 20px;\n text-align: center;\n padding: 1px 0 0 0;\n}\n\n.etabs-tab-buttons button:hover {\n color: var(--button-hover-color);\n background: var(--button-hover-background);\n}\n\n/* tab bar buttons */\n.etabs-buttons {\n display: flex;\n padding: 5px;\n border-left: 1px solid var(--tab-border-color);\n}\n\n.etabs-buttons button {\n color: var(--button-color);\n background: var(--button-background);\n border-radius: var(--button-border-radius);\n\tcursor: var(--button-cursor);\n font-size: var(--button-font-size);\n display: block;\n font-family: inherit;\n border: none;\n margin: 0;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 1;\n padding: 1px 0 0 0;\n}\n\n.etabs-buttons button:hover {\n color: var(--button-hover-color);\n background: var(--button-hover-background);\n}\n\n.etabs-views {\n position: relative;\n height: calc(100vh - 33px);\n}\n\n.etab-view {\n position: relative;\n}\n";
|
||||
|
||||
|
||||
if (!document) throw Error("electron-tabs module must be called in renderer process");
|
||||
|
|
2
dist/electron-tabs.js.map
vendored
2
dist/electron-tabs.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/electron-tabs.sortable.js
vendored
2
dist/electron-tabs.sortable.js
vendored
|
@ -3489,7 +3489,7 @@ customElements.define("tab-group", TabGroup);
|
|||
},{"./style.css":"e9qgF","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"e9qgF":[function(require,module,exports) {
|
||||
var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
|
||||
parcelHelpers.defineInteropFlag(exports);
|
||||
exports.default = "/* TODO: use custom properties */\n\nwebview {\n position: absolute;\n visibility: hidden;\n width: 100%;\n height: 100%;\n}\n\nwebview.visible {\n visibility: visible;\n}\n\n.etabs {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga', 'clig', 'kern';\n}\n\n.etabs-tabgroup {\n width: 100%;\n height: 32px;\n cursor: default;\n font: caption;\n font-size: 14px;\n -webkit-user-select: none;\n user-select: none;\n display: none;\n background: #E7EAED;\n box-shadow: inset 0 -1px #DADCE0;\n border-top: 1px solid #DADCE0;\n}\n\n.etabs-tabgroup.visible {\n display: flex;\n}\n\n.etabs-tabs {\n height: 100%;\n}\n\n.etabs-tab {\n display: none;\n position: relative;\n height: 100%;\n background: #E7EAED;\n color: #696A6C;\n padding: 5px 9px;\n transition: background-color 150ms ease-out;\n box-shadow: inset 0 -1px #DADCE0;\n font: caption;\n font-size: 13px;\n cursor: pointer;\n box-sizing: border-box;\n}\n\n/* Dragula */\n.etabs-tab.gu-mirror {\n padding-bottom: 0;\n cursor: grab;\n\tborder: none;\n}\n\n.etabs-tab:first-child {\n border-left: none;\n}\n\n.etabs-tab.visible {\n display: inline-block;\n}\n\n.etabs-tab.active {\n background: #fff;\n box-shadow: none;\n\tborder-left: 1px solid #DADCE0;\n\tborder-right: 1px solid #DADCE0;\n\tpadding-left: 8px;\n\tpadding-right: 8px;\n}\n\n.etabs-tab.active:last-child {\n border-right: none;\n}\n\n.etabs-tab.flash {\n background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);\n}\n\n.etabs-tab.visible:not(.active)+.etabs-tab.visible:not(.active) {\n\tborder-left: 1px solid #B4B6B8;\n\tpadding-left: 8px;\n}\n\n.etabs-tab:not(.active):hover {\n\tbackground: #F1F3F4;\n}\n\n.etabs-buttons {\n border-left: 1px solid #B4B6B8;\n}\n\n.etabs-buttons button {\n display: block;\n color: #777;\n background: none;\n border: none;\n font-size: 16px;\n font-family: inherit;\n margin-top: 5px;\n border-radius: 50%;\n margin-left: 4px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 14px;\n padding: 1px 0 0 0;\n\tcursor: pointer;\n}\n\n.etabs-buttons button:hover {\n color: #333;\n background-color: #bbb;\n}\n\n.etabs-tab-badge {\n position: absolute;\n right: 0;\n top: -7px;\n background: red;\n border-radius: 100%;\n text-align: center;\n font-size: 10px;\n padding: 0 5px;\n}\n\n.etabs-tab-badge.hidden {\n display: none;\n}\n\n.etabs-tab-icon {\n display: inline-block;\n height: 16px;\n}\n\n.etabs-tab-icon img {\n max-width: 16px;\n max-height: 16px;\n}\n\n.etabs-tab-title {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons button {\n display: inline-block;\n color: #777;\n background: none;\n border: none;\n width: 20px;\n height: 20px;\n text-align: center;\n border-radius: 50%;\n cursor: pointer;\n padding: 1px 0 0 0;\n font-size: 16px;\n}\n\n.etabs-tab-buttons button:hover {\n color: #333;\n background-color: #bbb;\n}\n\n.etabs-views {\n position: relative;\n height: calc(100vh - 33px);\n}\n\n.etab-view {\n position: relative;\n}\n";
|
||||
exports.default = "/* CUSTOM PROPERTIES */\n/* ================= */\n\n:host {\n --tabgroup-background: #E7EAED;\n --tab-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n --tab-font-size: 13px;\n --tab-background: #E7EAED;\n --tab-color: #696A6C;\n --tab-border-color: #DADCE0;\n --tab-transition: background-color 150ms ease-out;\n --tab-cursor: pointer;\n --tab-active-color: currentcolor;\n --tab-active-background: #FFF;\n --tag-hover-color: currentcolor;\n --tag-hover-background: #F1F3F4;\n --tab-flash-color: #696A6C;\n --tab-flash-background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);\n --button-font-size: 15px;\n --button-background: none;\n --button-color: #696A6C;\n --button-hover-background: #DADCE0;\n --button-hover-color: #383a3e;\n --button-border-radius: 50%;\n --button-cursor: pointer;\n --badge-background: red;\n}\n\n/* STYLES */\n/* ====== */\n\nwebview {\n position: absolute;\n visibility: hidden;\n width: 100%;\n height: 100%;\n}\n\nwebview.visible {\n visibility: visible;\n}\n\n.etabs {\n font-family: var(--tab-font-family);\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga', 'clig', 'kern';\n}\n\n.etabs-tabgroup {\n background: var(--tabgroup-background);\n box-shadow: inset 0 -1px var(--tab-border-color);\n border-top: 1px solid var(--tab-border-color);\n font-size: var(--tab-font-size);\n display: none;\n width: 100%;\n height: 32px;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.etabs-tabgroup.visible {\n display: flex;\n}\n\n.etabs-tabs {\n height: 100%;\n}\n\n.etabs-tab {\n background: var(--tab-background);\n box-shadow: inset 0 -1px var(--tab-border-color);\n color: var(--tab-color);\n cursor: var(--tab-cursor);\n font-size: var(--tab-font-size);\n transition: var(--tab-transition);\n display: none;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n padding: 5px 9px;\n}\n\n.etabs-tab:first-child {\n border-left: none;\n}\n\n.etabs-tab.visible {\n display: inline-block;\n}\n\n.etabs-tab.active {\n color: var(--tab-active-color);\n background: var(--tab-active-background);\n\tborder-left: 1px solid var(--tab-border-color);\n\tborder-right: 1px solid var(--tab-border-color);\n\tpadding-left: 8px;\n\tpadding-right: 8px;\n box-shadow: none;\n}\n\n.etabs-tab.active:last-child {\n border-right: none;\n}\n\n.etabs-tab.flash {\n background: var(--tab-flash-background);\n color: var(--tab-flash-color);\n}\n\n.etabs-tab.visible:not(.active)+.etabs-tab.visible:not(.active) {\n\tborder-left: 1px solid var(--tab-border-color);\n\tpadding-left: 8px;\n}\n\n.etabs-tab:not(.active):hover {\n\tbackground: var(--tab-hover-background);\n color: var(--tab-hover-color);\n}\n\n.etabs-tab-badge {\n background: var(--badge-background);\n position: absolute;\n right: 0;\n top: -7px;\n border-radius: 50%;\n text-align: center;\n font-size: 10px;\n padding: 0 5px;\n}\n\n.etabs-tab-badge.hidden {\n display: none;\n}\n\n.etabs-tab-icon {\n display: inline-block;\n height: 16px;\n}\n\n.etabs-tab-icon img {\n max-width: 16px;\n max-height: 16px;\n}\n\n.etabs-tab-title {\n display: inline-block;\n margin-left: 10px;\n}\n\n/* tab buttons */\n.etabs-tab-buttons {\n display: inline-block;\n margin-left: 10px;\n}\n\n.etabs-tab-buttons button {\n background: var(--button-background);\n border-radius: var(--button-border-radius);\n color: var(--button-color);\n cursor: var(--button-cursor);\n font-size: var(--button-font-size);\n display: inline-block;\n border: none;\n width: 20px;\n height: 20px;\n text-align: center;\n padding: 1px 0 0 0;\n}\n\n.etabs-tab-buttons button:hover {\n color: var(--button-hover-color);\n background: var(--button-hover-background);\n}\n\n/* tab bar buttons */\n.etabs-buttons {\n display: flex;\n padding: 5px;\n border-left: 1px solid var(--tab-border-color);\n}\n\n.etabs-buttons button {\n color: var(--button-color);\n background: var(--button-background);\n border-radius: var(--button-border-radius);\n\tcursor: var(--button-cursor);\n font-size: var(--button-font-size);\n display: block;\n font-family: inherit;\n border: none;\n margin: 0;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 1;\n padding: 1px 0 0 0;\n}\n\n.etabs-buttons button:hover {\n color: var(--button-hover-color);\n background: var(--button-hover-background);\n}\n\n.etabs-views {\n position: relative;\n height: calc(100vh - 33px);\n}\n\n.etab-view {\n position: relative;\n}\n";
|
||||
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}]},["eMzbI","2yeu5"], "2yeu5", "parcelRequire22a0")
|
||||
|
||||
|
|
2
dist/electron-tabs.sortable.js.map
vendored
2
dist/electron-tabs.sortable.js.map
vendored
File diff suppressed because one or more lines are too long
160
src/style.css
160
src/style.css
|
@ -1,4 +1,33 @@
|
|||
/* TODO: use custom properties */
|
||||
/* CUSTOM PROPERTIES */
|
||||
/* ================= */
|
||||
|
||||
:host {
|
||||
--tabgroup-background: #E7EAED;
|
||||
--tab-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
--tab-font-size: 13px;
|
||||
--tab-background: #E7EAED;
|
||||
--tab-color: #696A6C;
|
||||
--tab-border-color: #DADCE0;
|
||||
--tab-transition: background-color 150ms ease-out;
|
||||
--tab-cursor: pointer;
|
||||
--tab-active-color: currentcolor;
|
||||
--tab-active-background: #FFF;
|
||||
--tag-hover-color: currentcolor;
|
||||
--tag-hover-background: #F1F3F4;
|
||||
--tab-flash-color: #696A6C;
|
||||
--tab-flash-background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);
|
||||
--button-font-size: 15px;
|
||||
--button-background: none;
|
||||
--button-color: #696A6C;
|
||||
--button-hover-background: #DADCE0;
|
||||
--button-hover-color: #383a3e;
|
||||
--button-border-radius: 50%;
|
||||
--button-cursor: pointer;
|
||||
--badge-background: red;
|
||||
}
|
||||
|
||||
/* STYLES */
|
||||
/* ====== */
|
||||
|
||||
webview {
|
||||
position: absolute;
|
||||
|
@ -12,23 +41,22 @@ webview.visible {
|
|||
}
|
||||
|
||||
.etabs {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
font-family: var(--tab-font-family);
|
||||
text-rendering: optimizeLegibility;
|
||||
font-feature-settings: 'liga', 'clig', 'kern';
|
||||
}
|
||||
|
||||
.etabs-tabgroup {
|
||||
background: var(--tabgroup-background);
|
||||
box-shadow: inset 0 -1px var(--tab-border-color);
|
||||
border-top: 1px solid var(--tab-border-color);
|
||||
font-size: var(--tab-font-size);
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
cursor: default;
|
||||
font: caption;
|
||||
font-size: 14px;
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
display: none;
|
||||
background: #E7EAED;
|
||||
box-shadow: inset 0 -1px #DADCE0;
|
||||
border-top: 1px solid #DADCE0;
|
||||
}
|
||||
|
||||
.etabs-tabgroup.visible {
|
||||
|
@ -40,25 +68,17 @@ webview.visible {
|
|||
}
|
||||
|
||||
.etabs-tab {
|
||||
background: var(--tab-background);
|
||||
box-shadow: inset 0 -1px var(--tab-border-color);
|
||||
color: var(--tab-color);
|
||||
cursor: var(--tab-cursor);
|
||||
font-size: var(--tab-font-size);
|
||||
transition: var(--tab-transition);
|
||||
display: none;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
background: #E7EAED;
|
||||
color: #696A6C;
|
||||
padding: 5px 9px;
|
||||
transition: background-color 150ms ease-out;
|
||||
box-shadow: inset 0 -1px #DADCE0;
|
||||
font: caption;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Dragula */
|
||||
.etabs-tab.gu-mirror {
|
||||
padding-bottom: 0;
|
||||
cursor: grab;
|
||||
border: none;
|
||||
height: 100%;
|
||||
padding: 5px 9px;
|
||||
}
|
||||
|
||||
.etabs-tab:first-child {
|
||||
|
@ -70,12 +90,13 @@ webview.visible {
|
|||
}
|
||||
|
||||
.etabs-tab.active {
|
||||
background: #fff;
|
||||
box-shadow: none;
|
||||
border-left: 1px solid #DADCE0;
|
||||
border-right: 1px solid #DADCE0;
|
||||
color: var(--tab-active-color);
|
||||
background: var(--tab-active-background);
|
||||
border-left: 1px solid var(--tab-border-color);
|
||||
border-right: 1px solid var(--tab-border-color);
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.etabs-tab.active:last-child {
|
||||
|
@ -83,51 +104,26 @@ webview.visible {
|
|||
}
|
||||
|
||||
.etabs-tab.flash {
|
||||
background: linear-gradient(to bottom, rgba(255,243,170,1) 0%,rgba(255,227,37,1) 100%);
|
||||
background: var(--tab-flash-background);
|
||||
color: var(--tab-flash-color);
|
||||
}
|
||||
|
||||
.etabs-tab.visible:not(.active)+.etabs-tab.visible:not(.active) {
|
||||
border-left: 1px solid #B4B6B8;
|
||||
border-left: 1px solid var(--tab-border-color);
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.etabs-tab:not(.active):hover {
|
||||
background: #F1F3F4;
|
||||
}
|
||||
|
||||
.etabs-buttons {
|
||||
border-left: 1px solid #B4B6B8;
|
||||
}
|
||||
|
||||
.etabs-buttons button {
|
||||
display: block;
|
||||
color: #777;
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
font-family: inherit;
|
||||
margin-top: 5px;
|
||||
border-radius: 50%;
|
||||
margin-left: 4px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
line-height: 14px;
|
||||
padding: 1px 0 0 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.etabs-buttons button:hover {
|
||||
color: #333;
|
||||
background-color: #bbb;
|
||||
background: var(--tab-hover-background);
|
||||
color: var(--tab-hover-color);
|
||||
}
|
||||
|
||||
.etabs-tab-badge {
|
||||
background: var(--badge-background);
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: -7px;
|
||||
background: red;
|
||||
border-radius: 100%;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
font-size: 10px;
|
||||
padding: 0 5px;
|
||||
|
@ -152,28 +148,58 @@ webview.visible {
|
|||
margin-left: 10px;
|
||||
}
|
||||
|
||||
/* tab buttons */
|
||||
.etabs-tab-buttons {
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.etabs-tab-buttons button {
|
||||
background: var(--button-background);
|
||||
border-radius: var(--button-border-radius);
|
||||
color: var(--button-color);
|
||||
cursor: var(--button-cursor);
|
||||
font-size: var(--button-font-size);
|
||||
display: inline-block;
|
||||
color: #777;
|
||||
background: none;
|
||||
border: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
padding: 1px 0 0 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.etabs-tab-buttons button:hover {
|
||||
color: #333;
|
||||
background-color: #bbb;
|
||||
color: var(--button-hover-color);
|
||||
background: var(--button-hover-background);
|
||||
}
|
||||
|
||||
/* tab bar buttons */
|
||||
.etabs-buttons {
|
||||
display: flex;
|
||||
padding: 5px;
|
||||
border-left: 1px solid var(--tab-border-color);
|
||||
}
|
||||
|
||||
.etabs-buttons button {
|
||||
color: var(--button-color);
|
||||
background: var(--button-background);
|
||||
border-radius: var(--button-border-radius);
|
||||
cursor: var(--button-cursor);
|
||||
font-size: var(--button-font-size);
|
||||
display: block;
|
||||
font-family: inherit;
|
||||
border: none;
|
||||
margin: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
line-height: 1;
|
||||
padding: 1px 0 0 0;
|
||||
}
|
||||
|
||||
.etabs-buttons button:hover {
|
||||
color: var(--button-hover-color);
|
||||
background: var(--button-hover-background);
|
||||
}
|
||||
|
||||
.etabs-views {
|
||||
|
|
Loading…
Reference in a new issue