diff options
| author | Henry Jameson <me@hjkos.com> | 2018-08-05 05:18:04 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-08-05 05:18:04 +0300 |
| commit | 6a81aa274533b6af1f2514508f6f9fa3b0795c9f (patch) | |
| tree | e9d8e40cb5621abd037c0d6351160967f6b37996 /src/components/user_card_content/user_card_content.vue | |
| parent | d886ab752c0cc7f12ec569b5fb8ae760e2b45643 (diff) | |
added ability to pick the style of highlighting
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index d3238b09..abdf0dfe 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -26,10 +26,16 @@ </div> <div class="floater" v-if="switcher || isOtherUser"> <!-- id's need to be unique, otherwise vue confuses which user-card checkbox belongs to --> - <input class="userHighlightCl" type="color" :id="'userHighlightColor'+user.id" v-if="userHighlightEnabled" v-model="userHighlightColor"/> - <input type="checkbox" class="userHighlightChk" :id="'userHighlightCheck'+user.id" v-model="userHighlightEnabled"> - <label :title="$t('settings.highlight')" :for="'userHighlightCheck'+user.id"> - <i class="icon-brush"></i> + <input class="userHighlightText" type="text" :id="'userHighlightColorTx'+user.id" v-if="userHighlightType !== 'disabled'" v-model="userHighlightColor"/> + <input class="userHighlightCl" type="color" :id="'userHighlightColor'+user.id" v-if="userHighlightType !== 'disabled'" v-model="userHighlightColor"/> + <label for="style-switcher" class='userHighlightSel select'> + <select class="userHighlightSel" :id="'userHighlightSel'+user.id" v-model="userHighlightType"> + <option value="disabled">No highlight</option> + <option value="solid">Solid bg</option> + <option value="striped">Striped bg</option> + <option value="side">Side stripe</option> + </select> + <i class="icon-down-open"/> </label> </div> </div> @@ -307,12 +313,25 @@ .userHighlightCl { padding: 2px 10px; - height: 22px; - vertical-align: top; - margin-right: 0 + } + .userHighlightSel, + .userHighlightSel.select { + padding-top: 0; + padding-bottom: 0; + } + .userHighlightSel.select i { + line-height: 22px; + } + + .userHighlightText { + width: 70px; } - .userHighlightChk + label::before { + .userHighlightCl, + .userHighlightText, + .userHighlightSel, + .userHighlightSel.select { + height: 22px; vertical-align: top; margin-right: 0 } |
