From 8d5bdc061dc153bf4db936c2d1eec225b0c7d500 Mon Sep 17 00:00:00 2001 From: Kacper Donat Date: Sun, 9 Feb 2020 15:56:29 +0100 Subject: [PATCH] Restyle inputs --- resources/components/finder.html | 2 +- resources/styles/_common.scss | 5 ----- resources/styles/_form.scss | 32 +++++++++++++++++++++++++++- templates/app.html.twig | 36 +++++++++++++++++++++----------- 4 files changed, 56 insertions(+), 19 deletions(-) diff --git a/resources/components/finder.html b/resources/components/finder.html index ac9798c..6a7d452 100644 --- a/resources/components/finder.html +++ b/resources/components/finder.html @@ -1,5 +1,5 @@
- +
diff --git a/resources/styles/_common.scss b/resources/styles/_common.scss index e58e558..3ea5003 100644 --- a/resources/styles/_common.scss +++ b/resources/styles/_common.scss @@ -38,7 +38,6 @@ transition: height 250ms ease; will-change: height; - box-sizing: padding-box; } .flex { @@ -94,10 +93,6 @@ } } -svg.svg-inline--fa { - //transform: rotate(360deg) -} - .btn-unstyled { padding: 0; margin: 0; diff --git a/resources/styles/_form.scss b/resources/styles/_form.scss index 501fd56..1101da9 100644 --- a/resources/styles/_form.scss +++ b/resources/styles/_form.scss @@ -1,11 +1,41 @@ label { font-weight: bold; - font-size: .8rem; margin-bottom: 0; margin-top: -0.2rem; display: block; } +.label-sm { + font-size: .8rem; +} + .form-group:last-child { margin-bottom: 0; } + +.form-control, .input-group-text { + background: rgba($dark, .06); + border: none; + border-bottom: 2px solid $dark; + + &:focus { + background: rgba($dark, .06); + } +} + +.form-control--framed { + background: transparent; + border: 1px solid $text-muted; + + &:focus { + background-color: transparent; + } +} + +.input-group-append { + margin-left: 0; +} + +.input-group-prepend { + margin-right: 0; +} diff --git a/templates/app.html.twig b/templates/app.html.twig index 1fb8bfb..327f004 100644 --- a/templates/app.html.twig +++ b/templates/app.html.twig @@ -11,7 +11,7 @@ Komunikaty {{ '{{ messages.count }}' }} - @@ -37,10 +37,16 @@
- co - - - s + +
+ +
+ s +
+
@@ -57,7 +63,7 @@ Odjazdy - @@ -68,17 +74,23 @@

-

- co - - - s + +
+ +
+ s +
+