From cfcc9890ad4230eb54353828052ca69e295f6de4 Mon Sep 17 00:00:00 2001 From: Mateusz Nowak Date: Fri, 20 Sep 2024 11:51:54 +0200 Subject: [PATCH] recruit angel view- to refactor --- .../stylesheets/creature_recruitment.scss | 58 ++++++++++++++++++- .../dwellings/index.html.erb | 6 +- 2 files changed, 60 insertions(+), 4 deletions(-) diff --git a/heroesofddd_rails_application/app/assets/stylesheets/creature_recruitment.scss b/heroesofddd_rails_application/app/assets/stylesheets/creature_recruitment.scss index fdfacc7..0e776a9 100644 --- a/heroesofddd_rails_application/app/assets/stylesheets/creature_recruitment.scss +++ b/heroesofddd_rails_application/app/assets/stylesheets/creature_recruitment.scss @@ -11,7 +11,7 @@ } .recruitment-component { - border: #831A1C 16px; + border: 16px solid #831A1C; display: flex; justify-content: center; align-items: center; @@ -84,10 +84,13 @@ display: flex; padding-left: 1rem; padding-right: 1rem; - width: 250px; justify-content: space-between; } +.controls__center { + width: 250px; +} + .creatures__count { * { color: #F8F0D6; @@ -99,4 +102,55 @@ padding-bottom: 0.4rem; } width: 100px; +} + +.buttons { + margin-top: 1.4rem; + button { + all: unset; + cursor: pointer; + } + width: 240px; + display: flex; + justify-content: space-between; +} + + +//slider + +.creatures__count-slider { + padding-right: 1rem; + padding-left: 1rem; + padding-top: 1rem; +} + +.slider { + -webkit-appearance: none; + width: 100%; + height: 25px; + background: black; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; +} + +.slider:hover { + opacity: 1; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + appearance: none; + width: 25px; + height: 25px; + background: #221811; + cursor: pointer; +} + +.slider::-moz-range-thumb { + width: 25px; + height: 25px; + background: #221811; + cursor: pointer; } \ No newline at end of file diff --git a/heroesofddd_rails_application/app/views/heroes/creature_recruitment/dwellings/index.html.erb b/heroesofddd_rails_application/app/views/heroes/creature_recruitment/dwellings/index.html.erb index 66027c5..8fdb8eb 100644 --- a/heroesofddd_rails_application/app/views/heroes/creature_recruitment/dwellings/index.html.erb +++ b/heroesofddd_rails_application/app/views/heroes/creature_recruitment/dwellings/index.html.erb @@ -28,7 +28,9 @@
2
-
+
+ +

Total Cost

@@ -44,7 +46,6 @@
-
+ \ No newline at end of file