Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade UI #29

Merged
merged 167 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
bde64dd
add Nunito & Josefin fonts
JuzerShakir Nov 16, 2023
8d2acad
decrease font size of indian rupee logo and space after it
JuzerShakir Nov 16, 2023
fb95d2c
remove font styles
JuzerShakir Nov 16, 2023
3239beb
upgrade bootstrap
JuzerShakir Nov 16, 2023
a254a01
remove font size as its the default
JuzerShakir Nov 16, 2023
a7a1daa
remove bottom margin
JuzerShakir Nov 16, 2023
58bcde2
give link_tag and give similar styles as action buttons
JuzerShakir Nov 16, 2023
d884320
fix depreciated class '.navbar-dark'
JuzerShakir Nov 16, 2023
53fd84f
refactor common logic
JuzerShakir Nov 16, 2023
b1a8c3d
update favicon.ico path
JuzerShakir Nov 18, 2023
8cb8ed0
show fmb logo instead 'FMB' text in navbar
JuzerShakir Nov 18, 2023
2e5a6bb
fix bg color by removing bootstrap class
JuzerShakir Nov 18, 2023
ea0dbb1
reorder classes alphabetically
JuzerShakir Nov 18, 2023
9b928ea
update id name
JuzerShakir Nov 18, 2023
8e02387
reorder classes alphabetically
JuzerShakir Nov 18, 2023
be646ec
rename files appropriately
JuzerShakir Nov 18, 2023
434df2b
remove 'show' prefix from id names
JuzerShakir Nov 18, 2023
5c4a05c
define new class for headers
JuzerShakir Nov 18, 2023
729f945
remove 'all-' ids
JuzerShakir Nov 18, 2023
63a3c42
update border-bottom style
JuzerShakir Nov 18, 2023
9adf4fc
remove 'show-' ids
JuzerShakir Nov 18, 2023
d442817
update locale name from 'id' to 'model'
JuzerShakir Nov 18, 2023
f90b0e0
update styles
JuzerShakir Nov 18, 2023
37711c8
add borders
JuzerShakir Nov 18, 2023
a86d2ef
shift logic of showing thaali count
JuzerShakir Nov 18, 2023
c4a8a44
remove unnecessory styles
JuzerShakir Nov 18, 2023
962f40d
center nav elements
JuzerShakir Nov 18, 2023
e4b397f
define new sass variable and custom style for border
JuzerShakir Nov 18, 2023
2a09a76
new sass variables for black shades
JuzerShakir Nov 18, 2023
5c03483
remove custom margin classes for different devices and add new margin…
JuzerShakir Nov 18, 2023
d6015eb
remove custom m-left class and add flex classes
JuzerShakir Nov 18, 2023
986e578
add space between icon and text
JuzerShakir Nov 18, 2023
da62462
use grid styling which no longer require media query styles
JuzerShakir Nov 18, 2023
5cde16c
give id
JuzerShakir Nov 18, 2023
ad5fa82
remove note
JuzerShakir Nov 18, 2023
a9364fa
add comment
JuzerShakir Nov 18, 2023
a9729be
override default bootstrap colors
JuzerShakir Nov 18, 2023
219732b
apply new color-theme
JuzerShakir Nov 18, 2023
d6b4b8e
active link in navbar to be 'resources'
JuzerShakir Nov 18, 2023
d94eed8
apply gradient button style for 'Create Sabeel' btn
JuzerShakir Nov 18, 2023
36a2037
add 200 font-weight of Nunito font
JuzerShakir Nov 19, 2023
3623880
remove back button
JuzerShakir Nov 19, 2023
cc69265
replace footer styles with bootstrap
JuzerShakir Nov 19, 2023
9826b15
fix erblint errors
JuzerShakir Nov 19, 2023
0bdf000
remove back button partials
JuzerShakir Nov 19, 2023
bd1e5b2
update `light` color
JuzerShakir Nov 19, 2023
ca57ad4
Change bg color of buttons
JuzerShakir Nov 19, 2023
91a59f2
stylize 'new thaali' button
JuzerShakir Nov 19, 2023
196e3d2
update stylings for turbo modal
JuzerShakir Nov 19, 2023
759cb52
add bottom padding to contact
JuzerShakir Nov 19, 2023
187fba2
replace custom styling with bootstrap styles
JuzerShakir Nov 19, 2023
0074dbf
add custom styles for social buttons
JuzerShakir Nov 19, 2023
d743319
replace`c-bg` styling with bootstrap styles
JuzerShakir Nov 19, 2023
fe249be
add animation for flash message
JuzerShakir Nov 19, 2023
5703b74
hide flash message after 5secs
JuzerShakir Nov 19, 2023
fa911b5
replace rgb with bootstrap colors
JuzerShakir Nov 19, 2023
6df781c
replace flash css styles with bootstrap
JuzerShakir Nov 19, 2023
a802e3a
update test suites with css changes
JuzerShakir Nov 19, 2023
1ac87d8
replace html font styling elements with bootstrap styles
JuzerShakir Nov 19, 2023
42a2a33
replace button_to with link_to tag
JuzerShakir Nov 19, 2023
25584aa
remove thaali number column
JuzerShakir Nov 19, 2023
1a5940e
add bottom margin
JuzerShakir Nov 19, 2023
2bed484
add Nunito 400 font-weight
JuzerShakir Nov 19, 2023
8f4d18a
update border styles
JuzerShakir Nov 19, 2023
8e7762e
remove 2 custom color variables
JuzerShakir Nov 19, 2023
e6596a5
add Nunito font-weight 500
JuzerShakir Nov 19, 2023
d7f4606
show 1 validation err msg at a time for an attr
JuzerShakir Nov 20, 2023
d340db0
use horizontal forms by default
JuzerShakir Nov 20, 2023
0fe7bce
new form stylings
JuzerShakir Nov 20, 2023
1de7858
change label name
JuzerShakir Nov 20, 2023
41ccd56
remove 'required' tick
JuzerShakir Nov 20, 2023
54fdaf4
update margins
JuzerShakir Nov 20, 2023
62204a2
remove thaali preload
JuzerShakir Nov 20, 2023
3ac3749
show amount in numerical form with rupee symbol
JuzerShakir Nov 20, 2023
842f4d0
add custom styling for select form attributes
JuzerShakir Nov 20, 2023
2c21f4f
modify select wrapper
JuzerShakir Nov 20, 2023
5f61ccc
add custom focus-ring styles
JuzerShakir Nov 20, 2023
f8fa533
remove flex property fr horizontal select attrbs
JuzerShakir Nov 20, 2023
6e6df8c
wrappers being used to be shifted at top
JuzerShakir Nov 20, 2023
b471bf5
set default values for form select attributes
JuzerShakir Nov 20, 2023
c19b24b
Revert "set default values for form select attributes"
JuzerShakir Nov 20, 2023
b972e67
update flash messages
JuzerShakir Nov 20, 2023
d989800
update attribute names in forms
JuzerShakir Nov 20, 2023
f386f01
add breakpoint styles
JuzerShakir Nov 20, 2023
f0253ac
returns amount of persisted records
JuzerShakir Nov 20, 2023
e2831d7
remove flex for attribute label
JuzerShakir Nov 20, 2023
f27d8bd
update font color if attr has no validation error
JuzerShakir Nov 20, 2023
580b079
use radio-buttons for collection fields
JuzerShakir Nov 20, 2023
df7d7d2
update `form-check-input-checked-bg-color`
JuzerShakir Nov 21, 2023
6c8defa
replace custom styles with bootstrap
JuzerShakir Nov 21, 2023
cfd75e5
add comment of font sizes imported
JuzerShakir Nov 21, 2023
e23b251
define new `lighter`color var
JuzerShakir Nov 21, 2023
e772d98
replace bootstrap styles with sass vars
JuzerShakir Nov 21, 2023
155d936
fix border color for radio buttons
JuzerShakir Nov 21, 2023
60abadb
update design for search
JuzerShakir Nov 21, 2023
e5af809
responsive search
JuzerShakir Nov 21, 2023
5aca70b
update font styles for search
JuzerShakir Nov 21, 2023
b8eefa6
use font-awesome search icon with color
JuzerShakir Nov 21, 2023
d3c135f
change search icon color on focus
JuzerShakir Nov 21, 2023
aaea337
update padding for buttons
JuzerShakir Nov 21, 2023
0cf1829
update font-styles
JuzerShakir Nov 21, 2023
fcf4e20
update bg opacity
JuzerShakir Nov 21, 2023
ff69c52
add styles to social btns for active state
JuzerShakir Nov 21, 2023
da00ae4
remove bootstrap-icon package
JuzerShakir Nov 22, 2023
6e8c71f
upgrade font-awesome package to `6.4.2`
JuzerShakir Nov 22, 2023
e8c73f3
upgrade stimulus package to 3.2.2
JuzerShakir Nov 22, 2023
9c11f25
change source of debounce package to yarn
JuzerShakir Nov 22, 2023
4c7c97d
upgrade esbuild package to `0.16.17` & source
JuzerShakir Nov 22, 2023
302e35f
upgrade sass package to `1.69.5`
JuzerShakir Nov 22, 2023
074513b
replace `html_safe` with `content_tag`
JuzerShakir Nov 22, 2023
aeb69a4
refactored flash message logic
JuzerShakir Nov 22, 2023
5f367ff
change contact btn styles
JuzerShakir Nov 22, 2023
f5c6aa8
change method name
JuzerShakir Nov 22, 2023
8ba4de3
remove text styles
JuzerShakir Nov 22, 2023
d7c527c
center content with grid
JuzerShakir Nov 22, 2023
9636dae
new class for default styling btn
JuzerShakir Nov 22, 2023
ffa5189
apply `default-btn` styling
JuzerShakir Nov 22, 2023
2e46d41
refactor `from-control` styles
JuzerShakir Nov 22, 2023
d0b7567
reorder alphabetically
JuzerShakir Nov 22, 2023
0d896ce
use `set_url` method
JuzerShakir Nov 22, 2023
7a7dbd7
update method name to `generate_pdf_of`
JuzerShakir Nov 22, 2023
ab24434
update method name
JuzerShakir Nov 22, 2023
b7bfb62
update param name
JuzerShakir Nov 22, 2023
936cd58
refactor logic for gen fa btns
JuzerShakir Nov 22, 2023
507c60b
shift `input` styles to element style category
JuzerShakir Nov 22, 2023
be4c03b
use 7-1 pattern for manageable CSS
JuzerShakir Nov 23, 2023
672dd4a
define custom font size
JuzerShakir Nov 23, 2023
efae70e
replace custom css classes with bootstrap
JuzerShakir Nov 23, 2023
928e2dd
redefine id with class
JuzerShakir Nov 23, 2023
a2d6da1
remove empty space
JuzerShakir Nov 23, 2023
c2a5058
load `typography` file before bootstrap
JuzerShakir Nov 23, 2023
fb6b2ea
remove
JuzerShakir Nov 23, 2023
1203016
set position fixed for flash message
JuzerShakir Nov 23, 2023
2116dd3
upgrade `turbo-rails`
JuzerShakir Nov 23, 2023
7f469c6
FIX `content missing` on visiting `show` page
JuzerShakir Nov 24, 2023
7265c32
FIX duplicate content in turbo-streams
JuzerShakir Nov 24, 2023
579a95c
modify `sabeel` view within its show page
JuzerShakir Nov 29, 2023
17d7e2d
modify `transaction` view in its show page
JuzerShakir Nov 30, 2023
4245d3f
modify `user` view in its show page
JuzerShakir Nov 30, 2023
ccc4917
add 'non-breaking space' character entity
JuzerShakir Nov 30, 2023
df43515
modify `thaali` view in its show page
JuzerShakir Dec 1, 2023
ddf15e8
update button styles
JuzerShakir Dec 1, 2023
3eec799
update login form style and remove `ITS` hint
JuzerShakir Dec 1, 2023
df0f11c
update contact UI
JuzerShakir Dec 1, 2023
76763c5
remove feature details
JuzerShakir Dec 1, 2023
4a3f93d
fix erblint errors
JuzerShakir Dec 1, 2023
636cb41
center text inside nav dropdowns
JuzerShakir Dec 1, 2023
aa45648
change path
JuzerShakir Dec 1, 2023
faa498a
show navbar to logged out users
JuzerShakir Dec 1, 2023
5315efe
fix erblint errors
JuzerShakir Dec 1, 2023
4c392aa
remove unnecessary assets
JuzerShakir Dec 2, 2023
77f2b5f
disable text selection
JuzerShakir Dec 2, 2023
6a91fde
show guest credentials as attribute hint
JuzerShakir Dec 2, 2023
0b9660c
Rename `Home` to `All Users`
JuzerShakir Dec 2, 2023
daf34f5
fix linting error
JuzerShakir Dec 4, 2023
464225b
increase heading font-size
JuzerShakir Dec 9, 2023
f0befb0
align login form dynamically centered vertically
JuzerShakir Dec 9, 2023
ebcd41d
fix erblint error
JuzerShakir Dec 9, 2023
b95b5bc
rename flash-msg helper
JuzerShakir Dec 9, 2023
7d8a806
decrease size of rupee symbol
JuzerShakir Dec 9, 2023
1655e60
show balance amount in success color if dues cleared
JuzerShakir Dec 9, 2023
97d803a
rename helper method
JuzerShakir Dec 9, 2023
a37ad58
show 'Takhmeen Complete' message if dues cleared
JuzerShakir Dec 9, 2023
c3db4e1
alphabetically order helper methods
JuzerShakir Dec 9, 2023
e92590d
use `i` tag to display font-awesome icons
JuzerShakir Dec 9, 2023
ba543f9
add `space` keyword arg
JuzerShakir Dec 9, 2023
76def4d
separate logic for flash icon
JuzerShakir Dec 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ gem "sentry-rails", "~> 5.13.0"
gem "sentry-ruby", "~> 5.13.0"
gem "simple_form", "~> 5.3.0"
gem "stimulus-rails"
gem "turbo-rails"
gem "turbo-rails", "~> 1.5.0"
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
gem "validates_email_format_of", "~> 1.7.2"
gem "validates_timeliness", "~> 7.0.0.beta1"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ GEM
timeliness (0.4.5)
timeout (0.4.1)
ttfunk (1.7.0)
turbo-rails (1.3.2)
turbo-rails (1.5.0)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
Expand Down Expand Up @@ -425,7 +425,7 @@ DEPENDENCIES
simplecov
standard
stimulus-rails
turbo-rails
turbo-rails (~> 1.5.0)
tzinfo-data
validates_email_format_of (~> 1.7.2)
validates_timeliness (~> 7.0.0.beta1)
Expand Down
Binary file removed app/assets/images/authorization-64x64.png
Binary file not shown.
Binary file removed app/assets/images/database-64x64.png
Binary file not shown.
Binary file removed app/assets/images/distribution-64x64.png
Binary file not shown.
File renamed without changes.
Binary file removed app/assets/images/features-64x64.png
Binary file not shown.
Binary file added app/assets/images/its-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/assets/images/report-64x64.png
Binary file not shown.
Binary file removed app/assets/images/responsive-design-64x64.png
Binary file not shown.
Binary file added app/assets/images/sabeel-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions app/assets/stylesheets/_components.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.create-sabeel-btn {
background-image: linear-gradient(
to right,
$primary 0%,
$success 51%,
$secondary 100%
);
transition: 0.7s;
background-size: 200% auto;

&:hover {
background-position: right center;
color: white; /* change the direction of the change here */
text-decoration: none;
}
}

