Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GD-457 [FEAT] Fliplet Viewer Notifications Inbox #52

Open
wants to merge 21 commits into
base: fliplet-viewer-inbox
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="notifications-holder"
data-notification-inbox-1-0-0-id="{{id}}"
data-notification-inbox-1-0-0-uuid="{{uuid}}">
data-fliplet-viewer-notification-inbox-1-0-0-id="{{id}}"
tonytlwu marked this conversation as resolved.
Show resolved Hide resolved
data-fliplet-viewer-notification-inbox-1-0-0-uuid="{{uuid}}">
<div class="notifications-toolbar"><p>&nbsp;</p></div>
<div class="notifications">
<i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>
Expand Down
6 changes: 5 additions & 1 deletion css/app/build.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
background-color: #fe5857;
color: #fff;
border-radius: 22px;
box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.2);
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.notification-read .notification-badge {
tonytlwu marked this conversation as resolved.
Show resolved Hide resolved
display: none;
}
79 changes: 55 additions & 24 deletions css/build.css
tonytlwu marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[data-notification-inbox-1-0-0-id] {
[data-fliplet-viewer-notification-inbox-1-0-0-id] {
padding-top: 20px;
}

[data-notification-inbox-1-0-0-id] .notification {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification {
position: relative;
width: 100%;
border-radius: 20px;
Expand All @@ -12,25 +12,25 @@
cursor: pointer;
}

[data-notification-inbox-1-0-0-id] .notification[data-notification-status="draft"] {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification[data-notification-status="draft"] {
background-color: rgba(252, 248, 227, 0.58);
}

[data-notification-inbox-1-0-0-id] .notifications-toolbar {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications-toolbar {
margin-bottom: 20px;
}

[data-notification-inbox-1-0-0-id] .toolbar-read-all {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .toolbar-read-all {
display: none;
}

[data-notification-inbox-1-0-0-id] .notifications-toolbar [data-settings],
[data-notification-inbox-1-0-0-id] .notifications-toolbar [data-refresh] {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications-toolbar [data-settings],
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications-toolbar [data-refresh] {
opacity: 0.3;
cursor: pointer;
}

[data-notification-inbox-1-0-0-id] .notifications .notifications-new {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications .notifications-new {
position: relative;
width: 100%;
border-radius: 20px;
Expand All @@ -41,26 +41,26 @@
text-align: center;
}

[data-notification-inbox-1-0-0-id] .no-notifications,
[data-notification-inbox-1-0-0-id] .notifications-error {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .no-notifications,
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications-error {
margin-bottom: 40px;
padding: 20px;
text-align: center;
opacity: 0.5;
}

[data-notification-inbox-1-0-0-id].notifications-has-unread .toolbar-read-all {
[data-fliplet-viewer-notification-inbox-1-0-0-id].notifications-has-unread .toolbar-read-all {
display: inline-block;
}

[data-notification-inbox-1-0-0-id] .notification .subtitle {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .subtitle {
text-transform: uppercase;
font-size: 12px;
opacity: 0.5;
}

[data-notification-inbox-1-0-0-id] .notification-linked .subtitle:after {
content: '\f0c1';
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification-linked .subtitle:after {
content: "\f0c1";
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
Expand All @@ -78,45 +78,76 @@
margin-top: 4px;
}

[data-notification-inbox-1-0-0-id] .notification .title {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .tags {
margin-top: 4px;
}

[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .tags .tag {
font-size: 12px;
font-weight: 600;
border-radius: 4px;
padding: 4px 10px;
text-transform: uppercase;
color: #474974;
background-color: #eae9ec;
}

[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .tags .tag + tag {
tonytlwu marked this conversation as resolved.
Show resolved Hide resolved
margin-left: 5px;
}

[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .tags .tag.warning {
color: #ed9119;
background-color: rgba(237, 145, 25, 0.2);
}

[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .tags .tag.danger {
color: #e03629;
background-color: rgba(224, 54, 41, 0.2);
}

[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .title {
position: relative;
margin: 10px 0 5px;
font-weight: 500;
line-height: 1.1;
}

[data-notification-inbox-1-0-0-id] .notification .description {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .description {
font-size: 16px;
line-height: 1.5;
}

[data-notification-inbox-1-0-0-id] .notification .description p {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification .description p {
margin-bottom: 0;
}

[data-notification-inbox-1-0-0-id] .notifications .fa-spinner,
[data-notification-inbox-1-0-0-id] .load-more .fa-spinner {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notifications .fa-spinner,
[data-fliplet-viewer-notification-inbox-1-0-0-id] .load-more .fa-spinner {
opacity: 0.2;
margin: 0 auto;
display: block;
}

[data-notification-inbox-1-0-0-id] .load-more .fa-spinner,
[data-notification-inbox-1-0-0-id] .load-more [data-load-more].loading {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .load-more .fa-spinner,
[data-fliplet-viewer-notification-inbox-1-0-0-id] .load-more [data-load-more].loading {
display: none;
}

[data-notification-inbox-1-0-0-id] .load-more [data-load-more].loading + .fa-spinner {
[data-fliplet-viewer-notification-inbox-1-0-0-id]
.load-more
[data-load-more].loading
+ .fa-spinner {
display: block;
}

@media screen and (min-width: 640px) {
[data-notification-inbox-1-0-0-id].notifications-holder {
[data-fliplet-viewer-notification-inbox-1-0-0-id].notifications-holder {
max-width: 700px;
margin: 0 auto;
}

[data-notification-inbox-1-0-0-id] .notification {
[data-fliplet-viewer-notification-inbox-1-0-0-id] .notification {
padding: 40px;
}
}
24 changes: 0 additions & 24 deletions interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@
</p>
</header>

<div class="form-group">
<div class="col-sm-4">
<label for="heading">Send notifications to your users</label>
</div>
<div class="col-sm-8">
<p><a href="#" class="btn btn-primary manage-notifications">Manage notifications</a></p>
</div>
</div>

<div class="form-group">
<div class="col-sm-4">
<label for="heading">App notification badge count</label>
Expand All @@ -45,21 +36,6 @@
</div>
</div>
</div>

<div class="form-group">
<div class="col-sm-4">
<label for="heading">Show sample notifications</label>
</div>
<div class="col-sm-8">
<div class="checkbox checkbox-icon">
<input type="checkbox" id="show_demo">
<label for="show_demo">
<span class="check"><i class="fa fa-check"></i></span> Enable
</label>
</div>
<p class="help-block">Sample notifications are only displayed in Fliplet Studio and Fliplet Viewer.</p>
</div>
</div>
</form>

</div>
24 changes: 0 additions & 24 deletions js/app/build.js

This file was deleted.

Loading