From ea8f3470850f6b405b851ab2c799ab65970c9ec2 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Sat, 7 Oct 2023 23:54:26 -0400 Subject: [PATCH] lots of styling --- benchtop-fe/src/buttons.css | 51 ++++++ .../CalibrationDeviceForm.vue | 7 +- .../NewCalibrationDeviceForm.vue | 6 +- benchtop-fe/src/components/CustomerForm.vue | 8 +- .../components/Instrument/InstrumentForm.vue | 7 +- .../Instrument/NewInstrumentForm.vue | 39 +++-- benchtop-fe/src/components/Sheet.vue | 7 +- benchtop-fe/src/components/UploadForm.vue | 40 ++--- benchtop-fe/src/main.js | 2 + benchtop-fe/src/radio.css | 145 ++++++++++++++++++ benchtop-fe/src/style.css | 39 ++++- 11 files changed, 302 insertions(+), 49 deletions(-) create mode 100644 benchtop-fe/src/buttons.css create mode 100644 benchtop-fe/src/radio.css diff --git a/benchtop-fe/src/buttons.css b/benchtop-fe/src/buttons.css new file mode 100644 index 0000000..a63d13b --- /dev/null +++ b/benchtop-fe/src/buttons.css @@ -0,0 +1,51 @@ +/* CSS */ +.custom-button { + align-items: center; + appearance: none; + background-color: #FCFCFD; + border-radius: 4px; + border-width: 0; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; + box-sizing: border-box; + color: #36395A; + cursor: pointer; + display: inline-flex; + font-family: "JetBrains Mono",monospace; + height: 48px; + justify-content: center; + line-height: 1; + list-style: none; + overflow: hidden; + padding-left: 16px; + padding-right: 16px; + position: relative; + text-align: left; + text-decoration: none; + transition: box-shadow .15s,transform .15s; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + white-space: nowrap; + will-change: box-shadow,transform; + font-size: 18px; +} + +.custom-button:focus { + box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; +} + +.custom-button:hover { + box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; + transform: translateY(-2px); +} + +.custom-button:active { + box-shadow: #D6D6E7 0 3px 7px inset; + transform: translateY(2px); +} +.custom-button.red { + height: 32px; + background-color: #f00; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#fdd 0 -3px 0 inset; + +} \ No newline at end of file diff --git a/benchtop-fe/src/components/CalibrationDevice/CalibrationDeviceForm.vue b/benchtop-fe/src/components/CalibrationDevice/CalibrationDeviceForm.vue index f166c63..a9eac7c 100644 --- a/benchtop-fe/src/components/CalibrationDevice/CalibrationDeviceForm.vue +++ b/benchtop-fe/src/components/CalibrationDevice/CalibrationDeviceForm.vue @@ -1,7 +1,7 @@