mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-17 20:11:12 +02:00
turn some links into btns
This commit is contained in:
@@ -18,7 +18,7 @@ export function MainHeader(props) {
|
|||||||
<div class="main-header__btn-wrap flex flex-v-center">
|
<div class="main-header__btn-wrap flex flex-v-center">
|
||||||
<button
|
<button
|
||||||
id="runBtn"
|
id="runBtn"
|
||||||
class="hide flex flex-v-center hint--rounded hint--bottom-left"
|
class="hide btn--dark flex flex-v-center hint--rounded hint--bottom-left"
|
||||||
aria-label="Run preview (Ctrl/⌘ + Shift + 5)"
|
aria-label="Run preview (Ctrl/⌘ + Shift + 5)"
|
||||||
onClick={props.runBtnClickHandler}
|
onClick={props.runBtnClickHandler}
|
||||||
>
|
>
|
||||||
@@ -31,7 +31,7 @@ export function MainHeader(props) {
|
|||||||
onClick={props.addLibraryBtnHandler}
|
onClick={props.addLibraryBtnHandler}
|
||||||
data-event-category="ui"
|
data-event-category="ui"
|
||||||
data-event-action="addLibraryButtonClick"
|
data-event-action="addLibraryButtonClick"
|
||||||
class="flex-v-center hint--rounded hint--bottom-left"
|
class="btn--dark flex-v-center hint--rounded hint--bottom-left"
|
||||||
aria-label="Add a JS/CSS library"
|
aria-label="Add a JS/CSS library"
|
||||||
>
|
>
|
||||||
Add library{' '}
|
Add library{' '}
|
||||||
@@ -45,7 +45,7 @@ export function MainHeader(props) {
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="flex flex-v-center hint--rounded hint--bottom-left"
|
class="btn--dark flex flex-v-center hint--rounded hint--bottom-left"
|
||||||
aria-label="Start a new creation"
|
aria-label="Start a new creation"
|
||||||
onClick={props.newBtnHandler}
|
onClick={props.newBtnHandler}
|
||||||
>
|
>
|
||||||
@@ -58,7 +58,7 @@ export function MainHeader(props) {
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
id="saveBtn"
|
id="saveBtn"
|
||||||
class={`flex flex-v-center hint--rounded hint--bottom-left ${
|
class={`btn--dark flex flex-v-center hint--rounded hint--bottom-left ${
|
||||||
props.isSaving ? 'is-loading' : ''
|
props.isSaving ? 'is-loading' : ''
|
||||||
} ${props.unsavedEditCount ? 'is-marked' : 0}`}
|
} ${props.unsavedEditCount ? 'is-marked' : 0}`}
|
||||||
aria-label="Save current creation (Ctrl/⌘ + S)"
|
aria-label="Save current creation (Ctrl/⌘ + S)"
|
||||||
@@ -77,7 +77,7 @@ export function MainHeader(props) {
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
id="openItemsBtn"
|
id="openItemsBtn"
|
||||||
class={`flex flex-v-center hint--rounded hint--bottom-left ${
|
class={`btn--dark flex flex-v-center hint--rounded hint--bottom-left ${
|
||||||
props.isFetchingItems ? 'is-loading' : ''
|
props.isFetchingItems ? 'is-loading' : ''
|
||||||
}`}
|
}`}
|
||||||
aria-label="Open a saved creation (Ctrl/⌘ + O)"
|
aria-label="Open a saved creation (Ctrl/⌘ + O)"
|
||||||
@@ -98,7 +98,7 @@ export function MainHeader(props) {
|
|||||||
onClick={props.loginBtnHandler}
|
onClick={props.loginBtnHandler}
|
||||||
data-event-category="ui"
|
data-event-category="ui"
|
||||||
data-event-action="loginButtonClick"
|
data-event-action="loginButtonClick"
|
||||||
class="hide-on-login flex flex-v-center hint--rounded hint--bottom-left"
|
class="hide-on-login btn--dark flex flex-v-center hint--rounded hint--bottom-left"
|
||||||
aria-label="Login/Signup"
|
aria-label="Login/Signup"
|
||||||
>
|
>
|
||||||
Login/Signup
|
Login/Signup
|
||||||
@@ -108,7 +108,7 @@ export function MainHeader(props) {
|
|||||||
data-event-category="ui"
|
data-event-category="ui"
|
||||||
data-event-action="headerAvatarClick"
|
data-event-action="headerAvatarClick"
|
||||||
aria-label="See profile or Logout"
|
aria-label="See profile or Logout"
|
||||||
class="hide-on-logout hint--rounded hint--bottom-left"
|
class="hide-on-logout btn--dark hint--rounded hint--bottom-left"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
id="headerAvatarImg"
|
id="headerAvatarImg"
|
||||||
|
@@ -201,23 +201,21 @@ export default class SavedItemPane extends Component {
|
|||||||
<div class="flex flex-v-center" style="justify-content: space-between;">
|
<div class="flex flex-v-center" style="justify-content: space-between;">
|
||||||
<h3>My Library ({this.items.length})</h3>
|
<h3>My Library ({this.items.length})</h3>
|
||||||
|
|
||||||
<div class="main-header__btn-wrap">
|
<div>
|
||||||
<a
|
<button
|
||||||
onClick={this.props.exportBtnClickHandler}
|
onClick={this.props.exportBtnClickHandler}
|
||||||
href=""
|
class="btn--dark hint--bottom-left hint--rounded hint--medium"
|
||||||
class="btn btn-icon hint--bottom-left hint--rounded hint--medium"
|
|
||||||
aria-label="Export all your creations into a single importable file."
|
aria-label="Export all your creations into a single importable file."
|
||||||
>
|
>
|
||||||
Export
|
Export
|
||||||
</a>
|
</button>
|
||||||
<a
|
<button
|
||||||
onClick={this.importBtnClickHandler.bind(this)}
|
onClick={this.importBtnClickHandler.bind(this)}
|
||||||
href=""
|
class="btn--dark hint--bottom-left hint--rounded hint--medium"
|
||||||
class="btn btn-icon hint--bottom-left hint--rounded hint--medium"
|
|
||||||
aria-label="Only the file that you export through the 'Export' button can be imported."
|
aria-label="Only the file that you export through the 'Export' button can be imported."
|
||||||
>
|
>
|
||||||
Import
|
Import
|
||||||
</a>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
|
@@ -244,7 +244,7 @@ textarea {
|
|||||||
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
|
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:focus {
|
[class*='btn']:focus {
|
||||||
outline-width: 4px;
|
outline-width: 4px;
|
||||||
outline-color: #b76b29;
|
outline-color: #b76b29;
|
||||||
outline-style: solid;
|
outline-style: solid;
|
||||||
@@ -584,6 +584,7 @@ body > #demo-frame {
|
|||||||
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
|
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn--dark,
|
||||||
.main-header__btn-wrap > button {
|
.main-header__btn-wrap > button {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
@@ -607,7 +608,7 @@ body > #demo-frame {
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header__btn-wrap > button > svg {
|
.btn--dark > svg {
|
||||||
fill: #9297b3;
|
fill: #9297b3;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
@@ -616,7 +617,7 @@ body > #demo-frame {
|
|||||||
fill: crimson;
|
fill: crimson;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-header__btn-wrap > button:hover {
|
.btn--dark:hover {
|
||||||
border-color: rgba(146, 151, 179, 0.5);
|
border-color: rgba(146, 151, 179, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1358,7 +1359,6 @@ body > #demo-frame {
|
|||||||
background: rgba(0, 0, 0, 0.3);
|
background: rgba(0, 0, 0, 0.3);
|
||||||
color: white;
|
color: white;
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.console:not(.is-minimized) .code-wrap__header {
|
.console:not(.is-minimized) .code-wrap__header {
|
||||||
|
Reference in New Issue
Block a user