user status: Clean up code for user status options.

- Changed the <p>s to <button>s and modified the css accordingly.
- Changed the css to use scss nesting.
- Changed the line-height from 1.0em to 1.1em, because on Safari the "g" was not fully displayed.
This commit is contained in:
Alexandra Ciobica 2019-04-25 14:01:50 +02:00 committed by Tim Abbott
parent 28109e0f9e
commit 61758735f3
2 changed files with 16 additions and 13 deletions

View File

@ -48,14 +48,17 @@
}
.user-status-options {
padding: 20px;
padding-top: 0;
padding-bottom: 3px;
line-height: 1.0em;
}
padding: 0 20px 3px;
.user-status-options p:hover {
cursor: pointer;
color: hsl(200, 100%, 40%);
button.user-status-value:hover {
color: hsl(200, 100%, 40%);
}
.user-status-value {
width: 100%;
text-align: left;
margin-bottom: 10px;
line-height: 1.1em;
}
}
}

View File

@ -163,11 +163,11 @@
<input type="text" class="user_status" maxlength="60" />
</div>
<div class="user-status-options">
<p class="user-status-value" data-user-status-value="In a meeting">In a meeting</p>
<p class="user-status-value" data-user-status-value="Commuting">Commuting</p>
<p class="user-status-value" data-user-status-value="Out sick">Out sick</p>
<p class="user-status-value" data-user-status-value="Vacationing">Vacationing</p>
<p class="user-status-value" data-user-status-value="Working remotely">Working remotely</p>
<button type="button" class="button no-style user-status-value" data-user-status-value="In a meeting">In a meeting</button>
<button type="button" class="button no-style user-status-value" data-user-status-value="Commuting">Commuting</button>
<button type="button" class="button no-style user-status-value" data-user-status-value="Out sick">Out sick</button>
<button type="button" class="button no-style user-status-value" data-user-status-value="Vacationing">Vacationing</button>
<button type="button" class="button no-style user-status-value" data-user-status-value="Working remotely">Working remotely</button>
</div>
<div class="modal-footer">
<button class="button exit small rounded">Cancel</button>