Skip to content

Commit 0454f5e

Browse files
committed
Make the CSS-styled button feel a bit nicer to use by flattening the
active state, also introduce some temporary styles until browsers catch up with the standard syntax - Legacy-Id: 5283
1 parent 9ca9eb3 commit 0454f5e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

static/css/base2.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ table.milestones .doc { display: block; padding-left: 1em; }
206206

207207
.stream-state .milestone { display: inline-block; font-size: smaller; background-color: #d5dde6; padding: 0 0.2em; margin-left: 0.3em; }
208208

209-
.button { display: inline-block; font-weight: normal; background: #eee; background: linear-gradient(#fff, #ddd); border: 1px solid #666; border-radius: 3px; color: #222; padding: 4px 12px; text-align: center; text-decoration: none; outline: none; transition-duration: 0.2s; cursor: pointer; margin-right: 0.3em; }
210-
.button:hover { background: #ddd; background: linear-gradient(#eee, #ccc); color: #111; }
211-
.button:active { background: #ccc; background: linear-gradient(#ddd, #bbb); color: #000; }
209+
.button {
210+
display: inline-block; padding: 4px 12px; margin-right: 0.3em;
211+
color: #222; font-weight: normal; text-align: center; text-decoration: none; outline: none; cursor: pointer;
212+
background: #eee; background: linear-gradient(#fff, #ddd); background: -webkit-linear-gradient(#fff, #ddd); background: -moz-linear-gradient(#fff, #ddd);
213+
border: 1px solid #666; border-radius: 3px;
214+
transition-duration: 0.2s;
215+
}
216+
.button:hover { color: #111; background: #ddd; background: linear-gradient(#eee, #ccc); background: -webkit-linear-gradient(#eee, #ccc); background: -moz-linear-gradient(#eee, #ccc); }
217+
.button:active { color: #000; background: #ccc; }

0 commit comments

Comments
 (0)