Skip to content

Commit 5f809c9

Browse files
authored
Merge pull request #205 from WordPress/update/prototype-design
Visual polish on the prototypes.
2 parents b3df0e3 + 852daf1 commit 5f809c9

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

blocks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ function updateDockedControlsPosition( newClassName ) {
357357
var alignedLeft = className.match( /align-left/ );
358358
var fullBleed = className.match( /full-bleed/ );
359359

360-
var topPosition = position.top - 36 + window.scrollY;
360+
var topPosition = position.top - 34 + window.scrollY;
361361
var leftPosition = null;
362362

363363
if ( isImage && alignedRight ) {
@@ -710,7 +710,7 @@ function setElementState( className, event ) {
710710
if ( className ) {
711711
selectedBlock.classList.add( className );
712712
}
713-
updateBlockControlsPosition( className );
713+
updateDockedControlsPosition( className );
714714
}
715715

716716
function setCaret( element ) {

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>Editor Blocks</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<link rel='stylesheet' id='h5-font-css' href='https://fonts.googleapis.com/css?family=Merriweather:700,300,700italic,300italic' />
7+
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i" rel="stylesheet">
88
<link href="style.css" rel="stylesheet" type="text/css" media="all">
99
</head>
1010
<body>

shared/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body {
22
background: #f3f6f8;
33
color: #2f4452;
4-
font-family: Merriweather, Georgia, "Times New Roman", Times, serif;
4+
font-family: "Noto Serif", Georgia, "Times New Roman", Times, serif;
55
font-size: 1.25em;
66
line-height: 1.5;
77
margin: 1em;

style.css

+16-16
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ h4,
3838
h5,
3939
h6,
4040
img {
41-
font-family: "Merriweather", serif;
41+
font-family: "Noto Serif", serif;
4242
margin: 15px 0;
4343
/* Uses paddings instead */
4444
}
@@ -105,7 +105,7 @@ h6.is-selected,
105105
p.is-selected,
106106
blockquote.is-selected,
107107
img.is-selected {
108-
box-shadow: inset 0px 0px 0px 2px #e0e5e9;
108+
box-shadow: inset 0px 0px 0px 2px #e1e6ea;
109109
position: relative;
110110
z-index: 1;
111111
}
@@ -181,13 +181,12 @@ img.is-selected {
181181
.inline-controls,
182182
.block-controls {
183183
background: #fff;
184-
border: 1px solid #e1e6ea;
184+
border: 1px solid #d8dbdf;
185185
box-shadow: 0px 3px 20px rgba( 18, 24, 30, .1 ), 0px 1px 3px rgba( 18, 24, 30, .1 );
186186
color: #12181e;
187187
display: inline-block;
188188
height: 38px;
189-
overflow: hidden;
190-
margin-left: 20px;
189+
margin-left: 14px;
191190
}
192191

193192
.docked-controls.is-image .inline-controls {
@@ -204,6 +203,7 @@ img.is-selected {
204203
cursor: pointer;
205204
display: block;
206205
float: left;
206+
color: #6d7882;
207207
}
208208

209209
.inline-controls button.do-not-work,
@@ -214,7 +214,9 @@ img.is-selected {
214214

215215
.inline-controls button:hover,
216216
.block-controls button:hover {
217-
background: #f0f2f4;
217+
background: #f8f9f9;
218+
outline: 1px solid #6d7882;
219+
position: relative;
218220
}
219221

220222
.inline-controls button:focus,
@@ -235,7 +237,10 @@ img.is-selected {
235237

236238
.inline-controls button.is-active,
237239
.block-controls button.is-active {
238-
background: #e0e5e9;
240+
background: #eef0f0;
241+
outline: 1px solid #6d7882;
242+
position: relative;
243+
color: #3e444c;
239244
}
240245

241246
.heading-dropdown .heading {
@@ -287,18 +292,13 @@ img.is-selected {
287292
border: none;
288293
margin: 0;
289294
padding: 0;
290-
}
291-
292-
.insert-block svg,
293-
.switch-block__block svg,
294-
.switch-block__block label {
295+
color: #87919d;
295296
cursor: pointer;
296-
fill: #87919d;
297297
}
298298

299-
.insert-block__button:hover svg,
300-
.switch-block__button:hover svg {
301-
fill: #12181e;
299+
.insert-block__button:hover,
300+
.switch-block__button:hover {
301+
color: #19a2d4;
302302
}
303303

304304
.insert-block__button:focus,

tinymce-per-block/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</head>
77
<body>
88
<div class="editor"></div>
9-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:300,300i,400,400i,700,700i">
9+
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i" rel="stylesheet">
1010
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.5.3/tinymce.min.js"></script>
1111
<script src="build/app.js"></script>
1212
<script src="../shared/navigation.js"></script>

tinymce-per-block/src/assets/stylesheets/theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.my-theme {
2-
font-family: "Merriweather", serif;
2+
font-family: "Noto Serif", serif;
33
font-size: 16px;
44
color: inherit;
55
font-weight: 300;

tinymce-per-block/src/blocks/embed-block/_style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
width: 100%;
4141
border: none;
4242
font: inherit;
43-
font-family: "Merriweather", serif;
43+
font-family: "Noto Serif", serif;
4444
font-weight: 300;
4545
font-size: 14px;
4646
color: $gray-dark-300;

tinymce-per-block/src/blocks/heading-block/_style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.heading-block__form {
22
width: 100%;
33
border: none;
4-
font-family: Merriweather, Georgia, "Times New Roman", Times, serif;
4+
font-family: "Noto Serif", Georgia, "Times New Roman", Times, serif;
55
color: inherit;
66
font-size: inherit;
77
font-weight: bold;

tinymce-per-block/src/blocks/html-block/_style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin: 0;
33
outline: none;
44
font: inherit;
5-
font-family: "Merriweather", serif;
5+
font-family: "Noto Serif", serif;
66
font-size: 16px;
77
color: inherit;
88
font-weight: 300;

tinymce-per-block/src/blocks/image-block/_style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
width: 100%;
4242
border: none;
4343
font: inherit;
44-
font-family: "Merriweather", serif;
44+
font-family: "Noto Serif", serif;
4545
font-weight: 300;
4646
font-size: 14px;
4747
color: $gray-dark-300;

tinymce-per-block/src/blocks/quote-block/_style.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
width: 100%;
33
border: none;
44
font: inherit;
5-
font-family: "Merriweather", serif;
5+
font-family: "Noto Serif", serif;
66
color: inherit;
77
font-weight: 300;
88
font-size: 20px;
@@ -21,7 +21,7 @@
2121
width: 100%;
2222
border: none;
2323
font: inherit;
24-
font-family: "Merriweather", serif;
24+
font-family: "Noto Serif", serif;
2525
font-weight: 300;
2626
font-size: 14px;
2727
color: $gray-dark-300;

tinymce-per-block/src/blocks/text-block/_style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
width: 100%;
44
border: none;
55
font: inherit;
6-
font-family: "Merriweather", serif;
6+
font-family: "Noto Serif", serif;
77
font-size: 16px;
88
color: inherit;
99
font-weight: 300;

tinymce-single/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<title>Editor Blocks Demo (Single TinyMCE Instance)</title>
77

8-
<link rel="stylesheet" type="text/css" href="https://s1.wp.com/i/fonts/merriweather/merriweather.css?v=20160210">
8+
<link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,400i,700,700i" rel="stylesheet">
99

1010
<link rel="stylesheet" type="text/css" href="../shared/index.css">
1111

0 commit comments

Comments
 (0)