Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
feat(notification): Updates from Girish. Separated Notification Detai…
Browse files Browse the repository at this point in the history
…l from Notification message. Styles added.
  • Loading branch information
andrewleyva committed Oct 10, 2018
1 parent bcf6676 commit 94ca7e0
Show file tree
Hide file tree
Showing 2 changed files with 303 additions and 229 deletions.
382 changes: 227 additions & 155 deletions src/styles/components/notification.css
Original file line number Diff line number Diff line change
@@ -1,155 +1,227 @@
@import '../variables.css';

.notificationPopup{
& .notificationHeader{
border-bottom:1px solid var(--gray);
padding: 12px 15px;
& .notificationTitle{
font-size:1.2em;
font-weight: bold;
}
& .notificationCount{
font-size:0.8em;
}
}
& .notificationBody{
max-height: 500px;
overflow-y: auto;
& .singleNotification{
cursor: pointer;
padding: 15px 8px 5px;
border-bottom: 1px solid var(--gray);
&:hover{
background: var(--whisperGray);
}
& .notificationIcon{
width: 35px;
};
& .notificationContent{
width:250px;
& .notificationTitle{
margin-bottom: 7px;
height: 17px;
overflow: hidden;
};
& .notificationDesc{
margin-bottom: 7px;
display: block;
display: -webkit-box;
max-width: 400px;
height: 40px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
color:var(--nobelGray);
};
& .notificationActions{
& .notificationClear{
color:var(--blue)
};
};
};
& .notificationTime{
width: 100px;
text-align: right;
};
}
}
& .notificationFooter{
& >*{
padding:12px 15px;
text-align: center;
color:var(--blue)
}
& >*:hover{
background: var(--whisperGray);
}
}
&.ui.bottom{
padding:0px;
box-shadow: 0px 5px 10px 4px #ccc;
}
}

.notificationIcon{
position: relative;
&.error {
color: var(--orange)
};
&.success {
color: var(--successGreen)
};
&.warning {
color: var(--warningred)
};
&.info {
color: var(--blue)
};
}

.notificationCount{
border-radius: 9px;
background: var(--warningred);
color:var(--white);
padding: 5px;
&.small{
padding: 0px 4px;
position: absolute;
top: -13px;
left: 7px;
font-size: var(--xsmall);
}
&.large{
padding: 1px 5px;
position: absolute;
top: -15px;
left: 15px;
}
&.big{
padding: 2px 6px;
position: absolute;
top: -20px;
left: 20px;
}
}

.empty__circle {
width: 280px;
height: 280px;
color: #8faec1;
border: 13px solid #eeeff0;
margin-left: auto;
margin-right: auto;
border-radius: 100%;
text-align: center;
padding-top: 35px;
& .bell_icon{
font-size: 35px;
margin-bottom: 20px;
}
& .info_text{
font-size: 20px;
}
}

.empty__notification_panel {
height: 500px;
max-width: 400px;
padding: 4em;
background-color: #f1f1f2;
& .title {
font-size: 14px;
color: #b5c0c7;
margin-top: 32px;
text-align: center
}
}
.notificationPopup .clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
@import '../variables.css';

.notificationIcon{
position:relative;
& i.icon{
font-size: 32px;
&.tiny{
font-size: 16px;
};
&.small{
font-size: 24px;
};
&.large{
font-size: 48px;
};
&.big{
font-size: 64px;
};
};
& .notificationCount {
border-radius: 9px;
background: var(--warningred);
color:var(--white);
padding: 5px;
&.tiny{
padding: 0px 4px;
position: absolute;
top: -13px;
left: 10px;
font-size: var(--xsmall);
};
&.small{
padding: 0px 4px;
position: absolute;
top: -13px;
left: 16px;
font-size: var(--xsmall);
};
&.large{
padding: 1px 5px;
position: absolute;
top: -20px;
left: 35px;
}
&.big{
padding: 2px 6px;
position: absolute;
top: -25px;
left: 45px;
}
}
};
.ui.popup{
&.notificationPopup {
padding:0px;
margin:0px;
& .clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
& .notificationHeader{
border-bottom:1px solid var(--gray);
padding: 12px 15px;
& .notificationTitle{
font-size:1.2em;
font-weight: bold;
}
& .notificationCount{
background: var(--warningred);
color:var(--white);
border-radius: 25px;
padding: 5px;
min-width: 25px;
display: inline-block;
height: 25px;
text-align: center;
margin-left: 10px;
}
&.detailView{
cursor:pointer;
& .backbtn {
color: var(--black);
position: relative;
top: -5px;
left: -10px;
}
& i.icon.backarrow {
color: var(--black);
position: relative;
top: 0;
left: -5px;
font-size: 2em;
}
}
}
& .notificationBody{
height: 500px;
overflow-y: auto;
& .singleNotification{
cursor: pointer;
padding: 15px 8px 5px;
border-bottom: 1px solid var(--gray);
&.active,&.unread{
background: var(--whisperGray);
}&:hover{
background: var(--activeBlue);
}
& .notificationContent{
width:250px;
& .notificationTitle{
margin-bottom: 7px;
height: 17px;
overflow: hidden;
};
& .notificationDesc{
margin-bottom: 7px;
display: block;
display: -webkit-box;
max-width: 400px;
height: 40px;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
color:var(--nobelGray);
};
& .notificationActions{
& .notificationClear{
color:var(--blue)
};
};
};
& .notificationTime{
width: 100px;
text-align: right;
};
}
& .detailView{
padding:15px;
& .notificationContent{
padding-left:10px;
& .notificationTitle{
font-weight: bold;
margin-bottom: 10px;
font-size: 16px;
}
& .notificationTime, & .notificationDesc {
margin-bottom: 10px;
}
}
}
}
& .notificationFooter{
& >*{
padding:12px 15px;
text-align: center;
color:var(--blue)
}
& >*:hover{
background: var(--whisperGray);
}
}
&.ui.bottom{
padding:0px;
box-shadow: 0px 5px 10px 4px #ccc;
}
& .notificationIcon{
width: 35px;
position: relative;
font-size:1.5em;
&.error {
color: var(--orange)
};
&.success {
color: var(--successGreen)
};
&.warning {
color: var(--warningred)
};
&.info {
color: var(--blue)
};
};
}
}

.notification_detail{
min-width: 400px;
}



.empty__circle {
width: 280px;
height: 280px;
color: #8faec1;
border: 13px solid #eeeff0;
margin-left: auto;
margin-right: auto;
border-radius: 100%;
text-align: center;
padding-top: 35px;
& .bell_icon{
font-size: 35px;
margin-bottom: 20px;
}
& .info_text{
font-size: 20px;
}
}

.empty__notification_panel {
height: 500px;
max-width: 400px;
padding: 4em;
background-color: #f1f1f2;
& .title {
font-size: 14px;
color: #b5c0c7;
margin-top: 32px;
text-align: center
}
}
Loading

0 comments on commit 94ca7e0

Please sign in to comment.