Compare commits

...

5 Commits

Author SHA1 Message Date
90bfc3df69 first stab at styling 2023-12-29 18:35:56 -06:00
e7c23969b4 gitignore 2023-12-29 18:35:50 -06:00
2b705e2001 incorporate customization css 2023-12-29 15:47:39 -06:00
9bfb71c4d4 Update to work correctly with parent scripts 2023-12-29 15:46:53 -06:00
b14c982f5c screenshot.png 2023-12-29 15:46:26 -06:00
4 changed files with 101 additions and 5 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
dist/*

View File

@@ -1,21 +1,21 @@
<?php
/**
* Tonys-rookie-enhancements Theme functions and definitions.
* Tony's Rookie Ehancements Theme functions and definitions.
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package tonys-rookie-enhancements
*/
add_action( 'wp_enqueue_scripts', 'rookie_parent_theme_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'rookie_parent_theme_enqueue_styles', 11);
/**
* Enqueue scripts and styles.
*/
function rookie_parent_theme_enqueue_styles() {
wp_enqueue_style( 'rookie-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'rookie-parent-style', get_template_directory_uri() . '/style.css');
wp_enqueue_style( 'tonys-rookie-enhancements-style',
get_stylesheet_directory_uri() . '/style.css',
[ 'rookie-style' ]
get_stylesheet_directory_uri() . '/style.css',
[ 'rookie-parent-style' ]
);
}

BIN
screenshot.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -7,3 +7,98 @@ Author URI:
Template: rookie
Version: 0.1.0
*/
@import url('https://fonts.googleapis.com/css?family=Jost&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
.site-title, .site-description {
font-family: Jost;
color: white;
/* offset-x | offset-y | blur-radius | color */
text-shadow: 1px 1px 10px black;
}
@media only screen and (max-width: 600px) {
.site-description {
display: none;
}
.site-title{
font-size: 1em;
text-shadow:none;
}
.header-area.header-area-custom {
background-image: none !important;
background-color: rgb(13, 71, 133);
border-bottom: none;
}
.site-logo img {
max-height: 40px;
margin-top: 0px;
margin-bottom: 0px;
}
.header-area-custom .site-branding {
padding: 14px;
min-height: 50px;
}
.sp-data-table th.data-rank, .sp-data-table td.data-rank {
display: none;
}
}
.sp-event-list span.team-0::after{
content: " (V)";
font-size: 0.8em;
color: gray;
}
.sp-event-list span.team-1::after{
content: " (H)";
font-size: 0.8em;
color: gray;
}
.sp-league-table th {
/* font-family: Oswald, sans-serif;
text-transform: uppercase;
background-color: rgb(13, 71, 133);
color: white;
border: none; */
}
.sp-data-table thead tr th {
border-top: 2px solid black;
border-bottom: 2px solid black;
text-transform: uppercase;
}
.sp-data-table tbody td.data-name {
font-weight: bold;
text-transform: uppercase;
}
@media only screen and (min-width: 600px) {
.header-area-custom .site-logo {
margin-top: 0px;
margin-bottom: 0px;
}
.site-logo img {
max-height: 90px;
}
.header-area-custom .site-branding {
padding: 0.8em;
min-height: 100px;
}
}
.wp-block-table td {
border-color: #d8d9da;
}
.wp-block-table th {
border-color: #d8d9da;
}