Changeset 51110
- Timestamp:
- 06/08/2021 08:36:36 PM (4 years ago)
- Location:
- trunk/src/wp-content/themes/twentythirteen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/css/blocks.css
r50346 r51110 371 371 .entry-content .wp-block-button__link:focus, 372 372 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):hover, 373 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus { 373 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):focus, 374 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover, 375 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):focus { 374 376 background: #ed6a31; 375 377 color: #fff; … … 377 379 378 380 .wp-block-button.is-style-outline .wp-block-button__link { 381 border-width: 2px; 382 border-color: inherit; 383 } 384 385 .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) { 379 386 background-color: inherit; 380 border-color: inherit;381 border-width: 2px;382 387 } 383 388 … … 406 411 border-top: 3px solid #b93207; 407 412 padding: 10px 24px 11px; 413 } 414 415 .entry-content .wp-block-button.is-style-no-shadow .wp-block-button__link { 416 border-bottom: none; 408 417 } 409 418 -
trunk/src/wp-content/themes/twentythirteen/css/editor-blocks.css
r50358 r51110 352 352 } 353 353 354 .is-style-outline .wp-block-button__link {354 .is-style-outline .wp-block-button__link:not(.has-text-color) { 355 355 border-width: 2px; 356 356 color: #e05d22; … … 360 360 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 361 361 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 362 } 363 364 .wp-block-button.is-style-no-shadow .wp-block-button__link { 365 border-bottom: none; 362 366 } 363 367 -
trunk/src/wp-content/themes/twentythirteen/functions.php
r51012 r51110 836 836 } 837 837 endif; 838 839 /** 840 * Register Custom Block Styles 841 * 842 * @since Twenty Thirteen 3.4 843 */ 844 if ( function_exists( 'register_block_style' ) ) { 845 function twentythirteen_register_block_styles() { 846 847 /** 848 * Register block style 849 */ 850 register_block_style( 851 'core/button', 852 array( 853 'name' => 'no-shadow', 854 'label' => __( 'No Shadow', 'twentythirteen' ), 855 'style_handle' => 'no-shadow', 856 ) 857 ); 858 } 859 add_action( 'init', 'twentythirteen_register_block_styles' ); 860 }
Note: See TracChangeset
for help on using the changeset viewer.