summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-06-11 23:08:19 +0300
committerYuval Adam <yuval@y3xz.com>2015-06-11 23:08:19 +0300
commit9738ebafd811c77d20a0e3f0f7b6f1876ed53532 (patch)
tree6c87445ca935d7ff9a9f319f057b13501e49a99a /client
parentad81865ee5d29cbb8b3a669c2314cbb8fff4caf9 (diff)
Date screen uses flexbox
Diffstat (limited to 'client')
-rw-r--r--client/button.js2
-rw-r--r--client/colors.less53
-rw-r--r--client/templates/dates.html4
3 files changed, 33 insertions, 26 deletions
diff --git a/client/button.js b/client/button.js
index 1cdf9bc..293c715 100644
--- a/client/button.js
+++ b/client/button.js
@@ -33,7 +33,7 @@ Template.dates.events({
Template.dates.helpers({
months: [
[{val: 1, name: 'Jan.'}, {val: 2, name: 'Feb.'}, {val: 3, name: 'March'}],
- [{val: 4, name: 'Apr.'}, {val: 5, name: 'May'}, {val: 6, name: 'June'}],
+ [{val: 4, name: 'April'}, {val: 5, name: 'May'}, {val: 6, name: 'June'}],
[{val: 7, name: 'July'}, {val: 8, name: 'Aug.'}, {val: 9, name: 'Sept.'}],
[{val: 10, name: 'Oct.'}, {val: 11, name: 'Nov.'}, {val: 12, name: 'Dec.'}],
],
diff --git a/client/colors.less b/client/colors.less
index 8d403db..39a95eb 100644
--- a/client/colors.less
+++ b/client/colors.less
@@ -10,7 +10,7 @@ body {
text-align: center;
flex: 0 0 auto;
h1 {
- color: #67C288;
+ color: #2636F9;
font-size: 3.5em;
font-weight: bold;
}
@@ -18,16 +18,18 @@ body {
margin: 30px 10px 0px 10px;
font-size: 2em;
font-weight: bold;
+ color: #333;
}
button.login {
margin-top: 30px;
- color: #fff;
+ color: #2636F9;
font-size: 1.3em;
- background-color: #67C288;
+ background-color: white;
padding: 7px 35px;
border: 0px;
&:hover, &:active {
- background-color: #5DA577;
+ color: white;
+ background-color: #2636F9;
}
}
}
@@ -35,45 +37,50 @@ body {
div.dates-wrapper {
div.dates {
h2 {
- color: #4589F7;
+ color: #2636F9;
font-size: 3.3em;
font-weight: bold;
text-align: center;
}
form {
div.month-row {
- padding: 40px;
- label.radio-inline {
- width: 90%;
- text-align: center;
- color: #333;
- border: 1px solid #333;
- padding: 9px;
- font-size: 2.2em;
- }
- input[type="radio"] {
- display: none;
- &:checked + label.radio-inline {
- color: #fff;
- background-color: #4589F7;
- border: 0px;
+ display: -webkit-flex;
+ display: flex;
+ -webkit-justify-content: center;
+ justify-content: center;
+ div.month-button {
+ -webkit-flex-grow: 1;
+ flex-grow: 1;
+ label.radio-inline {
+ text-align: center;
+ color: #333;
+ padding: 10px;
+ font-size: 1.2em;
+ width: 100%;
+ }
+ input[type="radio"] {
+ display: none;
+ &:checked + label.radio-inline {
+ color: #fff;
+ background-color: #4589F7;
+ border: 0px;
+ }
}
}
}
div.years {
- margin-top: 40px;
+ margin-top: 20px;
text-align: center;
label.radio-inline {
color: #333;
padding: 9px;
- font-size: 2.2em;
+ font-size: 1.6em;
}
input[type="radio"] {
display: none;
&:checked + label.radio-inline {
color: #4589F7;
font-weight: bold;
- border: 0px;
}
}
}
diff --git a/client/templates/dates.html b/client/templates/dates.html
index 558ca2e..4227287 100644
--- a/client/templates/dates.html
+++ b/client/templates/dates.html
@@ -22,7 +22,7 @@
</template>
<template name="row">
- <div class="row month-row">
+ <div class="month-row">
{{#each this}}
{{> month}}
{{/each}}
@@ -30,7 +30,7 @@
</template>
<template name="month">
- <div class="col-xs-4">
+ <div class="month-button">
<input type="radio" name="monthOptions" id="monthRadio{{val}}" value="{{val}}">
<label class="radio-inline" for="monthRadio{{val}}">{{name}}</label>
</div>