app/assets/stylesheets/activities_controller.css
.switch-field {
overflow: hidden;
}
.switch-field input {
display: none;
}
.switch-field label {
float: left;
}
.switch-field label {
display: flex;
justify-content: center; /* align horizontal */
align-items: center; /* align vertical */
width: 100px;
height: 60px;
background-color: #eeeeee;
color: rgba(0, 0, 0, 0.6);
font-weight: normal;
text-align: center;
text-shadow: none;
padding: 1px 1px;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
-webkit-transition: all 0.01s ease-in-out;
-moz-transition: all 0.01s ease-in-out;
-ms-transition: all 0.01s ease-in-out;
-o-transition: all 0.01s ease-in-out;
transition: all 0.01s ease-in-out;
}
.switch-field label:hover {
cursor: pointer;
}
.switch-field input:checked + label {
background-color: #5bc0de;
color: #ffffff;
-webkit-box-shadow: none;
box-shadow: none;
font-weight: bold;
}
.switch-field label:first-of-type {
border-radius: 4px 0 0 4px;
}
.switch-field label:last-of-type {
border-radius: 0 4px 4px 0;
}