Skip to content

Instantly share code, notes, and snippets.

@crbdev
crbdev / edit-entry-button styles.css
Created April 13, 2021 07:34
Styling the buttons on the edit entry page (as seen on the GravityView blog)
/* Update button */
#publishing-action .gv-button-update {
background-color: #4CAF50;
border: 2px solid #4CAF50;
color: #ffffff;
padding: 15px 32px;
text-align: center;
font-size: 16px;
}
@crbdev
crbdev / search-bar-styles.css
Last active May 19, 2021 11:11
GravityView search bar styles as seen on the GravityView blog
/* Container */
.gv-search-horizontal {
box-shadow: 0px 0px 5px 2px #b3b3b3;
padding:20px;
border-radius:17px;
}
/* search bar */
.gv-search-box input[type=search] {
border-radius: 10px;
<div class="e-wrapper">
<p class="e-alias">
"{Alias:4}"
</p>
<p class="e-name">
{Name (First):1.3} {Name (Last):1.6}
</p>
<p class="e-position">
{Position:3}
</p>
.e-wrapper {text-align:center; color:#ffffff;}
.e-socials {display: flex; justify-content:space-between; max-width:100px; margin:0 auto;}
.e-alias {font-size:22px; color: #FBCC01;}
.e-name {font-size:18px;}
.e-position {font-size:16px;}
.e-socials img {width:20px; filter: invert(70%) sepia(0%) saturate(2%) hue-rotate(5deg) brightness(100%) contrast(100%); margin-bottom:15px !important; margin-top:10px !important;}
@crbdev
crbdev / gv-table-styles.css
Last active January 4, 2023 12:55
Styles applied to the GV Table layout when used to create a report card (GravityKit blog)
.gv-container table td {
border:1px solid #444444 !important;
}
.gv-container table {
border-collapse:collapse;
}
.gv-container table td, #customers th {
border: 1px solid #ddd;
@crbdev
crbdev / yellow-pages-clone.html
Last active May 16, 2023 09:05
Style for the geolocation directory demo and "Yellow Pages clone"
<style>
.gv-list-multiple-container.gv-container{
display:flex;
flex-wrap: wrap;
justify-content:center;
}
.gv-list-multiple-container.gv-container .gv-list-view {
margin-right: 10px;
@crbdev
crbdev / zillow-clone-styles.html
Last active May 16, 2023 09:34
As used in the "How to create a Zillow clone on WordPress with no code" blog post
<style>
.gv-list-multiple-container.gv-container {
display:flex;
flex-wrap: wrap;
justify-content:center;
margin-top:20px;
}
.gv-container img {
width:100% !important;
}
@crbdev
crbdev / job-board.html
Created May 17, 2023 08:03
Styles used for the job board featured on the GravityKit demo site and blog
<div class="job-type">
<div>
<p>
<span>{Type:3}</span><span>{Category:2}</span>
</p>
</div>
<div class="job-info">
<p class="job-featured">
{Listing properties:7:value}
</p>
@crbdev
crbdev / craigslist-clone.html
Created May 19, 2023 03:19
As used on the GravityKit blog
<style>
.gv-list-multiple-container.gv-container {
display:flex;
flex-wrap: wrap;
justify-content:center;
margin-top:20px;
}
.gv-container img {
width:100% !important;
}
<style>
.gv-list-multiple-container.gv-container{
display:flex;
flex-wrap: wrap;
justify-content:center;
margin-top:20px;
}
.gv-list-multiple-container.gv-container .gv-list-view {
margin-right: 20px;
width: 340px;