Skip to content

Commit

Permalink
add advanced page cache
Browse files Browse the repository at this point in the history
  • Loading branch information
miriamgoldman committed Jul 29, 2024
1 parent b54d86c commit e182bef
Show file tree
Hide file tree
Showing 13 changed files with 2,761 additions and 0 deletions.
339 changes: 339 additions & 0 deletions wp-content/plugins/pantheon-advanced-page-cache/LICENSE

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.pantheon-page-cache hr {
display: none;
}
.pantheon-page-cache tr.cache-default-max-age {
display: block;
padding: 10px;
background: #ffffff;
color: #1e1e1e;
box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}
.pantheon-page-cache tr.cache-default-max-age td {
padding: 0;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age {
padding: 0 10px 10px 0;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age h3 {
margin-top: 0.5em;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age i {
margin-right: 10px;
line-height: 1em;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar {
background: #1d7afc;
color: #ffffff;
padding: 10px 0 10px 10px;
text-align: left;
display: block;
width: 100%;
margin-bottom: 1em;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a {
color: #ffffff;
text-decoration: underline;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:hover, .pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:active {
color: #ffffff;
text-decoration: none;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age select {
background-color: #ffffff;
color: #1e1e1e;
border: 1px solid #757575;
border-radius: 0;
}
.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-description {
color: #757575;
margin: 10px 0 0 0;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
.pantheon-page-cache {
hr {
display: none;
}

tr.cache-default-max-age {
display: block;
padding: $padding;
background: $white;
color: $charcoal;
box-shadow: $shadow;

td {
padding: 0;
}

.pantheon-cache-default-max-age {
padding: 0 $padding $padding 0;

h3 {
margin-top: 0.5em;
}

i {
margin-right: $padding;
line-height: 1.0em;
}

&-info-bar {
background: $blue;
color: $white;
padding: $padding 0 $padding $padding;
text-align: left;
display: block;
width: 100%;
margin-bottom: 1em;

a {
color: $white;
text-decoration: underline;
}

a:hover, a:active {
color: $white;
text-decoration: none;
}
}

select {
background-color: $white;
color: $charcoal;
border: 1px solid $gray;
border-radius: 0;
}

&-description {
color: $gray;
margin: $padding 0 0 0;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Colors
$blue: #1d7afc;
$white: #ffffff;
$gray: #757575;
$charcoal: #1e1e1e;

$shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);

$padding: 10px;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'mixins';
@import 'main';
Loading

0 comments on commit e182bef

Please sign in to comment.