// styles defined here will take precedence over the in-line styles defined
.default-btn {
@extend .col-7;
@extend .col-md-3;
@extend .btn;
@extend .rounded-pill;
@extend .fw-medium;
@extend .mb-3;
}
8 changes: 8 additions & 0 deletions app/assets/stylesheets/abstracts/_themes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$primary: #1f2605 !default;
$secondary: #53900f !default;
$info: #a4a71e !default;
$success: #1f6521 !default;
$danger: #6f2232 !default;
$dropdown-bg: $primary !default;
$light: #d6ce15 !default;
$lighter: #cac886 !default;
9 changes: 9 additions & 0 deletions app/assets/stylesheets/abstracts/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// * Form defaults
$input-color: $secondary;
$input-placeholder-color: $lighter;
$input-font-weight: 500;
$input-border-color: $light;
$input-focus-border-color: $secondary;
$input-border-width: 2px;
$form-check-input-checked-bg-color: $success;
$form-check-input-checked-border-color: $success;
168 changes: 20 additions & 148 deletions app/assets/stylesheets/application.bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,150 +1,22 @@
@import "bootstrap/scss/bootstrap";
@import "bootstrap-icons/font/bootstrap-icons";

body {
background: url("background.png") no-repeat center center;
background-size: cover;
background-attachment: fixed;
font-family: lato, sans-serif;
}

