Start Theme Repo

This commit is contained in:
2026-01-29 19:10:03 +01:00
commit 101179e994
84 changed files with 14654 additions and 0 deletions

View File

@@ -0,0 +1,145 @@
/*
* Customizer CSS
*
* Adjusts styling for theme option controls in the Customizer
*
* @package Treville
*/
.customize-control-checkbox {
margin-bottom: 4px;
}
#customize-control-treville_theme_options-retina_logo,
#customize-control-treville_theme_options-site_description,
#customize-control-treville_theme_options-theme_links,
#customize-control-treville_theme_options-pro_version,
#customize-control-treville_theme_options-magazine_blocks {
margin-bottom: 16px;
}
#customize-control-treville_theme_options-blog_description,
#customize-control-treville_theme_options-blog_layout,
#customize-control-treville_theme_options-excerpt_length,
#customize-control-treville_theme_options-read_more_text,
#customize-control-treville_theme_options-blog_magazine_widgets_title,
#customize-control-treville_theme_options-single_post_headline,
#customize-control-treville_theme_options-featured_images,
#customize-control-treville_theme_options-slider_category,
#customize-control-treville_theme_options-slider_limit,
#customize-control-treville_theme_options-slider_animation {
margin-top: 16px;
}
#customize-control-treville_theme_options-retina_logo_title,
#customize-control-treville_theme_options-post_meta_headline,
#customize-control-treville_theme_options-blog_magazine_widgets_title,
#customize-control-treville_theme_options-single_post_headline,
#customize-control-treville_theme_options-featured_images,
#customize-control-treville_theme_options-slider_activate {
margin-bottom: 0;
}
#customize-control-treville_theme_options-blog_layout {
padding: 0;
}
#customize-control-treville_theme_options-blog_description textarea {
height: 4em;
}
/* Magazine Widgets Button Controls */
#customize-theme-controls #magazine-widgets-buttons .add-new-widget {
margin-bottom: 10px;
}
#customize-theme-controls #magazine-widgets-buttons .add-new-magazine-widget::before,
#available-widgets [id*='widget-tpl-treville-magazine-'] .widget-title::before {
content: "\f116";
}
body.adding-widget #magazine-widgets-buttons .add-new-magazine-widget::before,
body.adding-widget.adding-magazine-widget #magazine-widgets-buttons .button.add-new-widget::before {
transform: rotate(0deg);
}
body.adding-widget #magazine-widgets-buttons .add-new-magazine-widget,
body.adding-widget.adding-magazine-widget #magazine-widgets-buttons .button.add-new-widget {
background: #f7f7f7;
border-color: #ccc;
box-shadow: 0 1px 0 #ccc;
color: #555;
cursor: not-allowed;
opacity: 0.2;
pointer-events: none;
}
body.adding-widget.adding-magazine-widget #magazine-widgets-buttons .add-new-magazine-widget {
background: #eee;
border-color: #929793;
box-shadow: 0 2px 5px -3px rgba(0, 0, 0, 0.5) inset;
color: #32373c;
cursor: pointer;
opacity: 1;
pointer-events: auto;
}
/* Magazine Homepage Available Sections */
.adding-magazine-widget #available-widgets #available-widgets-list > div,
.adding-magazine-widget #available-widgets #available-widgets-filter {
display: none !important;
visibility: hidden;
}
.adding-magazine-widget #available-widgets {
width: 400px;
left: -401px;
}
.adding-magazine-widget #available-widgets #available-widgets-list {
top: 0;
border-top: none;
}
.adding-magazine-widget #available-widgets #available-widgets-list [id*='widget-tpl-treville-magazine-'] {
display: block !important;
visibility: visible;
}
.adding-magazine-widget #available-widgets .widget-tpl {
float: left;
clear: left;
padding-left: 15px;
width: 100%;
box-sizing: border-box;
}
.adding-magazine-widget #available-widgets .widget-tpl .widget-title::before {
display: none;
}
.adding-magazine-widget #available-widgets .widget-tpl .widget-top::before {
display: block;
float: left;
font-size: 1px;
content: " ";
width: 120px;
height: 75px;
border: 1px solid #ccc;
margin: 0 15px 0 0;
}
.adding-magazine-widget #available-widgets [id*='widget-tpl-treville-magazine-'] .widget-top::before {
background-size: 100%;
background-repeat: no-repeat;
background-position: center;
background-color: #f2f2f2;
}
.adding-magazine-widget #available-widgets [id*='widget-tpl-treville-magazine-columns'] .widget-top::before {
background-image: url( '../images/magazine-columns.png' );
}
.adding-magazine-widget #available-widgets [id*='widget-tpl-treville-magazine-grid'] .widget-top::before {
background-image: url( '../images/magazine-grid.png' );
}

