Skip to content

Commit

Permalink
Merge pull request #1 from miriamgoldman/pr-test
Browse files Browse the repository at this point in the history
add advanced page cache
  • Loading branch information
miriamgoldman authored Jul 29, 2024
2 parents b54d86c + c776299 commit 6ecdbc9
Show file tree
Hide file tree
Showing 14 changed files with 2,764 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Deploy to Pantheon
on:
push:
branches:
- '**'
- master
pull_request:
types: [opened, reopened]

branches:
- master
jobs:
configure_env:
name: Configure environment and Terminus
Expand Down
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 6ecdbc9

Please sign in to comment.