// for mobile-devices
@media (max-width: 767px) {
.button,
.button-contact {
width: 100%;
}

.about {
margin-top: 4rem;
}
}

// for non-mobile-devices
@media (min-width: 767px) {
.button {
width: 35%;
}

.m-left {
margin-left: 10%;
}

.button-contact {
width: 25%;
}

.desktop-mt {
margin-top: 4rem;
}
}

.note {
font-size: 0.7rem;
}

.c-bg {
background-color: rgba(255, 255, 255, 0.63);
}

.about {
background-color: rgba(252, 244, 253, 0.5);
border-color: rgba(251, 224, 253);
border-radius: 2px;
}

.c-shadow {
box-shadow: 0px -7px 10px rgba(0, 0, 0, 0.15);
}

.error-message {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
h1 {
font-size: 15vw;
}
}

#flash {
position: absolute;
z-index: 2;
right: 10px;
background-color: rgba(0, 0, 0, 0.737);
font-size: larger;
padding: 15px;
border-radius: 25px;
}
// ? Using the 7-1 pattern for a manageable CSS
// More info here: https://openclassrooms.com/en/courses/5625786-produce-maintainable-css-with-sass/5723581-use-the-7-1-pattern-for-a-manageable-codebase

#flash-success {
color: rgb(0, 255, 0);
}
// ! IMPORTANT - load these files before any other css files
@import "abstracts/themes";
@import "abstracts/variables";
@import "base/typography";

