nancypannikkat/css/general.css

327 lines
4.9 KiB
CSS
Raw Normal View History

/*
Copyright Disclaimer: This Source Code is Copyright (c) 2022 Nancy Pannikkat. All Rights Reserved.
*/
html {
scroll-behavior: smooth;
}
2023-01-04 22:45:24 -08:00
body {
padding-top: 100px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Nav */
.nav-wrapper {
height: auto;
width: 100%;
top: 0;
left: 0;
position: fixed;
flex-wrap: nowrap;
2023-01-04 23:14:20 -08:00
background-color: rgba(229, 229, 229, 0.856);
box-shadow: 0 1px 6px 0 rgb(0 0 0 / 20%);
z-index: 100;
}
nav {
max-width: 1000px;
min-width: 600px;
margin: 5px auto;
padding: 17px;
display: flex;
justify-content: space-between;
}
nav * {
padding: 0;
margin: 0px 5px;
list-style: none;
box-sizing: border-box;
z-index: 100;
text-decoration: none;
}
.nav-left {
display: inline-flex;
align-items: center;
}
#nav-logo {
margin: 5px 0 0;
}
#nav-logo:hover {
transform: scale(1.01);
transition: 0.5s;
}
#nav-logo-a {
position: relative;
margin: 0;
margin-left: 10px;
}
nav ul {
margin-right: 20px;
}
nav ul li {
display: inline-flex;
line-height: 30px;
margin: 10px 7px;
padding: 3px 5px;
cursor: pointer;
}
.navlink {
color:rgb(160, 160, 160);
font-size: 18px;
text-decoration: none;
position: relative;
}
.navlink.active,a:hover {
color: rgba(54, 54, 54, 0.774);
transition: .5s;
}
.navlink::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0.1em;
background-color: rgb(97, 97, 97);
opacity: 1;
transition: opacity 300ms, transform 300ms;
transform: scale(0);
transform-origin: center;
}
.navlink:hover::after {
transform: scale(1);
}
.navlink.current::after {
transform: scale(1);
}
#nav-links-container {
display: inline-flex;
}
2023-01-04 22:45:24 -08:00
main {
width: 100%;
justify-content: center;
2023-01-04 22:45:24 -08:00
align-items: center;
position: relative;
margin: auto;
padding-top: 30px;
}
header {
margin: auto;
width: 100%;
height: auto;
padding: 30px 0;
}
2023-01-04 22:45:24 -08:00
.splide__slide {
2023-01-04 23:14:20 -08:00
padding: 0 10px 30px;
}
2023-01-04 22:45:24 -08:00
.slide-content {
max-width: 800px;
}
2023-01-04 22:45:24 -08:00
.slide-img {
width: 100%;
}
2023-01-04 23:14:20 -08:00
.slide-desc {
position: relative;
font-size: 18px;
padding: 5px 0;
text-align: center;
}
.splide__pagination__page.is-active {
background: #2c2c2c !important;
}
.about-parent {
display: flex;
width: auto;
height: auto;
margin: 20px auto;
max-width: 1000px;
2023-01-04 22:45:24 -08:00
min-width: 200px;
justify-content: center;
2023-01-04 22:45:24 -08:00
padding: 0 20px;
}
.about-img {
2022-11-20 22:30:34 -08:00
width: 400px;
height: 400px;
background: linear-gradient(rgba(10, 14, 18, 0.2) 50%, rgba(104, 104, 104, 0.37) 60%, rgb(188, 188, 188) 100%);
}
.about-desc {
2023-01-04 23:14:20 -08:00
padding: 0 20px;
font-size: 20px;
width: 500px;
}
/* Contact */
2023-01-04 22:45:24 -08:00
.contact {
text-align: center;
max-width: 1500px;
margin: 50px 0;
}
.topic {
font-size: 30px;
}
.line {
margin: 10px 0 0;
}
.contact-form {
margin-top: 30px;
min-width: 300px;
2023-01-04 22:45:24 -08:00
width: 100%;
padding-bottom: 20px;
margin: 30px auto;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
transition: background-color 5000s ease-in-out 0s;
-webkit-text-fill-color: #fff !important;
caret-color: #fff;
}
.contact-form div label {
color: black;
font-weight: 500;
}
.input-block {
2023-01-04 22:45:24 -08:00
background-color: #dddddd;
border-radius: 2px;
width: 100%;
height: 60px;
padding: 25px;
position: relative;
margin-bottom: 20px;
transition: all 0.3s ease-out;
color: black;
}
.input-block.focus {
2023-01-04 22:45:24 -08:00
filter: brightness(0.9);
transition: 0.5s;
}
.input-block.textarea {
height: auto;
font-size: 18px;
}
.form-control {
height: auto;
width: 100%;
resize: vertical;
font-family: "Glacial Indifference";
}
.input-block label {
position: absolute;
left: 25px;
top: 25px;
display: block;
margin: 0;
font-weight: 300;
z-index: 1;
color: rgb(199, 199, 199);
font-size: 18px;
line-height: 10px;
}
.input-block .form-control {
background-color: transparent;
padding: 5px;
border: none;
border-radius: 0;
box-shadow: none;
height: auto;
position: relative;
z-index: 2;
font-size: 18px;
color: rgb(30, 29, 29);
}
option {
background-color: #d8d8d8;
}
.input-block .form-control:focus label {
top: 0;
}
.square-button {
2023-01-04 22:45:24 -08:00
background-color: #dddddd;
color: #2c2c2c;
font-size: 26px;
text-transform: uppercase;
font-weight: 700;
text-align: center;
border-radius: 3px;
transition: all 0.3s ease;
height: 60px;
border: none;
width: 30%;
}
.square-button:hover, .square-button:focus {
2023-01-04 22:45:24 -08:00
filter: brightness(0.9);
cursor: pointer;
}
@media (min-width: 768px) {
.contact-wrap {
width: 60%;
margin: auto;
}
}
2022-11-20 22:30:34 -08:00
/* Footer */
footer {
width: 100%;
background-color: #e1e1e1;
}
.footer-container {
display: flex;
justify-content: space-between;
max-width: 800px;
2023-01-04 22:45:24 -08:00
min-width: 200px;
2022-11-20 22:30:34 -08:00
margin: auto;
2023-01-04 22:45:24 -08:00
padding: 0 20px;
2022-11-20 22:30:34 -08:00
}
.footer-copyright {
font-size: 18px;
padding: 5px 0;
}
.socials {
padding-top: 6px;
align-items: center;
float: right;
display: flex;
}
.socials-icon {
padding: 0 5px;
}