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

Sidebar style tweaks. #71

Merged
merged 1 commit into from
May 18, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
15 changes: 7 additions & 8 deletions html/viewer/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ body {
display: flex;
flex-direction: column;
background-color: var(--white);
height: calc(100vh - 50px);
height: 100vh;
position: fixed;
left: 100%;
top: 50px;
top: 0;
transition: left .3s var(--photon-timing-fuction);
width: var(--sidebar-width);
border-left: solid 1px rgba(0, 0, 0, 0.1);
Expand All @@ -67,6 +67,8 @@ body {
}

#icon-details header {
display: flex;
justify-content: space-between;
padding: 48px 48px 0 48px;
}

Expand All @@ -77,7 +79,7 @@ body {

#icon-details footer {
display: flex;
justify-content: flex-end;
justify-content: center;
padding: 24px 48px;
background-color: var(--grey-10);
border-top: solid 1px rgba(0, 0, 0, 0.1);
Expand All @@ -94,14 +96,11 @@ body {
}

#icon-details .close-button {
background-image: url('../../icons/navigation/stop-16.svg');
background-image: url('../../icons/desktop/stop-16.svg');
background-position: center;
background-size: 16px 16px;
background-repeat: no-repeat;
transition: all 0.3s var(--photon-timing-fuction);
position: absolute;
top: 24px;
right: 24px;
width: 24px;
height: 24px;
cursor: pointer;
Expand Down Expand Up @@ -241,7 +240,7 @@ input:checked + .toggle:before {
border-style: solid;
position: sticky;
top: 0;
background-image: url(../../icons/navigation/search-16.svg);
background-image: url(../../icons/desktop/search-16.svg);
background-position: 20px center;
background-repeat: no-repeat;
color: var(--grey-90);
Expand Down
3 changes: 2 additions & 1 deletion html/viewer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ <h1 id="headline">Photon Icons</h1>
<div id="loading">Loading icons...</div>
<div id="icon-details">
<header>
<h1>Download<div class="close-button"></div></h1>
<h1>Download</h1>
<div class="close-button"></div>
</header>
<main>
<div class="preview">
Expand Down