re #389, update styling in sidebar and editor for icon consistency (#1104)

* re #389, update styling in sidebar and editor for icon consistency

* re #389, remove link to unused icon
This commit is contained in:
Cassie Tarakajian 2019-06-14 13:30:13 -04:00 committed by GitHub
parent 0b24938dce
commit b3c3efcec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 19 deletions

View file

@ -0,0 +1,12 @@
<svg width="10px" height="10px" viewBox="0 0 5 5" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Down Arrow</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="environment" transform="translate(-26.000000, -42.000000)" fill="#B5B5B5">
<g id="libraries" transform="translate(21.000000, 32.000000)">
<polygon id="Triangle-3" transform="translate(7.500000, 12.500000) rotate(180.000000) translate(-7.500000, -12.500000) " points="7.5 10 10 15 5 15"></polygon>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 698 B

View file

@ -0,0 +1,12 @@
<svg width="10px" height="10px" viewBox="0 0 5 5" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Right Arrow</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="environment" transform="translate(-26.000000, -42.000000)" fill="#FFFFFF">
<g id="libraries" transform="translate(21.000000, 32.000000)">
<polygon id="Triangle-3" transform="translate(7.500000, 12.500000) rotate(90.000000) translate(-7.500000, -12.500000) " points="7.5 10 10 15 5 15"></polygon>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 698 B

View file

@ -7,7 +7,7 @@ import classNames from 'classnames';
import * as IDEActions from '../actions/ide';
import * as FileActions from '../actions/files';
const downArrowUrl = require('../../../images/down-arrow.svg');
const downArrowUrl = require('../../../images/down-filled-triangle.svg');
const folderRightUrl = require('../../../images/triangle-arrow-right.svg');
const folderDownUrl = require('../../../images/triangle-arrow-down.svg');
const fileUrl = require('../../../images/file.svg');

View file

@ -4,8 +4,7 @@ import classNames from 'classnames';
import InlineSVG from 'react-inlinesvg';
import ConnectedFileNode from './FileNode';
const folderUrl = require('../../../images/folder.svg');
const downArrowUrl = require('../../../images/down-arrow.svg');
const downArrowUrl = require('../../../images/down-filled-triangle.svg');
class Sidebar extends React.Component {
constructor(props) {
@ -72,10 +71,7 @@ class Sidebar extends React.Component {
<nav className={sidebarClass} title="file-navigation" >
<div className="sidebar__header" onContextMenu={this.toggleProjectOptions}>
<h3 className="sidebar__title">
<span className="sidebar__folder-icon">
<InlineSVG src={folderUrl} />
</span>
<span>project-folder</span>
<span>Sketch Files</span>
</h3>
<div className="sidebar__icons">
<button

View file

@ -210,7 +210,7 @@
display: flex;
position: absolute;
flex-direction: column;
top: 100%;
top: 95%;
height: auto;
z-index: 9999;
border-radius: #{6 / $base-font-size}rem;

View file

@ -62,8 +62,8 @@ $themes: (
keyboard-shortcut-color: #757575,
nav-hover-color: $p5js-pink,
error-color: $p5js-pink,
codefold-icon-open: url(../images/down-arrow.svg),
codefold-icon-closed: url(../images/right-arrow.svg)
codefold-icon-open: url(../images/triangle-arrow-down.svg),
codefold-icon-closed: url(../images/triangle-arrow-right.svg)
),
dark: (
logo-color: $p5js-pink,
@ -111,8 +111,8 @@ $themes: (
keyboard-shortcut-color: #B5B5B5,
nav-hover-color: $p5js-pink,
error-color: $p5js-pink,
codefold-icon-open: url(../images/down-arrow-white.svg),
codefold-icon-closed: url(../images/right-arrow-white.svg)
codefold-icon-open: url(../images/triangle-arrow-down-white.svg),
codefold-icon-closed: url(../images/triangle-arrow-right-white.svg)
),
contrast: (
logo-color: $yellow,
@ -159,8 +159,8 @@ $themes: (
keyboard-shortcut-color: #e1e1e1,
nav-hover-color: $yellow,
error-color: $p5-contrast-pink,
codefold-icon-open: url(../images/down-arrow-white.svg),
codefold-icon-closed: url(../images/right-arrow-white.svg)
codefold-icon-open: url(../images/triangle-arrow-down-white.svg),
codefold-icon-closed: url(../images/triangle-arrow-right-white.svg)
)
);

View file

@ -75,15 +75,15 @@
.file-item__spacer {
flex-shrink: 0;
.sidebar__file-item & {
width: #{33 / $base-font-size}rem;
width: #{19 / $base-font-size}rem;
.sidebar__file-item & {
width: #{53 / $base-font-size}rem;
width: #{39 / $base-font-size}rem;
.sidebar__file-item & {
width: #{73 / $base-font-size}rem;
width: #{59 / $base-font-size}rem;
.sidebar__file-item & {
width: #{93 / $base-font-size}rem;
width: #{79 / $base-font-size}rem;
.sidebar__file-item & {
width: #{113 / $base-font-size}rem;
width: #{99 / $base-font-size}rem;
}
}
}