Skip to content

Commit

Permalink
Minor CSS tweaks and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pilar6195 committed May 18, 2019
1 parent 782c63a commit 2576988
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions src/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@

body {
background: #f7f8f9 !important;
padding: 5px;
}

/* == == */

.btn-group.btn-group-block {
display: flex;
body#firefox {
padding: 5px;
}

.btn-group {
display: inline-flex;
display: flex;
flex-wrap: wrap;
}

Expand All @@ -37,16 +34,17 @@
margin-left: -.05rem;
}

.btn-group.btn-group-block .btn {
.btn-group .btn {
flex: 1 0 0;
}

.btn-group .btn {
flex: 1 0 auto;
.btn-group .btn.active,
.btn-group .btn:active,
.btn-group .btn:focus,
.btn-group .btn:hover {
z-index: 1;
}

/* == == */

.btn {
-webkit-appearance: none;
-moz-appearance: none;
Expand All @@ -67,7 +65,6 @@
transition: background .2s,border .2s,box-shadow .2s,color .2s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
vertical-align: middle;
white-space: nowrap;
Expand All @@ -81,22 +78,16 @@
height: 1.5rem;
}

.btn-group .btn {
flex: 1 0 auto;
}

.btn.active, .btn:active {
.btn.active,
.btn:active {
background: #dc6990 !important;
border-color: #d75481 !important;
color: #fff !important;
text-decoration: none !important;
}

.btn-group .btn.active, .btn-group .btn:active, .btn-group .btn:focus, .btn-group .btn:hover {
z-index: 1;
}

.btn:focus, .btn:hover {
.btn:focus,
.btn:hover {
background: #fff;
border-color: #dc6990;
text-decoration: none;
Expand All @@ -109,15 +100,15 @@
</head>
<body>
<h2>Expires</h2>
<div id="expires" class="btn-group btn-group-block">
<div id="expires" class="btn-group">
<button class="btn" value="null">Never</button>
<button class="btn" value="day">1 day</button>
<button class="btn" value="week">1 week</button>
<button class="btn" value="month">1 month</button>
<button class="btn" value="year">1 year</button>
</div>
<h2>URL Theme</h2>
<div id="type" class="btn-group btn-group-block">
<div id="type" class="btn-group">
<button class="btn" value="null">Short</button>
<button class="btn" value="words">Words</button>
</div>
Expand Down

0 comments on commit 2576988

Please sign in to comment.