aboutsummaryrefslogtreecommitdiff
path: root/src/client/style
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-01-30 13:14:54 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-01-30 13:14:54 +0100
commitf8f06f9fad453bd0737d6ecaa7685e787a42d4d9 (patch)
tree8b7b2dcfc2fd3d705e5eb9dd78c58e34af3dbeae /src/client/style
parentff91688164e3d91b2dd51185ee411b18e56a2751 (diff)
Add styling to week selector
Diffstat (limited to 'src/client/style')
-rw-r--r--src/client/style/_component-week-selector.scss38
-rw-r--r--src/client/style/index.scss1
2 files changed, 39 insertions, 0 deletions
diff --git a/src/client/style/_component-week-selector.scss b/src/client/style/_component-week-selector.scss
new file mode 100644
index 0000000..0d7696b
--- /dev/null
+++ b/src/client/style/_component-week-selector.scss
@@ -0,0 +1,38 @@
+.week-selector {
+ display: flex;
+ padding: 8px;
+ padding-bottom: 0;
+ color: white;
+ align-items: center;
+
+ .text {
+ flex-grow: 1;
+ text-align: center;
+ }
+
+ button {
+ background-color: initial;
+ border: initial;
+ color: inherit;
+ padding: 8px;
+ border-radius: 4px;
+
+ svg {
+ font-size: 2em;
+ }
+
+ &:focus {
+ background-color: #D32F2F;
+ outline: none;
+ }
+
+ &:active {
+ background-color: #B81111;
+ outline: none;
+ }
+
+ &::-moz-focus-inner {
+ border: 0; // Remove the dotted line outline from Firefox
+ }
+ }
+}
diff --git a/src/client/style/index.scss b/src/client/style/index.scss
index 763a329..e6ca14d 100644
--- a/src/client/style/index.scss
+++ b/src/client/style/index.scss
@@ -12,3 +12,4 @@ body {
@import "component-search";
@import "component-help-box";
+@import "component-week-selector";