This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:invalid:not(:focus) { | |
color: red; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { font-family: sans-serif; max-width: 1300px; margin: 5rem auto; padding: 0 1rem; } | |
h1, h2, h3, ul, p { margin: 0 0 1rem 0; } | |
[hidden] { display: none !important; } | |
.item-list { | |
margin: 2.5rem 0; | |
padding: 0; | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); | |
grid-gap: 1rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Allow editors to see access the Menus page under Appearance but hide other options | |
function hide_menu() { | |
$user = wp_get_current_user(); | |
// Check if the current user is an Editor | |
if ( in_array( 'editor', (array) $user->roles ) ) { | |
// They're an editor, so grant the edit_theme_options capability if they don't have it | |
if ( ! current_user_can( 'edit_theme_options' ) ) { | |
$role_object = get_role( 'editor' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="myForm"> | |
<select id="select"> | |
<option value="pageSlug1">Page Title 1</option> | |
<option value="pageSlug2">Page Title 2</option> | |
<option value="pageSlug3">Page Title 3</option> | |
</select> | |
<button onclick="selectRedirect()">Submit</button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::redirect('.env', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ') | |
Route::redirect('wp-login.php', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ') | |
Route::redirect('wp-admin', 'https://www.youtube.com/watch?v=dQw4w9WgXcQ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:link {} | |
:visited {} | |
:hover {} | |
:active {} | |
:focus {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.parent { | |
display: grid; | |
place-items: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes slide-in-from-left { | |
from { | |
transfrom: translateX(-100%); | |
} | |
} | |
.class { | |
animation: slide-in-from-left .25s ease-in-out; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Headers out of order (i.e. h2 before h1, etc.) */ | |
h2 ~ h1, | |
h3 ~ h1, | |
h4 ~ h1, | |
h5 ~ h1, | |
h6 ~ h1, | |
h3 ~ h2:first-of-type, | |
h4 ~ h2:first-of-type, | |
h5 ~ h2:first-of-type, | |
h6 ~ h2:first-of-type, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flow > * + * { | |
margin-top: var(--flow-space, 1em); | |
} |
NewerOlder