View File

@@ -0,0 +1,354 @@
/*
* Editor Style CSS
*
* Add styling for the Visual Editor
*
* @package Treville
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Container
2.0 - Typography
3.0 - Elements
4.0 - Alignments
5.0 - Captions
6.0 - Galleries
7.0 - Shortcodes
/*--------------------------------------------------------------
# 1.0 - Container
--------------------------------------------------------------*/
body {
margin: 0.5em 1.5em;
max-width: 830px;
}
/*--------------------------------------------------------------
# 2.0 - Typography
--------------------------------------------------------------*/
body {
color: #303030;
font-size: 17px;
font-size: 1.0625rem;
font-family: 'Gudea', Tahoma, Arial;
line-height: 1.75;
}
h1,
h2,
h3,
h4,
h5,
h6 {
clear: both;
}
p {
margin-bottom: 1.5em;
}
dfn,
cite,
em,
i {
font-style: italic;
}
blockquote {
margin: 0 1.5em;
}
address {
margin: 0 0 1.5em;
}
pre {
overflow: auto;
margin-bottom: 1.6em;
padding: 1.6em;
max-width: 100%;
background: #eee;
font-size: 15px;
font-size: 0.9375rem;
font-family: "Courier 10 Pitch", Courier, monospace;
line-height: 1.6;
}
code,
kbd,
tt,
var {
font-size: 15px;
font-size: 0.9375rem;
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}
abbr,
acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark,
ins {
background: #fff9c0;
text-decoration: none;
}
big {
font-size: 125%;
}
/*--------------------------------------------------------------
# 3.0 - Elements
--------------------------------------------------------------*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after { /* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
blockquote {
margin: 0 0 1.5em;
padding: 0.05em 1.25em 1em;
border: 1px solid #ddd;
border-left: 3px solid #ee4455;
color: #777;
font-style: italic;
font-size: 18px;
font-size: 1.125rem;
}
blockquote cite,
blockquote small {
display: block;
margin-top: 1em;
color: #404040;
font-size: 16px;
font-size: 1rem;
line-height: 1.75;
}
blockquote cite:before,
blockquote small:before {
content: "\2014\00a0";
}
blockquote em,
blockquote i,
blockquote cite {
font-style: normal;
}
blockquote > :last-child {
margin-bottom: 0.5em;
}
hr {
margin-bottom: 1.5em;
height: 1px;
border: 0;
background-color: #ccc;
}
ul,
ol {
margin: 0 0 1.5em;
padding: 0 0 0 1.25em;
}
ul {
list-style: disc;
}
ol {
list-style: decimal;
}
li > ul,
li > ol {
margin-bottom: 0;
margin-left: 1.5em;
}
dt {
font-weight: bold;
}
dd {
margin: 0 0 1.5em;
}
img {
max-width: 100%; /* Adhere to container width. */
height: auto; /* Make sure images are scaled correctly. */
}
table {
margin: 0 0 1.5em;
width: 100%;
border: none;
table-layout: fixed;
}
th,
td {
padding: 0.3em 0.6em;
border: 1px solid #ddd;
}
a {
color: #ee4455;
text-decoration: none;
}
a:link,
a:visited {
color: #ee4455;
}
a:hover,
a:focus,
a:active {
color: #303030;
}
a:focus {
outline: thin dotted;
}
a:hover,
a:active {
outline: 0;
}
/*--------------------------------------------------------------
# 4.0 - Alignments
--------------------------------------------------------------*/
.alignleft {
display: inline;
float: left;
margin-right: 1.5em;
}
.alignright {
display: inline;
float: right;
margin-left: 1.5em;
}
.aligncenter {
display: block;
clear: both;
margin-right: auto;
margin-left: auto;
}
/*--------------------------------------------------------------
# 5.0 - Captions
--------------------------------------------------------------*/
.wp-caption {
margin-bottom: 1.5em;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin: 0 auto;
}
.wp-caption-text {
text-align: center;
}
.wp-caption .wp-caption-text {
margin: 0.8075em 0;
}
/*--------------------------------------------------------------
# 6.0 - Galleries
--------------------------------------------------------------*/
.gallery {
margin-bottom: 1.25em;
}
.gallery-item {
display: inline-block;
box-sizing: border-box;
margin: 0;
padding: 0.75em 1em 0 0;
width: 100%;
vertical-align: top;
text-align: center;
}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
font-size: 13px;
font-size: 0.8125rem;
}
/*--------------------------------------------------------------
# 7.0 - Shortcodes
--------------------------------------------------------------*/
.wp-audio-shortcode a,
.wp-playlist a {
box-shadow: none;
}
.mce-content-body .wp-audio-playlist {
margin: 0;
padding-bottom: 0;
}
.mce-content-body .wp-playlist-tracks {
margin-top: 0;
}
.mce-content-body .wp-playlist-item {
padding: 10px 0;
}
.mce-content-body .wp-playlist-item-length {
top: 10px;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
/*
* Safari Flexbox CSS Fixes
*
* @package Treville
*/
/* Fix Flexbox issues for Safari 6.1-10.0 */
@media screen and ( min-color-index: 0 ) and ( -webkit-min-device-pixel-ratio: 0 ) {
@media {
.widget-magazine-posts .magazine-grid .post-column,
.sidebar .widget-wrap {
margin-right: -1px;
}
}
}
/* Fix Flexbox issues for Safari 10.1+ */
@media not all and ( min-resolution: .001dpcm ) {
@media {
.widget-magazine-posts .magazine-grid .post-column,
.sidebar .widget-wrap {
margin-right: -1px;
}
}
}

View File

@@ -0,0 +1,144 @@
/*
* Theme Info CSS
*
* CSS Stylesheet for Theme Info page on Appearance -> Theme Info
*
* @package Treville
*/
.theme-info-wrap {
position: relative;
margin: 25px 40px 0 20px;
max-width: 1050px;
}
.theme-info-wrap img {
max-width: 100%;
}
/* Clearing Floats */
.theme-info-wrap .clearfix:before, .theme-info-wrap .clearfix:after {
display: table;
content: " ";
}
.theme-info-wrap .clearfix:after {
clear: both;
}
.theme-info-wrap .clearfix {
*zoom: 1; /* For IE 6/7 only */
}
/* Columns */
.theme-info-wrap .columns-wrapper {
margin-right: -4em;
}
.theme-info-wrap .columns-wrapper .column {
float: left;
box-sizing: border-box;
padding-right: 4em;
}
.theme-info-wrap .columns-wrapper .column-half {
width: 50%;
}
.theme-info-wrap .columns-wrapper .column-third {
width: 33.3333333333333%;
}
.theme-info-wrap .columns-wrapper .column-quarter {
width: 25%;
}
/* Font Styles */
.theme-info-wrap h3 {
margin: 1em 0 0.6em;
font-size: 1.8em;
line-height: 1.5em;
}
.theme-info-wrap h4 {
margin: 0.2em 0;
font-size: 1.4em;
}
/* Theme Info Header */
.theme-info-wrap h1 {
margin: 0.2em 0 0 0;
color: #333333;
font-weight: 400;
font-size: 3.0em;
line-height: 1.2em;
}
.theme-info-wrap .theme-description {
margin: 1em 0;
min-height: 60px;
color: #777777;
font-weight: 400;
font-size: 1.4em;
line-height: 1.6em;
}
/* Important Links */
.theme-info-wrap .important-links p strong {
margin-right: 1em;
}
.theme-info-wrap .important-links p a {
padding: 0 1em;
}
.theme-info-wrap .important-links p .social-icons {
float: right;
}
.theme-info-wrap .important-links p a span {
display: inline-block;
width: 24px;
height: 24px;
color: #333;
vertical-align: text-bottom;
text-decoration: inherit;
text-decoration: none;
font-weight: normal;
font-style: normal;
font-size: 24px;
font-family: 'Genericons';
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.theme-info-wrap .important-links p a .genericon-mail:hover {
color: #aaa;
}
.theme-info-wrap .important-links p a .genericon-facebook:hover {
color: #3b5998;
}
.theme-info-wrap .important-links p a .genericon-twitter:hover {
color: #00aced;
}
/* Getting Started */
#getting-started {
margin: 2em 0;
}
#getting-started .section {
margin: 2em 0 4em;
}
#getting-started .section .about {
color: #777777;
font-size: 1.2em;
line-height: 1.6em;
}
/* More Features */
#more-features .section {
margin: 1em 0 3em;
}
#more-features .section .about {
color: #777777;
font-size: 1.2em;
line-height: 1.6em;
}
/* Theme Author */
#theme-author {
margin: 1em 0;
}
#theme-author p {
color: #777777;
font-size: 1.2em;
line-height: 1.6em;
}