Changeset 2489
- Timestamp:
- 02/09/2016 09:51:24 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/callout-boxes.php
r1430 r2489 131 131 132 132 // Message prefix. 133 $prefix = '<s trong>' . $this->shortcodes[ $shortcode ] . '</strong>';133 $prefix = '<span class="screen-reader-text">' . $this->shortcodes[ $shortcode ] . '</span>'; 134 134 135 135 // Content with prefix. … … 138 138 // Callout box output. 139 139 $output .= "<div class='callout {$class}'>"; 140 $output .= '<div class="dashicons"></div>'; // Icon holder141 140 $output .= apply_filters( 'the_content', $content ); 142 141 $output .= '</div>'; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/stylesheets/callout-boxes.css
r1550 r2489 1 1 .callout { 2 padding: 1 5px 40px 15px 46px;2 padding: 1em 3em 1em 3.7em; 3 3 margin-bottom: 1.5em; 4 4 overflow: auto; 5 5 position: relative; 6 } 7 .callout .dashicons { 8 position: absolute; 9 font-size: 2em; 10 top: 12px; 11 left: 10px; 6 border-width: 1px 1px 3px 1px; 7 border-style: solid; 12 8 } 13 9 .callout p { 14 10 margin-bottom: 0; 15 11 } 12 .callout p ~ p { 13 margin-top: 1em; 14 } 15 .callout:before { 16 content: ""; 17 font-family: "dashicons"; 18 position: absolute; 19 font-size: 2em; 20 top: 0.14em; 21 left: 0.5em; 22 } 23 .callout .screen-reader-text + br { 24 display: none; 25 } 16 26 .callout-info { 17 27 background: #e5f5fa; 18 border: 1px solid #00a0d2; 19 border-bottom: 3px solid #00a0d2; 28 border-color: #00a0d2; 20 29 } 21 .callout-info .dashicons:before {30 .callout-info:before { 22 31 content: "\f348"; 23 32 color: #00a0d2 ; … … 28 37 border-bottom: 3px solid #64b450; 29 38 } 30 .callout-tip .dashicons:before {39 .callout-tip:before { 31 40 content: "\f339"; 32 41 color: #64b450; … … 37 46 border-bottom: 3px solid #ffb900; 38 47 } 39 .callout-alert .dashicons:before {40 content: "\f 109";48 .callout-alert:before { 49 content: "\f227"; 41 50 color: #ffb900; 42 51 } … … 46 55 border-bottom: 3px solid #826eb4; 47 56 } 48 .callout-tutorial .dashicons:before {57 .callout-tutorial:before { 49 58 content: "\f308"; 50 59 color: #826eb4; … … 55 64 border-bottom: 3px solid #dc3232; 56 65 } 57 .callout-warning .dashicons:before {66 .callout-warning:before { 58 67 content: "\f153"; 59 68 color: #dc3232;
Note: See TracChangeset
for help on using the changeset viewer.