#flash-alert {
color: rgb(255, 0, 0);
}

#flash-notice {
color: rgb(255, 255, 0);
}

#show-header-transaction {
background-color: #d7fcd7;
}

#show-transaction {
background-color: #d7fcd7;
}

#show-thaali {
background-color: #d4d4d4;
}

#show-header-thaali {
background-color: #afeeee;
}

#show-sabeel,
#show-user {
background-color: #f7e6bc;
}

#show-header-sabeel {
background-color: #ffefd5;
}

#show-header-users {
background-color: #ffa07a;
}

#all-sabeels {
border-style: solid;
border-width: 2px;
border-color: rgb(255, 193, 7);
}

#all-thaalis {
border-style: solid;
border-width: 2px;
border-color: rgb(13, 202, 240);
}

#all-transactions {
border-style: solid;
border-width: 2px;
border-color: rgb(25, 135, 84);
}

#all-users {
border-style: solid;
border-width: 2px;
border-color: rgb(220, 53, 69);
}

#footer {
background-color: rgb(33, 37, 41);
font-size: 14px;
}
// * load other sass files from here
@import "bootstrap/scss/bootstrap";
// base
@import "base/base";
@import "base/utilities";
@import "base/animations";
// layouts
@import "layouts/flash";
@import "layouts/form";
@import "layouts/index";
@import "layouts/search";
@import "layouts/show";

