Order allow,deny
Deny from all
Order allow,deny
Allow from all
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /
DirectoryIndex index.php
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Order allow,deny
Deny from all
Order allow,deny
Allow from all
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /
DirectoryIndex index.php
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
/*
Theme Name: CC Vocabulary Theme
Author: the Creative Commons team; possumbilities, Timid Robot
Author URI: https://opensource.creativecommons.org/
Description: Theme based on the Vocabulary Design System
Version: 1.13
Requires at least: 5.0
Tested up to: 6.2.2
Requires PHP: 7.0
License: MIT License
License URI: https://github.com/creativecommons/vocabulary-theme/blob/main/LICENSE
*/
@import 'vocabulary/css/vocabulary.css' layer(vocabulary);
@import 'chooser/css/chooser.css' layer(chooser);
/* WordPress specific rules */
/* Mainly for hiding the pagination heading WP provides */
.screen-reader-text {
height: 0;
margin: 0;
padding: 0;
visibility: hidden;
}
/* Classic Editor TinyMCE WYSIWYG editor image alignment */
/* TODO: port in alignleft and alignright rules here as well? */
main figure:has(img.aligncenter) {
width: 100%;
margin-left: 0;
}
/* Classic Editor TinyMCE WYSIWYG editor image alignment, previous theme's markukp */
/* presently */
div[id^="attachment_"] {
width: 120%;
margin: 0;
margin-left: -10%;
margin-bottom: 3em;
padding: 0;
float: none;
}
/* presently
*/
div[id^="attachment_"] img[class^="wp-image"]:not([width]) {
width: 100%;
}
/* presently article:nth-of-type(3) {
background:var(--vocabulary-brand-color-tomato);
}
.home-narrative > article:nth-of-type(3) footer {
background: white;
} */
/* .home-narrative > article:nth-of-type(4) {
background:var(--vocabulary-brand-color-gold);
} */
.home-narrative main {
margin-top: 3.4em;
margin-right: 0;
margin-bottom: 0;
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 400;
}
.home-narrative main > header {
margin-bottom: 0;
}
.home-narrative main > article > h2 {
margin-bottom: .2em;
font-style: normal;
font-weight: 700;
text-transform: uppercase;
font-size: 2.865em;
}
.home-narrative main > article:nth-of-type(1) > h2 {
margin-top: 0;
font-size: 3.56em;
}
.home-narrative main p {
font-size: 1.5em;
line-height: 150%;
}
.home-narrative main ul {
font-size: 1rem;
}
.home-narrative .topic-summary {
grid-column: 2 / span 9;
display: grid;
grid-template:
"title graphic graphic"
"description graphic graphic"
"button graphic graphic";
display: grid;
grid-template-columns: 1fr 1fr;
margin-bottom: 6.4em;
gap: 0 4em;
}
.home-narrative .topic-summary h2 {
grid-area: title;
}
.home-narrative .topic-summary img {
width: 100%;
height: 200px;
grid-area: graphic;
margin-top: 3.1em;
background: black;
}
.home-narrative .topic-summary figure {
width: 100%;
grid-area: graphic;
margin: 0;
padding: 0;
margin-top: .6em;
}
.home-narrative .topic-summary figure iframe {
height: 70%;
background: black;
}
.home-narrative .topic-summary .description {
grid-area: description;
}
.home-narrative .topic-summary .description p {
margin-bottom: 1em;
}
.home-narrative .topic-summary .description a {
display: inline;
box-sizing: border-box;
grid-column-start: 1;
grid-row-start: 3;
text-transform: uppercase;
font-size: 1.5em;
font-weight: 700;
}
.home-narrative .case-studies {
grid-column: 1 / span 11;
padding: 0 5%;
padding-top: 3.5em;
position: relative;
color: white;
}
.home-narrative .case-studies:before {
content: '';
width: 100%;
height: 75%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
background: var(--vocabulary-brand-color-tomato);
}
.home-narrative .case-studies > ul a {
color: white;
--underline-background-color: var(--vocabulary-brand-color-tomato);
}
.home-narrative .case-studies > ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 2em;
margin: 0;
padding: 0;
list-style: none;
}
.home-narrative .case-studies > ul figure {
margin-bottom: 0;
}
.home-narrative .case-studies > ul figure img {
object-fit: cover;
height: 200px;
}
.home-narrative .case-studies footer {
margin: 0 0;
margin-top: 4em;
margin-bottom: 3em;
padding: 2em;
background: white;
color: black;
}
.home-narrative .data-points {
}
.home-narrative .data-points ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 3em;
margin: 0;
padding: 0;
list-style-type: none;
}
.home-narrative .data-points .data-point {
display: flex;
flex-direction: column;
}
.home-narrative .data-points .data-point.wikipedia h2 {
text-indent: -10000px;
min-height: 150px;
background: center center no-repeat;
background-size: contain;
margin-top: .5em;
margin-bottom: 0;
}
.home-narrative .data-points .data-point.the-met h2 {
text-indent: -10000px;
min-height: 150px;
background: center center no-repeat;
background-size: contain;
margin: 0 auto;
margin-top: .5em;
margin-bottom: 0;
}
.home-narrative .data-points .data-point.khan-academy h2 {
text-indent: -10000px;
min-height: 150px;
width: 90%;
background: center center no-repeat;
background-size: contain;
margin: 0 auto;
margin-top: .5em;
margin-bottom: 0;
}
.home-narrative .data-points .data-point .stat {
order: 3;
text-transform: uppercase;
}
.home-narrative .data-points .data-point p {
margin-bottom: 0;
font-size: 1em;
}
.home-narrative main .posts {
grid-column: 2 / span 9;
padding-top: 4em;
}
.home-narrative main .posts h2 {
text-align: center;
}
.home-narrative main .posts ul {
display: grid;
grid-template-columns: repeat(12, 1fr);
margin-top: 8em;
gap: 2em;
box-sizing: border-box;
width:100%;
margin: 0 auto;
margin-top: 0;
font-size: 1rem;
list-style: none;
}
.home-narrative main .posts ul li {
grid-column: span 4;
}
.home-narrative main .posts ul li h3 {
font-size: 1.5em;
}
.home-narrative main .posts .post figure {
order: -1;
}
/* targets the featured posts section */
.home-narrative main .posts.featured {
grid-column: 1 / span 11;
margin-bottom: 3em;
background: var(--vocabulary-neutral-color-lighter-gray);
}
.home-narrative main .posts.featured .post h3 {
font-size: 1.4em;
}
.home-narrative main .posts.featured ul li:nth-child(1) h3 {
font-size: 2.1em;
}
.home-narrative main .posts.featured .post a {
--underline-background-color: var(--vocabulary-neutral-color-lighter-gray);
}
.home-narrative main .posts.featured li:nth-of-type(1) .post a {
--underline-background-color: white;
}
.home-narrative main .posts.featured li:nth-of-type(1) .post figure {
order: initial;
}
.home-narrative main .posts.featured ul {
padding: 0 var(--vocabulary-page-edges-space);
}
.home-narrative main .posts.featured ul li {
grid-column: span 3;
}
.home-narrative main .posts.featured ul li:nth-of-type(1) {
grid-column: span 12;
background: white;
}
.home-narrative main .posts.featured ul li:nth-of-type(1) article.post {
margin-bottom: 1em;
padding: 4em;
}
.home-narrative main > footer {
grid-column: 1 / span 11;
display: grid;
grid-template-columns: subgrid;
padding-top: 3em;
padding-bottom: 8em;
background: var(--vocabulary-neutral-color-lighter-gray);
}
.home-narrative main > footer .attribution-list {
grid-column: 2 / span 9;
background: none;
border: 2px solid var(--vocabulary-neutral-color-dark-gray);
}
/* faq-index context */
/* .faq-index main > header {
display: block;
padding: 3.7em 0;
} */
.faq-index .search-form form {
display: flex;
width: 100%;
margin-top: 1em;
margin-bottom: 1em;
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 700;
font-size: 1em;
}
.faq-index .search-form form input {
flex: 1;
width: 100%;
height: 4em;
padding: .2em 1em;
outline: none;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border: 2px solid black;
}
.faq-index .search-form form button {
width: 10%;
cursor: pointer;
background: black;
color: white;
border: none;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.faq-index main > .content {
grid: subgrid;
grid-column: 1 / span 11;
display: grid;
grid-template-columns: subgrid;
}
.faq-index main > .content > * {
grid-column: 5 / span 3;
}
.faq-index main > .content > .toc {
grid-column: 3 / span 7;
display: grid;
grid-template-columns: subgrid;
}
.faq-index .toc > h2 {
grid-column: 3 / span 3;
}
.faq-index .toc > ul {
grid-column: 3 / span 3;
}
.faq-index .toc > ul li {
line-height: 1.8;
}
.faq-index .toc article.featured {
grid-column: 1 / span 7;
padding: 3em 4em;
margin-bottom: 4em;
z-index: 1000;
background: var(--vocabulary-neutral-color-lighter-gray);
}
.faq-index .toc article.featured a {
--underline-background-color: var(--vocabulary-neutral-color-lighter-gray);
}
.faq-index .toc article.featured > ul {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 2em;
margin: 0;
list-style: none;
font-size: 1em;
}
.faq-index .toc article.featured h3 {
font-size: 1.4em;
}
.faq-index .toc article.featured p {
font-size: 1.2em;
}
.faq-index .toc ul.frequent-questions {
font-size: 1em;
}
.faq-index .edit {
display: inline-block;
width: initial;
/* position: absolute; */
/* top: 0; */
/* right: 0; */
}
.faq-index details, .faq-page details {
margin-bottom: 2em;
border: 2px solid var(--vocabulary-neutral-color-lighter-gray);
border-radius: 5px;
}
.faq-index details:open summary, .faq-page details:open summary {
margin-bottom: 1em;
}
.faq-index summary, .faq-page summary {
padding: .2em .5em;
background: var(--vocabulary-neutral-color-lighter-gray);
font-size: 1.2em;
}
.faq-index summary:hover, .faq-page summary:hover {
cursor: pointer;
}
.faq-index summary::marker, .faq-page summary::marker {
font-size: .8em;
}
.faq-index details ul, .faq-page details ul {
margin-left: 2em;
}
.faq-index details ul li, .faq-page details ul li {
line-height: 1.8;
}
.faq-index main .content > h4, .faq-page main .content > h4 {
font-family: 'Roboto Condensed';
font-size: 1.4em;
}
.faq-index main p, .faq-page main p {
margin-top: 0;
}
.faq-index footer, .faq-page footer {
z-index: 1000;
}
.faq-page .breadcrumbs {
font-family: 'Source Sans Pro';
}
.return-to-top {
display: inline-block;
position: absolute;
top: 90%;
right: 5%;
height: 300%;
width: 100px;
font-family: 'Source Sans Pro';
}
.return-to-top span {
position: fixed;
padding-bottom: 5px;
border-bottom: 2px solid var(--vocabulary-brand-color-dark-tomato);
}
.return-to-top span:before {
content: '';
position: absolute;
left: 32%;
top: -1em;
font-size: 2em;
}
.return-to-top:after {
position: absolute;
bottom: 5%;
left: 0;
display: block;
content: '';
height: 100%;
width: 100%;
z-index: 500;
background: white;
}
/* course-index, course-page contexts */
.course-index > header {
display: none;
}
.course-index > footer {
/* display: none; */
}
.course-page > header {
display: none;
}
.course-page > footer {
/* display: none; */
}
.course-embedded > header {
display: none;
}
.course-embedded > footer {
display: none;
}
.course-embedded nav.breadcrumbs ul, .course-page nav.breadcrumbs ul, .course-index nav.breadcrumbs ul {
display: flex;
margin: 0;
justify-content: space-between;
list-style: none;
text-align: left;
font-size: .9em;
}
.course-embedded nav.breadcrumbs ul li:after, .course-page nav.breadcrumbs ul li:after, .course-index nav.breadcrumbs ul li:after {
content: '>';
padding: 0 .5em;
}
.course-embedded nav.breadcrumbs ul li:last-child:after, .course-page nav.breadcrumbs ul li:last-child:after, .course-index nav.breadcrumbs ul li:last-child:after {
display: none;
}
.course-page details {
margin-bottom: 2em;
font-family: 'Source Sans Pro';
border: 2px solid var(--vocabulary-neutral-color-lighter-gray);
border-radius: 5px;
}
.course-page details:open summary {
margin-bottom: 1em;
}
.course-page summary {
padding: .2em .5em;
background: var(--vocabulary-neutral-color-lighter-gray);
font-size: 1.2em;
}
.course-page summary:hover {
cursor: pointer;
}
.course-page summary::marker {
font-size: .8em;
}
.course-page details ul {
margin-left: 2em;
}
.course-page details ul li {
line-height: 1.8;
}
@media (min-width: 1500px) {
.home-narrative .data-points .data-point.khan-academy h2 {
text-indent: -6000px;
}
}
@media (max-width: 1140px) {
.home-narrative main footer .attribution-list ul.expand {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 900px) {
.home-narrative main .case-studies {
background: var(--vocabulary-brand-color-tomato);
padding: 5%;
}
.home-narrative .case-studies footer {
margin: 0;
margin-top: 2em;
padding: 0;
}
.home-narrative .data-points ul {
/* display: block; */
box-sizing: border-box;
width: 90%;
margin: 0 auto;
/* padding: 0 1em; */
}
.home-narrative main .posts ul {
display: flex;
flex-wrap: wrap;
}
.home-narrative main footer {
width: 100%;
box-sizing: border-box;
}
.faq-index .toc article.featured > ul {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 705px) {
.home-narrative .topic-summary {
display: block;
}
.home-narrative .topic-summary figure {
display: none;
}
.home-narrative .case-studies > ul {
grid-template-columns: 1fr 1fr;
}
.home-narrative .data-points ul {
display: block;
padding-top: 2em;
}
.home-narrative main article.posts.featured > ul li:nth-child(1) {
padding: 2em;
}
.home-narrative main .posts {
padding: 0 var(--vocabulary-page-edges-space);
}
.home-narrative main footer .attribution-list ul.expand {
display: block;
}
}
@media (max-width: 480px) {
.faq-index .toc article.featured > ul {
display: block;
}
}
@media (max-width: 425px) {
.home-narrative .attribution-list {
padding: 2em;
}
.home-narrative .attribution-list h2 {
width: 50%;
hyphens: auto;
word-break: break-word;
}
}
@media (max-width:480px) {
.home-narrative .case-studies > ul {
display: block;
}
.home-narrative .case-studies > ul li {
margin-bottom: 3em;
}
}
@media (max-width: 425px) {
.home-narrative .attribution-list {
padding: 2em;
}
.home-narrative .attribution-list h2 {
width: 50%;
font-size: .5em;
hyphens: auto;
word-break: break-word;
}
}
/* patches */
/* main > article figure img, main > figure img {
width: 100%;
} */
main .content ul, main .content ol {
line-height: 150%;
}
.chooser-page main .content ul, .chooser-page main .content ol {
line-height: 100%;
}
/* Classic Editor TinyMCE WYSIWYG editor image alignment */
/* TODO: port in alignleft and alignright rules here as well? */
main figure:has(img.aligncenter) {
width: 100%;
margin-left: 0;
}
/* Classic Editor TinyMCE WYSIWYG editor image alignment, previous theme's markukp */
/* presently */
div[id^="attachment_"] {
width: 120%;
margin: 0;
margin-left: -10%;
margin-bottom: 3em;
padding: 0;
float: none;
}
/* presently
*/
div[id^="attachment_"] img[class^="wp-image"]:not([width]) {
width: 100%;
}
/* presently