Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
style: menu shadow + dashboard feed cards + top nav
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaOak committed Dec 17, 2019
1 parent ec5ad8f commit a75faa2
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 37 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<!-- Material Design Icons-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<!-- Open Sans Font-->
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&amp;lang=en" />
<!-- See https://goo.gl/OOhYW5 -->
<link rel="manifest" href="manifest.json">

Expand Down
8 changes: 3 additions & 5 deletions src/components/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { html } from 'lit-element';
import sharedStyles from '../../style/app.scss';
import dashboardStyles from '../../style/dashboard.scss';
import { PageViewElement } from './page-view-element.js';
import './sidebar.js';
import './top-nav.js';
Expand All @@ -11,7 +12,7 @@ import './tags.js';

class OAEDashboard extends PageViewElement {
static get styles() {
return [sharedStyles];
return [sharedStyles, dashboardStyles];
}

render() {
Expand All @@ -32,10 +33,7 @@ class OAEDashboard extends PageViewElement {
<div class="column is-three-fifths main-left">
<section class="column activity-dashboard">
<section class="is-flex">
<span class="icon tag-activity-dashboard">
<img src="./../../node_modules/@mdi/svg/svg/tag-text-outline.svg" />
</span>
<h3>RECENT ACTIVITY</h3>
<h3>Recent Activity</h3>
</section>
<news-feed></news-feed>
<news-feed></news-feed>
Expand Down
22 changes: 11 additions & 11 deletions src/components/news-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import '@polymer/iron-icons/iron-icons.js';
import '@polymer/iron-icons/social-icons.js';
import '@polymer/iron-icons/av-icons.js';
import '@polymer/iron-icons/hardware-icons.js';
import '@polymer/iron-icons/communication-icons.js';
import './tags.js';

class newsFeed extends LitElement {
Expand Down Expand Up @@ -42,7 +43,7 @@ class newsFeed extends LitElement {
<div class="level-right">
<p class="level-item">
<a class="button news-pin">
<iron-icon icon="icons:label-outline"></iron-icon>
<iron-icon icon="icons:bookmark-border"></iron-icon>
</a>
</p>
</div>
Expand All @@ -55,28 +56,27 @@ class newsFeed extends LitElement {
Here is the briefing for that group assignment we talked about.
</p>
<tags-button></tags-button>
<tags-button></tags-button>
</section>
<nav class="level bottom-nav-news">
<div class="level-left">
<div class="level-item">
<a class="button comments-button">
<span>View (25) comments</span>
<span class="icon is-small">
<i class="mdi mdi-alert"></i>
<span class="comments-icon">
<iron-icon icon="communication:forum"></iron-icon>
</span>
<span>View (25) comments</span>
</a>
</div>
</div>
<div class="level-right is-pulled-right">
<div class="level-item">
<p>
reply
</p>
<a class="button reply-button">
<span class="reply-icon">
<iron-icon icon="communication:import-export"></iron-icon>
</span>
<span>Reply</span>
</a>
</div>
</div>
</nav>
<hr class="news-feed-break" />
</div>
</div>
`;
Expand Down
14 changes: 9 additions & 5 deletions style/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ html,
body {
margin: 0;
height: 100%;
font-family: 'Open Sans', sans-serif;
font-size: 1em;
}

* {
Expand All @@ -101,7 +103,7 @@ h2 {
.hero-body {
margin: 0;
padding: 0;
background-color: #fcfcfc;
background-color: #FAFAFA;
}

.container.is-fluid {
Expand Down Expand Up @@ -133,6 +135,7 @@ h2 {

.column.is-narrow {
background-color: white;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
z-index: 1;
width: 210px;
padding: 0;
Expand Down Expand Up @@ -168,14 +171,15 @@ h2 {

.menu-list {
font-size: 14px;
font-family: 'Open Sans', sans-serif;
}

.menu-list li {
padding-left: 35px;
margin-bottom: 18px;
border-radius: 0 25px 25px 0;
height: 30px;
color: #000000;
color: #212121;
display: flex;
align-items: center;
&:hover {
Expand All @@ -193,7 +197,7 @@ h2 {
}

.menu-list a {
color: #000000;
color: #212121;
}

a.dashboard,
Expand All @@ -213,12 +217,12 @@ a.network {
.topbar-search-icon {
display: flex;
align-items: center;
color: black;
color: #212121;
padding-top: 10px;
}

.input {
color: black;
color: #212121;
-webkit-appearance: none;
border: none;
background-color: transparent;
Expand Down
3 changes: 3 additions & 0 deletions style/dashboard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h3 {
color: #212121;
}
60 changes: 47 additions & 13 deletions style/news-feed.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// News Feed - Dashboard
.box {
box-shadow: none;
background-color: white;
//box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.box-feed {
margin-top: 25px;
padding: 5px;
background-color: transparent;
border: none;
}

Expand All @@ -29,11 +31,11 @@

.news-feed-message {
margin-left: 65px;
margin-right: 65px;
margin-top: -15px;
width: auto;
background-color: rgb(253, 253, 253);
background-color: #fafafa;
border-radius: 5px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
word-wrap: break-word;
}

Expand All @@ -47,7 +49,7 @@
color: #0060df;
background-color: #f5f7ff;
&:hover {
color: #0d47a1;
color: #0060df;
background-color: #f5f7ff;
text-decoration: none;
}
Expand All @@ -60,8 +62,9 @@
}

.bottom-nav-news {
margin-left: 65px;
margin-top: 1.8em;
margin-left: 70px;
margin-top: 2em;
margin-bottom: 1em;
}

.news-feed-break {
Expand All @@ -72,26 +75,57 @@
border: none;
background-color: transparent;
height: 5px;
color: #424242;
width: 0;
margin-left: 55px;
&:hover {
color: #0060df;
text-decoration: underline;
}
}

.reply-button {
border: none;
background-color: transparent;
height: 5px;
color: #424242;
width: 0;
margin-left: 90px;
&:hover {
color: #0060df;
text-decoration: underline;
}
}

.comments-icon {
color: #0060df;
text-decoration: underline;
margin-right: 5px;
&:hover {
color: #0d47a1;
text-decoration: none;
color: #0060df;
}
}

.reply-icon {
color: #0060df;
margin-right: 5px;
&:hover {
color: #0060df;
}
}

.icon-feed {
color: #424242;
color: #0060df;
}

.news-pin {
background-color: transparent;
margin-right: 15px;
border-radius: 25px;
border: none;
background-color: #0060df;
color: white;
background-color: #fafafa;
color: #424242;
&:hover {
background-color: #0d47a1;
background-color: #0060df;
color: white;
}
}
6 changes: 3 additions & 3 deletions style/topnav-buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
}

.notification-icon {
color: black;
color: #212121;

}
.navbar-link {
border-radius: 25px;
color: black;
color: #212121;
}

.navbar-link:not(.is-arrowless)::after {
border-color: black;
border-color: #212121;
margin-top: -0.5em;
margin-left: 15;
right: 0.5em;
Expand Down

1 comment on commit a75faa2

@datreeio
Copy link

@datreeio datreeio bot commented on a75faa2 Dec 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Rules (6 / 6) Passed

👑 Good job! this pull request is aligned with your organization's best practices!

👉 You can review your rules settings at smart policy management 👈

👉 click here to view a full list of the events 👈

Please sign in to comment.