From d79ef7e73e26557c2ab2f71ce12a0f1618bf94d0 Mon Sep 17 00:00:00 2001 From: Mel Choyce Date: Sat, 27 May 2017 15:03:08 +0000 Subject: [PATCH] About: Introduce design and add link to Media Widgets API dev note. Props: ryelle rclations melchoyce westonruter. See #40721. git-svn-id: https://develop.svn.wordpress.org/trunk@40849 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 50 +++++++++++++++------------ src/wp-admin/css/about.css | 69 +++++++++++++++++++------------------- 2 files changed, 63 insertions(+), 56 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index f3bd95c597..29e0352823 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -44,36 +44,45 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
-

-

-

you in mind.' ); ?>

-

three new media widgets covering images, audio, and video, an updated text widget that supports visual editing, and an upgraded news section in your dashboard which brings in nearby and upcoming WordPress events.' ); ?>

+
+

+

+

you in mind.' ); ?>

+

three new media widgets covering images, audio, and video, an updated text widget that supports visual editing, and an upgraded news section in your dashboard which brings in nearby and upcoming WordPress events.' ); ?>

+

-
+ +
-
-

-

-
-
-
-

-

+ + + + + + + +
-
+

+

+
+
+

+

+
+

-

@@ -90,7 +99,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); 'https://s.w.org/images/core/4.7/starter-content-v1.mp4', - 'poster' => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2', + 'poster' => 'https://cldup.com/ZS8FEi0AE9.png', 'width' => 1140, 'height' => 624, // 'class' => 'wp-video-shortcode feature-video', @@ -102,7 +111,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
-

@@ -110,6 +118,9 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

+
+ +

@@ -136,15 +147,12 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

is_super_admin(). Additionally, new hooks, network-specific site functions, and user count controls have been added.' ); ?>

-
- -

-

+

diff --git a/src/wp-admin/css/about.css b/src/wp-admin/css/about.css index 2dc72f53a6..debc8c9435 100644 --- a/src/wp-admin/css/about.css +++ b/src/wp-admin/css/about.css @@ -161,45 +161,41 @@ /* 1.2 - Structure */ -.about-wrap [class$=col] .col { - float: left; - position: relative; +.about-wrap [class$="-col"] { + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; +} + +.about-wrap .feature-section.one-col { + margin: 0 auto; + max-width: 700px; +} + +.about-wrap [class$="-col"] .col { + -webkit-flex: 1; + -ms-flex: 1; + flex: 1; } .about-wrap .two-col .col { - margin-right: 4.799999999%; - width: 47.6%; + min-width: 47%; + max-width: 47%; +} + +.about-wrap .three-col .col { + align-self: flex-start; + min-width: 31%; + max-width: 31%; } .about-wrap .two-col img { margin-bottom: 1.5em; } -.about-wrap .feature-section.two-col .col { - display: inline-block; - float: none; - margin-top: 1em; - margin-right: 4.799999999%; - width: -webkit-calc( 47.6% - 4px ); - width: calc( 47.6% - 4px ); - vertical-align: top; -} - -.about-wrap .three-col .col { - margin-right: 4.999999999%; - width: 29.95%; -} - -.about-wrap .two-col .col:nth-of-type(2n), -.about-wrap .three-col .col:nth-of-type(3n) { - margin-right: 0; -} - -.about-wrap .under-the-hood { - clear: both; - overflow: hidden; -} - .about-wrap .feature-video .mejs-controls { display: none !important; } @@ -298,9 +294,8 @@ padding-top: 35px; } -.about-wrap .headline-feature { - margin: 0 auto; - max-width: 80%; +.about-wrap .headline-feature img { + border: none; } .about-wrap .feature-section .media-container { @@ -446,6 +441,11 @@ column-count: 1; } + .about-wrap .two-col .col, + .about-wrap .three-col .col { + min-width: 48% !important; + } + .about-wrap .three-col img { display: block; margin: 0 auto; @@ -475,8 +475,7 @@ .about-wrap .two-col .col, .about-wrap .three-col .col { - width: 100% !important; - float: none !important; + min-width: 100% !important; } .about-wrap .under-the-hood.three-col .col,