Fossil SCM

Add some higher-specificity CSS declarations to prevent dark-mode skins from overriding the relevant styles of the Copy Button layout, so users don't need to sync their skin customizations with the changes on this branch.

florian 2025-08-12 15:20 copybtn.js-responsive
Commit b7f2c9f329971d045495df744c625f9347d925111f25fd48ea3a367f44ba868d
1 file changed +9 -2
+9 -2
--- src/default.css
+++ src/default.css
@@ -1136,24 +1136,31 @@
11361136
white-space: nowrap;
11371137
}
11381138
label[for] {
11391139
cursor: pointer;
11401140
}
1141
-button.copy-button {
1141
+button.copy-button,
1142
+button.copy-button:hover,
1143
+button.copy-button:focus,
1144
+button.copy-button:active {
11421145
width: 14px;
11431146
height: 14px;
11441147
/*Note: .24em is slightly smaller than the average width of a normal space.*/
11451148
margin: -2px .24em 0 0;
11461149
padding: 0;
11471150
border: 0;
1151
+ outline: 0;
11481152
background: none;
11491153
font-size: inherit; /* Required for horizontal spacing. */
11501154
vertical-align: middle;
11511155
user-select: none;
11521156
cursor: pointer;
11531157
}
1154
-button.copy-button-flipped {
1158
+button.copy-button-flipped,
1159
+button.copy-button-flipped:hover,
1160
+button.copy-button-flipped:focus,
1161
+button.copy-button-flipped:active {
11551162
/*Note: .16em is suitable for element grouping.*/
11561163
margin: -2px 0 0 .16em;
11571164
}
11581165
button.copy-button span {
11591166
display: block;
11601167
--- src/default.css
+++ src/default.css
@@ -1136,24 +1136,31 @@
1136 white-space: nowrap;
1137 }
1138 label[for] {
1139 cursor: pointer;
1140 }
1141 button.copy-button {
 
 
 
1142 width: 14px;
1143 height: 14px;
1144 /*Note: .24em is slightly smaller than the average width of a normal space.*/
1145 margin: -2px .24em 0 0;
1146 padding: 0;
1147 border: 0;
 
1148 background: none;
1149 font-size: inherit; /* Required for horizontal spacing. */
1150 vertical-align: middle;
1151 user-select: none;
1152 cursor: pointer;
1153 }
1154 button.copy-button-flipped {
 
 
 
1155 /*Note: .16em is suitable for element grouping.*/
1156 margin: -2px 0 0 .16em;
1157 }
1158 button.copy-button span {
1159 display: block;
1160
--- src/default.css
+++ src/default.css
@@ -1136,24 +1136,31 @@
1136 white-space: nowrap;
1137 }
1138 label[for] {
1139 cursor: pointer;
1140 }
1141 button.copy-button,
1142 button.copy-button:hover,
1143 button.copy-button:focus,
1144 button.copy-button:active {
1145 width: 14px;
1146 height: 14px;
1147 /*Note: .24em is slightly smaller than the average width of a normal space.*/
1148 margin: -2px .24em 0 0;
1149 padding: 0;
1150 border: 0;
1151 outline: 0;
1152 background: none;
1153 font-size: inherit; /* Required for horizontal spacing. */
1154 vertical-align: middle;
1155 user-select: none;
1156 cursor: pointer;
1157 }
1158 button.copy-button-flipped,
1159 button.copy-button-flipped:hover,
1160 button.copy-button-flipped:focus,
1161 button.copy-button-flipped:active {
1162 /*Note: .16em is suitable for element grouping.*/
1163 margin: -2px 0 0 .16em;
1164 }
1165 button.copy-button span {
1166 display: block;
1167

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button