Compare commits

...

6 Commits

Author SHA1 Message Date
4a7229b40f new font 2024-01-02 15:57:13 -06:00
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 155 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' ]
[ 'rookie-parent-style' ]
);
}

BIN
screenshot.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

149
style.css
View File

@@ -7,3 +7,152 @@ Author URI:
Template: rookie
Version: 0.1.0
*/
@import url('https://fonts.googleapis.com/css?family=Jost&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wdth,wght@6..12,75..125,200..1000&display=swap");
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
/* Heading Font */
h1,
h2,
h3,
h4,
h5,
h6,
caption,
.menu-toggle,
.main-navigation a,
.gallery-caption,
.wp-caption-text.gallery-caption,
.sp-table-caption,
.sp-template-countdown time span,
.sp-template-event-logos,
.sp-template .player-gallery-group-name,
.single-sp_staff .entry-header .entry-title strong {
font-family: "Nunito Sans", sans-serif;
font-stretch: extra-condensed;
font-weight:bolder;
text-transform:uppercase;
}
/* Body Font */
body,
button,
input,
select,
textarea,
.sp-template-countdown .event-name,
.sp-template-countdown .event-venue,
.sp-template-countdown .event-league,
.sp-template-countdown time span small,
.sp-template-event-blocks .event-title {
font-family: "Nunito Sans", sans-serif;
text-transform: none;
}
.site-title, .site-description {
font-family: "Nunito Sans";
/* text-shadow: 1px 1px 3px black; */
text-shadow: none;
}
body {
font-family: "Nunito Sans";
}
h1,h2,h3 {
font-family: "Nunito Sans";
text-transform: uppercase;
}
.site-title {font-family: Jost;}
.site-title, .site-description {
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;
}