Skip to content

Instantly share code, notes, and snippets.

@linwoodc3
Created April 22, 2018 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linwoodc3/2812de55f058a9db3b57a181e915025f to your computer and use it in GitHub Desktop.
Save linwoodc3/2812de55f058a9db3b57a181e915025f to your computer and use it in GitHub Desktop.
A simple css file for the QB web app.
body {
background-color: #E5E5FF;
}
img.resize {
max-width:70%;
max-height:70%;
}
#the-string {
display: none;
}
body, html {
height: 100%;
}
body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
height: 100%;
color: #777;
line-height: 1.8;
}
/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.row {
min-height: 300px;
position: relative;
text-align: center;
}
.column_center {
display: inline-block;
padding: 20px;
}
/* First image (Logo. Full height) */
.bgimg-1 {
background-image: url("../images/pmanning.jpg");
min-height: 100%;
}
/* Second image (Portfolio) */
.bgimg-2 {
background-image: url("../images/brady1.jpg");
min-height: 400px;
}
/* Third image (Contact) */
.bgimg-3 {
background-image: url("../images/mahomes1.jpg");
min-height: 400px;
}
.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}
/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1024px) {
.bgimg-1, .bgimg-2, .bgimg-3 {
background-attachment: scroll;
}
.container {
overflow: hidden;
}
.parallax {
/* The image used */
background-image: url("../images/pmanning.jpg");
/* Full height */
height: 100%;
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.sliding-background {
background: url("../images/pmanning2.jpg") repeat-x;
height: 560px;
width: 5076px;
animation: slide 60s linear infinite;
}
@keyframes slide{
0%{
transform: translate3d(0, 0, 0);
}
100%{
transform: translate3d(-1692px, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment