diff --git a/src/digimarks/static/css/digui.css b/src/digimarks/static/css/digui.css index 4a42501..1ec4c5d 100644 --- a/src/digimarks/static/css/digui.css +++ b/src/digimarks/static/css/digui.css @@ -229,6 +229,7 @@ ol li::marker, ul li::marker { .active { background-color: var(--color-highlight); color: var(--text-color); + transition-duration: 0.2s; } /* Special button */ @@ -254,6 +255,7 @@ button, .button, input, select, textarea { -webkit-user-select: none; touch-action: manipulation; vertical-align: middle; + transition-duration: 0.2s; } button, .button, input, select, textarea, table { @@ -267,6 +269,7 @@ button:hover, .button:hover { /*background-color: #d57803;*/ background-color: var(--color-highlight); filter: brightness(80%); + transition-duration: 0.2s; } button:focus, .button:focus { @@ -303,6 +306,22 @@ button:focus, .button:focus { filter: brightness(80%); } +/* Toggle buttons */ + +.button-group { + display: inline-flex; + overflow: hidden; + border: var(--border-width) solid var(--border-color); + border-radius: var(--border-radius); +} + +.button-group button { + /* Reset borders because the buttons are mashed together and the group has its own border */ + border: none; + border-radius: 0; + box-shadow: none !important; +} + /* Table */ th { @@ -334,6 +353,7 @@ th, td { [data-theme='nebula'] .card, [data-theme='nebula'] button, [data-theme='nebula'] .button, +[data-theme='nebula'] .button-group, [data-theme='nebula'] input, [data-theme='nebula'] select, [data-theme='nebula'] textarea, @@ -342,6 +362,7 @@ th, td { [data-theme='nebula-dark'] .card, [data-theme='nebula-dark'] button, [data-theme='nebula-dark'] .button, +[data-theme='nebula-dark'] .button-group, [data-theme='nebula-dark'] input, [data-theme='nebula-dark'] select, [data-theme='nebula-dark'] textarea, diff --git a/src/digimarks/templates/user_index.html b/src/digimarks/templates/user_index.html index df9f2ad..b3f1eb7 100644 --- a/src/digimarks/templates/user_index.html +++ b/src/digimarks/templates/user_index.html @@ -11,9 +11,14 @@