Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 8972f18

Browse files
author
Yvonne Yip
committed
contacts-v2: move the add button to the bottom
1 parent a3fc3e0 commit 8972f18

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

shiny/Contacts-v2/components/contacts-list.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
box-sizing: border-box;
101101
height: 80px;
102102
padding: 0 20px;
103+
}
104+
.addButton {
105+
position: absolute;
106+
bottom: 16px;
107+
right: 16px;
108+
color: white;
109+
padding: 8px 14px;
110+
background: #bdc146;
111+
font-size: 20px;
112+
border: 1px solid #d9d9d9;
113+
border-radius: 20px;
114+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
103115
}
104116
#overlay {
105117
position: fixed;
@@ -126,7 +138,6 @@
126138
<polymer-ui-toolbar id="toolbar">
127139
<polymer-ui-icon-button icon="menu" on-tap="{{menuAction}}"></polymer-ui-icon-button>
128140
<div flex>Everyone</div>
129-
<polymer-ui-icon-button icon="plus" on-tap="{{addAction}}"></polymer-ui-icon-button>
130141
<polymer-ui-icon-button icon="search"></polymer-ui-icon-button>
131142
<template if="{{wideLayout}}">
132143
<polymer-ui-icon-button icon="shortcut"></polymer-ui-icon-button>
@@ -166,6 +177,7 @@
166177
<contacts-detail contact="{{selectedContact.contact}}" on-contacts-detail-shrink="{{overlayCloseAction}}">
167178
</contacts-detail>
168179
</polymer-ui-overlay>
180+
<div class="addButton" on-tap="{{addAction}}">&#x2b;</div>
169181
<polymer-animation-group id="slideAnimation" type="par" fillMode="forwards">
170182
<polymer-translate id="translateAnimation" fromX="0" toX="100%" duration="0.6" fillMode="forwards"></polymer-translate>
171183
<polymer-fadein id="fadeAnimation" duration="0.1" fillMode="forwards"></polymer-fadein>

0 commit comments

Comments
 (0)