@import "components";
14 changes: 14 additions & 0 deletions app/assets/stylesheets/base/_animations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@keyframes flash {
0% {
transform: translateX(-15rem);
}
35% {
transform: translateX(1.5rem);
}
65% {
transform: translateX(1.5rem);
}
100% {
transform: translateX(-15rem);
}
}
28 changes: 28 additions & 0 deletions app/assets/stylesheets/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
body {
background: url("background.png") no-repeat center center;
background-size: cover;
background-attachment: fixed;
}

input[type="search"] {
&::-webkit-search-decoration,
&::-webkit-search-cancel-button,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration {
display: none;
}
}

.form-control {
&::-moz-placeholder {
opacity: 0.85;
}

&:-ms-input-placeholder {
opacity: 0.85;
}

&::-webkit-input-placeholder {
opacity: 0.85;
}
}
18 changes: 18 additions & 0 deletions app/assets/stylesheets/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// * Josefin Sans (400) & Nunito (200, 300, 400, 500)
// source: https://fonts.google.com/specimen/Nunito
// source: https://fonts.google.com/specimen/Josefin+Sans
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Nunito:wght@200;300;400;500&display=swap");

$font-family-base: "Nunito", sans-serif;
$font-weight-base: 300;

.heading {
font-family: "Josefin Sans", sans-serif;
font-weight: 400;
text-align: center;
color: $primary;
}

.fs-bigger {
font-size: 15dvh !important;
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/base/_utilities.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.mt-6 {
margin-top: 4rem !important;
}
16 changes: 16 additions & 0 deletions app/assets/stylesheets/layouts/_flash.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#flash {
transform: translateX(-15rem);
animation: flash 5s;

&-alert {
color: $red;
}

&-notice {
color: $yellow;
}

&-success {
color: $secondary;
}
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/layouts/_form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#form-login {
height: 70dvh !important;
}
8 changes: 8 additions & 0 deletions app/assets/stylesheets/layouts/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#sabeels,
#thaalis,
#transactions,
#users {
.row:not(:last-child) {
border-bottom: 2px solid $secondary;
}
}
29 changes: 29 additions & 0 deletions app/assets/stylesheets/layouts/_search.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#search {
input {
padding: 0.75rem 1.5rem;

background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' fill='%23a4a71e' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: 18px 18px;
background-position: 94% center;

background-color: transparent;
backface-visibility: hidden;

border-radius: 2rem;
transform-style: preserve-3d;
transition: all 300ms ease-in-out;

&:hover,
&:focus {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' fill='%2353900f' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");
padding: 0.75rem 0.5rem;
outline: 0;
border: 2px solid transparent;
border-bottom: 2px solid $input-focus-border-color;
border-radius: 0;
box-shadow: none;
background-position: 98% center;
}
}
}
Loading