]> BookStack Code Mirror - bookstack/commitdiff
Design: Updated buttons to be a bit friendlier 4728/head
authorDan Brown <redacted>
Sat, 16 Dec 2023 14:03:12 +0000 (14:03 +0000)
committerDan Brown <redacted>
Sat, 16 Dec 2023 14:03:12 +0000 (14:03 +0000)
Old all-caps button design made them a bit angry, and kinda odd and
outdated. This updates them to use their original source text casing
(which may help for translation variations) while being a bit rounder
with a better defined shadow for outline buttons.

resources/sass/_buttons.scss

index 7fa7a65b195847f04c0715c34e2ceac397208130..e629e772662f27ee4d7854dc078bcc75ecb9c5dd 100644 (file)
@@ -14,7 +14,7 @@ button {
   display: inline-block;
   font-weight: 400;
   outline: 0;
   display: inline-block;
   font-weight: 400;
   outline: 0;
-  border-radius: 2px;
+  border-radius: 4px;
   cursor: pointer;
   transition: background-color ease-in-out 120ms,
     filter ease-in-out 120ms,
   cursor: pointer;
   transition: background-color ease-in-out 120ms,
     filter ease-in-out 120ms,
@@ -22,7 +22,6 @@ button {
   box-shadow: none;
   background-color: var(--color-primary);
   color: #FFF;
   box-shadow: none;
   background-color: var(--color-primary);
   color: #FFF;
-  text-transform: uppercase;
   border: 1px solid var(--color-primary);
   vertical-align: top;
   &:hover, &:focus, &:active {
   border: 1px solid var(--color-primary);
   vertical-align: top;
   &:hover, &:focus, &:active {
@@ -52,10 +51,11 @@ button {
   border: 1px solid;
   @include lightDark(border-color, #CCC, #666);
   &:hover, &:focus, &:active {
   border: 1px solid;
   @include lightDark(border-color, #CCC, #666);
   &:hover, &:focus, &:active {
+    @include lightDark(color, #444, #BBB);
     border: 1px solid #CCC;
     border: 1px solid #CCC;
-    box-shadow: none;
+    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
     background-color: #F2F2F2;
     background-color: #F2F2F2;
-    @include lightDark(background-color, #f2f2f2, #555);
+    @include lightDark(background-color, #f8f8f8, #444);
     filter: none;
   }
   &:active {
     filter: none;
   }
   &:active {