Skip to content

Commit

Permalink
updated property table
Browse files Browse the repository at this point in the history
  • Loading branch information
davy440 committed Apr 14, 2024
1 parent 9989a8b commit 1cfbd36
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 130 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module.exports = function (grunt) {
dist: {
options: {
style: 'expanded',
update: true
update: true,
sourcemap: false
},
files: [
{
Expand Down
142 changes: 16 additions & 126 deletions assets/theme-styles/css/block-styles.css
Original file line number Diff line number Diff line change
@@ -1,127 +1,17 @@
:root {
--title-font: "League Spartan", sans-serif;
--body-font: "League Spartan", sans-serif;
--title-weight: 700;
--body-weight: 400;
--border-radius: 10px;
--body-text: black;
--excerpt: #999999;
--accent: #2e6d87;
--dark: #08445d;
--masthead-bg: white;
--link: #999999;
--link-hvr: #555555;
--nav-bg: #2e6d87;
--subnav-link: white;
--footer-bg: #08445d;
--footer-link: white;
--footer-text: white;
/* Error: unmatched "}".
* ,
* 88 | }
* | ^
* '
* assets/theme-styles/scss/block-styles.scss 88:1 root stylesheet */

body::before {
font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",
"Droid Sans Mono", monospace, monospace;
white-space: pre;
display: block;
padding: 1em;
margin-bottom: 1em;
border-bottom: 2px solid black;
content: 'Error: unmatched "}".\a \2577 \a 88 \2502 }\a \2502 ^\a \2575 \a assets/theme-styles/scss/block-styles.scss 88:1 root stylesheet';
}

.is-style-widget-title {
position: relative;
margin-top: 0;
margin-bottom: 0.625rem;
padding-bottom: 0.5rem;
font-size: 1.5rem;
}
.is-style-widget-title:before {
content: "";
position: absolute;
bottom: 0;
height: 4px;
width: 40px;
background-color: var(--accent);
}
.is-style-widget-title:after {
content: "";
position: absolute;
bottom: 0;
height: 4px;
left: 40px;
width: 40px;
background-color: #ddd;
}

.is-style-section-title {
position: relative;
padding-bottom: 0.5rem;
margin-bottom: 0.75rem;
}
.is-style-section-title:after {
content: "";
position: absolute;
bottom: 0;
left: 0;
height: 1px;
width: 100%;
background-color: rgba(0, 0, 0, 0.1);
}

.is-style-prop-table th,
.is-style-prop-table td {
padding: 0.25em 0.625rem;
}
.is-style-prop-table table thead {
background-color: var(--accent);
color: var(--footer-text);
}
.is-style-prop-table table tbody tr:nth-child(2n+1) {
background-color: #f5f5f5;
}
.is-style-prop-table table tfoot td {
padding: 0.5rem 0.6em;
}

.is-style-two-col-list {
grid-template-columns: 1fr 1fr;
}

.is-style-three-col-list {
grid-template-columns: 1fr 1fr 1fr;
}

.is-style-two-col-list,
.is-style-three-col-list {
display: grid;
column-gap: 1.25rem;
list-style: none;
padding: 0;
margin: 0;
}
.is-style-two-col-list li,
.is-style-three-col-list li {
display: flex;
align-items: center;
margin-bottom: 0.625rem;
}
.is-style-two-col-list li:before,
.is-style-three-col-list li:before {
content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48dGl0bGU+QXNzZXQgMTwvdGl0bGU+PHBhdGggZD0iTTEwLDBBMTAsMTAsMCwxLDAsMjAsMTAsMTAsMTAsMCwwLDAsMTAsMFptMCwxOGE4LDgsMCwxLDEsOC04QTgsOCwwLDAsMSwxMCwxOFpNMTQuNTksNS41OCw4LDEyLjE3LDUuNDEsOS41OSw0LDExbDQsNCw4LThaIiBmaWxsPSIjMGNiYzJkIi8+PC9zdmc+");
margin-right: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
}

.is-style-reach-out input :not([type=radio]) :not([type=checkbox]) :not([type=submit]),
.is-style-reach-out textarea {
padding: 0.5rem;
}

.is-style-sticky {
position: sticky;
position: -webkit-sticky;
height: fit-content;
top: 1rem;
}
body.admin-bar .is-style-sticky {
top: 3.875rem;
}
@media (min-width: 48.875rem) {
body.admin-bar .is-style-sticky {
top: 3rem;
}
}

/*# sourceMappingURL=block-styles.css.map */
2 changes: 1 addition & 1 deletion assets/theme-styles/css/block-styles.min.css

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

11 changes: 10 additions & 1 deletion assets/theme-styles/scss/block-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
}
}

.is-style-prop-table {
// .is-style-prop-table {

th,
td {
padding: 0.25em 0.625rem;
border: 0;
}

table {
Expand All @@ -66,6 +67,14 @@
&:nth-child(2n+1) {
background-color: #f5f5f5;
}

td {
border: 0;

&:first-child {
font-weight: 700;
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion inc/block-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function itre_block_style() {
'core/table',
array(
'name' => 'prop-table',
'label' => __('Property Table', 'it-residence'),
'label' => __('Address', 'it-residence'),
'style-handle' => 'itre-block-style'
)
);
Expand Down

0 comments on commit 1cfbd36

Please sign in to comment.