Created
June 29, 2021 08:31
-
-
Save agrtechnology/482cb1a094b7e195292f966548a1cfe6 to your computer and use it in GitHub Desktop.
Example of CSS code, see our glossary entry for more information: https://agrtech.com.au/glossary/css-cascading-style-sheet/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
font-size: 15px; | |
font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif !important; | |
font-style: normal; | |
font-weight: 400 ; | |
color: #3a3a3a; | |
line-height: 1.5; | |
} | |
a { | |
color: #3a3a3a !important; | |
text-decoration: none !important; | |
} | |
.rte a:not(.btn) { | |
border-bottom: 1px solid currentColor; | |
padding-bottom: 1px; | |
} | |
.form-control:focus{ | |
box-shadow:none !important; | |
border:2px solid #000!important; | |
} | |
header{ | |
position:relative; | |
} | |
.form-control{ | |
border-radius:2px !important | |
} | |
.search-page .search-input{ | |
border-top-right-radius: 0 !important; | |
border-bottom-right-radius: 0 !important; | |
height:46px; | |
} | |
.search-form__connected-submit { | |
appearance: none; | |
margin: 0; | |
padding: 0; | |
background: none; | |
border: none; | |
font-size: inherit; | |
line-height: inherit; | |
cursor: pointer; | |
flex: 0 0 auto; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
width: 50px; | |
background-color: #3a3a3a; | |
border-radius: 0 2px 2px 0; | |
transition: background-color 100ms ease-in-out; | |
} | |
.search-form__connected-submit .icon-search { | |
fill: white; | |
width: 20px; | |
height: 20px; | |
} | |
.search-wrapper{ | |
position: absolute; | |
background: white; | |
width: 100%; | |
height: 100%; | |
z-index: 999; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.search-wrapper input { | |
padding-right: 45px; | |
width: 100%; | |
min-height: 44px; | |
border-radius: 2px; | |
} | |
.search-btn{ | |
position: absolute; | |
right: 25px; | |
color:black | |
} | |
.search-close{ | |
color:black | |
} | |
body, input, textarea, button, select, .disclosure__toggle { | |
font-size: 15px !important; | |
font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif; | |
font-style: normal; | |
font-weight: 400 !important; | |
color: #3a3a3a !important; | |
line-height: 1.5 !important; | |
} | |
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { | |
margin: 0 0 17.5px; | |
font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif; | |
font-style: normal; | |
font-weight: 700 !important; | |
line-height: 1.2; | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
} | |
h2, .h2 { | |
font-size: 1.33333em !important; | |
text-transform: uppercase; | |
letter-spacing: 0.1em; | |
} | |
h4, .h4 { | |
font-size: 1.13333em !important; | |
} | |
section{ | |
padding-top: 55px; | |
} | |
.brand-wrapper{ | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
position: relative; | |
} | |
.top-note{ | |
background-color: #3a3a3a; | |
color:white; | |
text-align:center | |
} | |
.top-note p{ | |
display: block; | |
padding: 11px 22px; | |
font-size: 1.06667em; | |
font-weight: 700; | |
} | |
.actions{ | |
display: inline; | |
justify-self: end; | |
position: absolute; | |
right: 40px; | |
display: flex; | |
align-items: center; | |
} | |
.actions a { | |
width: 40px; | |
height: 30px; | |
line-height: normal; | |
color: #3a3a3a !important; | |
font-size: 19px; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.actions a[data-toggle="collapse"] { | |
display:none | |
} | |
.actions a svg{ | |
width: 20px; | |
height: 20px; | |
} | |
.banner{ | |
background:url('../img/banner1.jpg'); | |
height:100vh; | |
width: 100%; | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-position: center center; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
text-align: center; | |
position:relative | |
} | |
.banner::before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
background-color: #685858; | |
opacity: 0.4; | |
z-index: 1; | |
} | |
.banner .container{ | |
z-index:999 | |
} | |
.banner h2 { | |
font-weight:700; | |
text-shadow: 0 0 4px rgb(0 0 0 / 40%); | |
text-transform: none; | |
letter-spacing: 0; | |
} | |
.banner p { | |
font-weight:700; | |
text-shadow: 0 0 4px rgb(0 0 0 / 40%); | |
} | |
.cust-btn{ | |
-moz-user-select: none; | |
-ms-user-select: none; | |
-webkit-user-select: none; | |
user-select: none; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
display: inline-block; | |
width: auto; | |
text-decoration: none !important; | |
text-align: center; | |
vertical-align: middle; | |
cursor: pointer; | |
border: 1px solid transparent; | |
border-radius: 2px; | |
padding: 8px 15px; | |
background-color: #3a3a3a; | |
color: white !important; | |
font-family: Helvetica, "Helvetica Neue", Arial, "Lucida Grande", sans-serif; | |
font-style: normal; | |
font-weight: 700 !important; | |
text-transform: uppercase; | |
letter-spacing: 0.08em; | |
white-space: normal; | |
font-size: 13px; | |
} | |
.cust-btn:not([disabled]):hover{ | |
color: white; | |
background-color: #606060; | |
} | |
h3, .h3 { | |
font-size: 1.73333em !important; | |
text-transform: none; | |
letter-spacing: 0; | |
} | |
.quote-icon { | |
display: block; | |
margin: 0 auto 20px; | |
} | |
.icon { | |
display: inline-block; | |
width: 20px; | |
height: 20px; | |
vertical-align: middle; | |
fill: currentColor; | |
} | |
.quotes-slider__text cite { | |
font-size: 0.75em; | |
font-style: normal; | |
} | |
blockquote cite { | |
display: block; | |
font-size: 0.85em; | |
font-weight: 400; | |
} | |
.quotes-slider__text { | |
font-size: 1em; | |
font-weight: 400; | |
font-style: normal; | |
padding: 0 15px; | |
} | |
blockquote cite::before { | |
content: '\2014 \0020'; | |
} | |
cite { | |
font-style: italic; | |
} | |
.quotes-slider__text p { | |
margin-bottom: 30px; | |
} | |
.text-center { | |
text-align: center !important; | |
} | |
blockquote { | |
font-size: 1.2em; | |
font-style: normal; | |
text-align: center; | |
padding: 0 30px; | |
margin: 0; | |
} | |
.site-footer { | |
color: #333232; | |
background-color: #f6f6f6; | |
margin-top: 55px; | |
padding: 45px 0 55px 0; | |
} | |
ul, ol { | |
margin: 0; | |
padding: 0; | |
list-style:none | |
} | |
.site-footer__linklist-item { | |
display: block; | |
padding: 15px 0; | |
} | |
.site-footer p, .site-footer__linklist-item a{ | |
color: #333232; | |
} | |
.site-footer__linklist-item a:hover, .site-footer__copyright-content a:hover { | |
color: #5a5858; | |
border-bottom: 1px solid #5a5858; | |
} | |
.payment-icons { | |
-moz-user-select: none; | |
-ms-user-select: none; | |
-webkit-user-select: none; | |
user-select: none; | |
cursor: default; | |
} | |
.list--inline > li { | |
display: inline-block; | |
margin-bottom: 0; | |
vertical-align: middle; | |
} | |
.payment-icons .icon { | |
width: 38px; | |
height: 24px; | |
fill: inherit; | |
} | |
.site-footer__copyright-content a{ | |
color: #333232; | |
} | |
.site-footer__hr { | |
border-bottom: 1px solid #dddddd !important; | |
} | |
nav{ | |
height:73px; | |
border-bottom:1px solid #ddd | |
} | |
.navbar-expand-lg .navbar-nav .nav-link{ | |
padding:0 !important | |
} | |
.navbar-expand-lg .navbar-nav .nav-link:hover{ | |
border-bottom:1px solid #3a3a3a; | |
} | |
.navbar-nav .nav-item{ | |
padding:12px; | |
} | |
.nav-item.active .nav-link{ | |
border-bottom:1px solid #3a3a3a; | |
} | |
@media only screen and (min-width: 750px){ | |
.banner h2 { | |
font-size: 4.33333em !important; | |
} | |
.banner p { | |
font-size: 1.53333em !important; | |
} | |
.section-header { | |
margin-bottom: 55px ; | |
} | |
.site-footer h4, .site-footer .h4 { | |
min-height: 1.26667em !important; | |
margin-bottom: 25px !important; | |
} | |
.site-footer__linklist-item { | |
padding: 0 30px 5px 0; | |
} | |
.site-footer__icon-list { | |
padding-bottom: 15px; | |
} | |
.site-footer__hr { | |
margin: 45px 0 20px 0 !important; | |
} | |
} | |
@media only screen and (max-width: 749px){ | |
.banner h2 { | |
font-size: 2.26667em !important; | |
} | |
.banner p { | |
font-size: 1.1em !important; | |
} | |
.banner{ | |
height: 488px !important; | |
} | |
.actions a[data-toggle="collapse"] { | |
display:flex | |
} | |
.navbar{ | |
height:auto; | |
padding: 0 !important; | |
} | |
.navbar .nav-link{ | |
width: 100%; | |
padding: 15px 30px !important; | |
} | |
.navbar .nav-item{ | |
border-bottom:1px solid #ddd | |
} | |
.navbar{ | |
border-bottom:1px solid #ddd; | |
border-top:1px solid #ddd; | |
} | |
.brand-wrapper{ | |
justify-content: space-between; | |
padding: 0px 20px; | |
} | |
.actions { | |
position: unset; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment