brc/css/styles.css

379 lines
5.6 KiB
CSS
Raw Normal View History

@import url("projects.css");
* {
box-sizing: border-box;
transition: all ease-in-out 250ms;
}
img {
max-width: 100%;
}
.container {
margin: 0 auto;
}
.clearfix::after,
section::after,
footer::after {
content: "";
display: block;
clear: both;
}
video {
width: 100%;
height: auto;
}
/* typography
=================== */
h1 {
font-weight: 300;
font-size: 1.7rem;
margin-top: 0;
}
p {
margin-top: 0;
line-height: 1.5;
}
.p1 {
color: #fff;
padding-top: 20px;
padding-right: 100px;
padding-bottom: 20px;
padding-left: 100px;
}
p:last-of-type {
margin-bottom: 0;
}
.title {
font-size: 2.5rem;
margin-bottom: 1.5em;
font-weight: 900;
margin-top: 1em;
}
.title span {
font-weight: 300;
display: block;
font-size: 0.9em;
2020-10-10 01:15:09 +02:00
margin: 10px;
}
.title-cta {
margin: 0 0 0.5em;
}
.unstyled-list {
margin: 0;
padding: 0;
list-style-type: none;
}
@media (min-width: 60rem) {
p {
font-size: 1.2rem;
line-height: 1.6;
}
.title {
font-size: 3.7rem;
}
}
/* Parallax
2020-10-13 11:07:55 +02:00
=================== */ /* Das sollte wohl mal DAS werden https://www.w3schools.com/howto/howto_css_parallax.asp */
2020-10-31 16:48:02 +01:00
/*.parallax--bg {
width: auto;
2020-10-31 16:48:02 +01:00
}*/
/* hero-home
=================== */
@media (min-width: 60rem) {
.home-hero {
height: 100vh;
padding-top: 35vh;
}
}
/* hero-home
=================== */
.home-about-textbox {
background-color: #232323;
padding: 10em 20%;
width: 100%;
outline: 2px solid#f9f9ed;
outline-offset: -2.5em;
color: #f9f9ed;
position: relative;
2020-10-14 23:31:26 +02:00
text-align: justify;
}
.home-about-textbox h1 {
color: #f9f9ed;
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 0.75em;
background: #232323;
padding: 0 0.145em;
}
@media (min-width: 25rem) {
h1 {
font-size: 2rem;
}
.home-about-textbox h1 {
top: 0.6em;
}
}
@media (min-width: 60rem) {
h1 {
font-size: 2.5rem;
}
.home-about {
background-repeat: no-repeat;
}
.home-about-textbox {
width: 100%;
outline-offset: -3.75em;
/* margin-left: -2.5%; */
text-align: left;
box-shadow: 0 0 4em 0 rgba(0, 0, 0, 0.3);
}
.home-about-textbox h1 {
top: 0.75em;
left: 6rem;
transform: translateX(0);
}
}
/* portfolio
=================== */
/* .portfolio {
margin: 3em 0 0;
} */
.port-item {
margin: 0;
position: relative;
}
.port-item img {
display: block;
}
.port-desc {
position: absolute;
z-index: 100;
bottom: 0em;
left: 0em;
right: 0em;
color: white;
background: rgba(0, 0, 0, 0.6);
padding-bottom: 2em;
}
.port-desc p {
margin: 1em;
}
@media (min-width: 37rem) {
.port-item {
width: 50%;
float: left;
}
}
@media (min-width: 60rem) {
.port-item {
width: 33.3333334%;
overflow: hidden;
}
.port-desc {
transform: translateY(150%);
}
.port-item:hover .port-desc {
transform: translateY(0%);
}
}
/* display flex */
.pointer {
cursor: pointer;}
.gallery-container {
width: 100%;
display: flex;
flex-wrap: wrap;
}
.gallery-item {
width: 50%;
margin-left: auto;
margin-right: auto;
}
@media screen and (max-width: 1000px) {
.gallery-item {
width: 100%;
}
}
/* Contact
=================== */
.contact-bg {
align-items: center;
background: url('../img/who-we-are.jpg');
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
justify-content: center;
}
.contact-info {
background: #80808090;
margin: 25vmin 0;
padding: 1.5rem;
}
@media screen and (max-width: 1000px) {
.contact-info h2 {
font-size: 14px;
}
}
.gallery-description {
display: none;
}
.modal-gallery-all {
display: none;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 1;
padding: 20px;
background-color: rgba(0, 0, 0, 0.8);
cursor:pointer;
}
.modal-gallery-txt-img-container {
max-height: 100%;
overflow-y: auto;
height: fit-content;
margin: auto;
}
.modal-gallery-all-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
height: fit-content;
margin: auto;
cursor:pointer;
}
.modal-all-img {
width: 260px;
max-width: 90%;
margin: 20px;
}
.modal-gallery {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 2;
padding: 15% 0;
background-color: rgba(0, 0, 0, 0.8);
}
.modal-gallery-outer-cont {
margin: auto;
display: flex;
flex-direction: column;
}
.modal-gallery-container {
display: flex;
justify-content: center;
}
.modal-gallery-image {
max-width: 80%;
}
.modal-gallery-button-prev {
visibility: hidden;
pointer-events: none;
margin: auto 20px;
padding: 10px;
}
.modal-gallery-button-prev:hover {
cursor: pointer;
}
.modal-gallery-button-next {
margin: auto 20px;
padding: 10px;
}
.modal-gallery-button-next:hover {
cursor: pointer;
}
.modal-gallery-close {
margin-left: auto;
}
.modal-gallery-close:hover {
cursor: pointer;
}
/* CTA
=================== */
.cta {
background-color: #f9f9ed;
padding: 5em 0;
}
/* Footer
=================== */
footer {
background: #232323;
color: #f9f9ed;
text-align: left;
padding: 5em 0;
}