Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @font-face {
- font-family: 'Karla', sans-serif;
- src: url('theme/fonts/Karla/Karla-Regular.ttf') format('truetype');
- src: url('theme/fonts/Karla/Karla-Regular.woff2') format('woff2');
- font-weight: normal;
- font-style: normal;
- }
- *{
- padding: 0;
- margin: 0;
- text-decoration: none;
- list-style: none;
- font-family: 'Karla', sans-serif;
- }
- body{
- min-height: 100vh;
- width: 100%;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- font-family: var(--body-font);
- font-size: var(--normal-font-size);
- background-color: white;
- font-family: 'Karla';
- font-size: 16px;
- }
- footer{
- position: fixed;
- background: black;
- width: 100%;
- bottom: 0;
- left: 0;
- margin-top: auto;
- }
- footer::before{
- content: '';
- position: absolute;
- left: 0;
- top: 100px;
- height: 1px;
- width: 100%;
- background: #AFAFB6;
- }
- footer .content{
- max-width: 1250px;
- margin: auto;
- padding: 30px 40px 40px 40px;
- }
- footer .content .top{
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 50px;
- }
- .content .top .logo-details{
- color: #fff;
- font-size: 20px;
- }
- .content .top .media-icons{
- display: flex;
- }
- .content .top .media-icons a{
- height: 40px;
- width: 40px;
- margin: 0 8px;
- border-radius: 50%;
- text-align: center;
- line-height: 40px;
- color: #fff;
- font-size: 17px;
- text-decoration: none;
- transition: all 0.4s ease;
- }
- .top .media-icons a:nth-child(1){
- background: #4267B2;
- }
- .top .media-icons a:nth-child(1):hover{
- color: #4267B2;
- background: #fff;
- }
- .top .media-icons a:nth-child(2){
- background: #1DA1F2;
- }
- .top .media-icons a:nth-child(2):hover{
- color: #1DA1F2;
- background: #fff;
- }
- .top .media-icons a:nth-child(3){
- background: #E1306C;
- }
- .top .media-icons a:nth-child(3):hover{
- color: #E1306C;
- background: #fff;
- }
- .top .media-icons a:nth-child(4){
- background: #0077B5;
- }
- .top .media-icons a:nth-child(4):hover{
- color: #0077B5;
- background: #fff;
- }
- .top .media-icons a:nth-child(5){
- background: #FF0000;
- }
- .top .media-icons a:nth-child(5):hover{
- color: #FF0000;
- background: #fff;
- }
- footer .content .link-boxes{
- width: 100%;
- display: flex;
- justify-content: space-between;
- }
- footer .content .link-boxes .box{
- width: calc(100% / 5 - 10px);
- }
- .content .link-boxes .box .link_name{
- color: #fff;
- font-size: 18px;
- font-weight: 400;
- margin-bottom: 10px;
- position: relative;
- }
- .link-boxes .box .link_name::before{
- content: '';
- position: absolute;
- left: 0;
- bottom: -2px;
- height: 2px;
- width: 35px;
- background: #fff;
- }
- .content .link-boxes .box li{
- margin: 6px 0;
- list-style: none;
- }
- .content .link-boxes .box li a{
- color: #fff;
- font-size: 14px;
- font-weight: 400;
- text-decoration: none;
- opacity: 0.8;
- transition: all 0.4s ease
- }
- .content .link-boxes .box li a:hover{
- opacity: 1;
- text-decoration: underline;
- }
- .content .link-boxes .input-box{
- margin-right: 55px;
- }
- .link-boxes .input-box input{
- height: 40px;
- width: calc(100% + 55px);
- outline: none;
- border: 2px solid #AFAFB6;
- background: #140B5C;
- border-radius: 4px;
- padding: 0 15px;
- font-size: 15px;
- color: #fff;
- margin-top: 5px;
- }
- .link-boxes .input-box input::placeholder{
- color: #AFAFB6;
- font-size: 16px;
- }
- .link-boxes .input-box input[type="button"]{
- background: #fff;
- color: #140B5C;
- border: none;
- font-size: 18px;
- font-weight: 500;
- margin: 4px 0;
- opacity: 0.8;
- cursor: pointer;
- transition: all 0.4s ease;
- }
- .input-box input[type="button"]:hover{
- opacity: 1;
- }
- footer .bottom-details{
- width: 100%;
- background: rgb(24, 23, 23);
- text-align: center;
- }
- footer .bottom-details .bottom_text{
- max-width: 1250px;
- margin: auto;
- padding: 20px 40px;
- display: flex;
- justify-content: space-between;
- }
- .bottom-details .bottom_text span,
- .bottom-details .bottom_text a{
- font-size: 14px;
- font-weight: 300;
- color: #fff;
- opacity: 0.8;
- text-decoration: none;
- }
- .bottom-details .bottom_text a:hover{
- opacity: 1;
- text-decoration: underline;
- }
- .bottom-details .bottom_text a{
- margin-right: 10px;
- }
- @media (max-width: 900px) {
- footer .content .link-boxes{
- flex-wrap: wrap;
- }
- footer .content .link-boxes .input-box{
- width: 40%;
- margin-top: 10px;
- }
- }
- @media (max-width: 700px){
- footer{
- position: relative;
- }
- .content .top .logo-details{
- font-size: 26px;
- }
- .content .top .media-icons a{
- height: 35px;
- width: 35px;
- font-size: 14px;
- line-height: 35px;
- }
- footer .content .link-boxes .box{
- width: calc(100% / 3 - 10px);
- }
- footer .content .link-boxes .input-box{
- width: 60%;
- }
- .bottom-details .bottom_text span,
- .bottom-details .bottom_text a{
- font-size: 12px;
- }
- }
- @media (max-width: 520px){
- footer::before{
- top: 120px;
- }
- footer .content .top{
- flex-direction: column;
- display: flex;
- }
- .content .top .media-icons{
- margin-top: 16px;
- }
- footer .content .link-boxes .box{
- width: calc(100% / 2 - 10px);
- }
- footer .content .link-boxes .input-box{
- width: 100%;
- }
- }
- /*=============== VARIABLES CSS ===============*/
- :root {
- --header-height: 3.5rem;
- /*========== Colors ==========*/
- /*Color mode HSL(hue, saturation, lightness)*/
- --black-color: white;
- --black-color-light: white;
- --black-color-lighten: white;
- --white-color: black;
- --body-color: hsl(220, 100%, 97%);
- /*========== Font and typography ==========*/
- /*.5rem = 8px | 1rem = 16px ...*/
- --body-font: "Montserrat", sans-serif;
- --normal-font-size: .938rem;
- /*========== Font weight ==========*/
- --font-regular: 400;
- --font-semi-bold: 600;
- /*========== z index ==========*/
- --z-tooltip: 10;
- --z-fixed: 100;
- }
- /*========== Responsive typography ==========*/
- @media screen and (min-width: 1024px) {
- :root {
- --normal-font-size: 1rem;
- }
- }
- /*=============== BASE ===============*/
- * {
- box-sizing: border-box;
- padding: 0;
- margin: 0;
- }
- ul {
- list-style: none;
- /* Color highlighting when pressed on mobile devices */
- /*-webkit-tap-highlight-color: transparent;*/
- }
- a {
- text-decoration: none;
- }
- /*=============== REUSABLE CSS CLASSES ===============*/
- .container {
- max-width: 1120px;
- margin-inline: 1.5rem;
- }
- /*=============== HEADER ===============*/
- .header {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- background-color: var(--black-color);
- box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
- z-index: var(--z-fixed);
- }
- /*=============== NAV ===============*/
- .nav {
- height: var(--header-height);
- }
- .nav__logo,
- .nav__burger,
- .nav__close {
- color: var(--white-color);
- }
- .nav__data {
- height: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .nav__logo {
- display: inline-flex;
- align-items: center;
- column-gap: .25rem;
- font-weight: var(--font-semi-bold);
- /* Color highlighting when pressed on mobile devices */
- /*-webkit-tap-highlight-color: transparent;*/
- }
- .nav__logo i {
- font-weight: initial;
- font-size: 1.25rem;
- }
- .nav__toggle {
- position: relative;
- width: 32px;
- height: 32px;
- }
- .nav__burger,
- .nav__close {
- position: absolute;
- width: max-content;
- height: max-content;
- inset: 0;
- margin: auto;
- font-size: 1.25rem;
- cursor: pointer;
- transition: opacity .1s, transform .4s;
- }
- .nav__close {
- opacity: 0;
- }
- /* Navigation for mobile devices */
- @media screen and (max-width: 1118px) {
- .nav__menu {
- position: absolute;
- left: 0;
- top: 2.5rem;
- width: 100%;
- height: calc(100vh - 3.5rem);
- overflow: auto;
- pointer-events: none;
- opacity: 0;
- transition: top .4s, opacity .3s;
- }
- .nav__menu::-webkit-scrollbar {
- width: 0;
- }
- .nav__list {
- background-color: var(--black-color);
- padding-top: 1rem;
- }
- }
- .nav__link {
- color: var(--white-color);
- background-color: var(--black-color);
- font-weight: var(--font-semi-bold);
- padding: 1.25rem 1.5rem;
- display: flex;
- justify-content: space-between;
- align-items: center;
- transition: background-color .3s;
- }
- .nav__link:hover {
- background-color: var(--black-color-light);
- }
- /* Show menu */
- .show-menu {
- opacity: 1;
- top: 3.5rem;
- pointer-events: initial;
- }
- /* Show icon */
- .show-icon .nav__burger {
- opacity: 0;
- transform: rotate(90deg);
- }
- .show-icon .nav__close {
- opacity: 1;
- transform: rotate(90deg);
- }
- /*=============== DROPDOWN ===============*/
- .dropdown__item {
- cursor: pointer;
- }
- .dropdown__arrow {
- font-size: 1.25rem;
- font-weight: initial;
- transition: transform .4s;
- }
- .dropdown__link,
- .dropdown__sublink {
- padding: 1.25rem 1.25rem 0.45rem 2.5rem;
- color: var(--white-color);
- background-color: var(--black-color-light);
- display: flex;
- align-items: center;
- column-gap: .5rem;
- font-weight: var(--font-semi-bold);
- transition: background-color .3s;
- width: 250px;
- }
- .dropdown__link i,
- .dropdown__sublink i {
- font-size: 1.25rem;
- font-weight: initial;
- }
- .dropdown__link:hover,
- .dropdown__sublink:hover {
- background-color: var(--black-color);
- }
- .dropdown__menu,
- .dropdown__submenu {
- max-height: 0;
- overflow: hidden;
- transition: max-height .4s ease-out;
- }
- /* Show dropdown menu & submenu */
- .dropdown__item:hover .dropdown__menu,
- .dropdown__subitem:hover > .dropdown__submenu {
- max-height: 1000px;
- transition: max-height .4s ease-in;
- box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
- }
- /* Rotate dropdown icon */
- .dropdown__item:hover .dropdown__arrow {
- transform: rotate(180deg);
- }
- /*=============== DROPDOWN SUBMENU ===============*/
- .dropdown__add {
- margin-left: auto;
- }
- .dropdown__sublink {
- background-color: var(--black-color-lighten);
- }
- /*=============== BREAKPOINTS ===============*/
- /* For small devices */
- @media screen and (max-width: 340px) {
- .container {
- margin-inline: 1rem;
- }
- .nav__link {
- padding-inline: 1rem;
- }
- }
- /* For large devices */
- @media screen and (min-width: 1118px) {
- .container {
- margin-inline: auto;
- }
- .nav {
- height: calc(var(--header-height) + 2rem);
- display: flex;
- justify-content: space-between;
- }
- .nav__toggle {
- display: none;
- }
- .nav__list {
- height: 100%;
- display: flex;
- column-gap: 3rem;
- }
- .nav__link {
- height: 100%;
- padding: 0;
- justify-content: initial;
- column-gap: .25rem;
- }
- .nav__link:hover {
- background-color: transparent;
- }
- .dropdown__item,
- .dropdown__subitem {
- position: relative;
- }
- .dropdown__menu,
- .dropdown__submenu {
- max-height: initial;
- overflow: initial;
- position: absolute;
- left: 0;
- top: 6rem;
- opacity: 0;
- pointer-events: none;
- transition: opacity .3s, top .3s;
- }
- .dropdown__link,
- .dropdown__sublink {
- padding-inline: 1rem 3.5rem;
- }
- .dropdown__subitem .dropdown__link {
- padding-inline: 1rem;
- }
- .dropdown__submenu {
- position: absolute;
- left: 100%;
- top: .5rem;
- }
- /* Show dropdown menu */
- .dropdown__item:hover .dropdown__menu {
- opacity: 1;
- top: 5.5rem;
- pointer-events: initial;
- transition: top .5s;
- }
- /* Show dropdown submenu */
- .dropdown__subitem:hover > .dropdown__submenu {
- opacity: 1;
- top: 0;
- pointer-events: initial;
- transition: top .5s;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment