mirror of https://github.com/zulip/zulip.git
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:
parent
28109e0f9e
commit
61758735f3
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue