Path: blob/main/ehtsite/assets/css/styles.css
2251 views
/*=============== GOOGLE FONTS ===============*/1@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");23/*=============== VARIABLES CSS ===============*/4:root {5/*========== Colors ==========*/6/*Color mode HSL(hue, saturation, lightness)*/7/*8Blue: hsl(207, 90%, 61%)9Purple: hsl(250, 66%, 75%)10Pink: hsl(356, 66%, 75%)11Teal: hsl(174, 63%, 62%)12*/1314--hue: 207;15--sat: 90%;16--lig: 61%;17--first-color: hsl(var(--hue), var(--sat), var(--lig));18--first-color-alt: hsl(var(--hue), var(--sat), 57%); /* -4% */19--title-color: hsl(var(--hue), 12%, 15%);20--text-color: hsl(var(--hue), 12%, 45%);21--text-color-light: hsl(var(--hue), 8%, 75%);22--text-color-lighten: hsl(var(--hue), 8%, 92%);23--body-color: hsl(var(--hue), 100%, 99%);24--container-color: #fff;2526/*========== Font and typography ==========*/27/*.5rem = 8px | 1rem = 16px ...*/28--body-font: 'Poppins', sans-serif;29--h2-font-size: 1.25rem;30--h3-font-size: 1rem;31--normal-font-size: .938rem;32--small-font-size: .813rem;33--smaller-font-size: .75rem;34}3536@media screen and (min-width: 968px) {37:root {38--h2-font-size: 1.5rem;39--h3-font-size: 1.25rem;40--normal-font-size: 1rem;41--small-font-size: .875rem;42--smaller-font-size: .813rem;43}44}45464748/*=============== BASE ===============*/49* {50box-sizing: border-box;51padding: 0;52margin: 0;53}5455body {56font-family: var(--body-font);57font-size: var(--normal-font-size);58background-color: var(--body-color);59color: var(--text-color);60transition: .3s; /* For animation dark mode */61}6263h1, h2, h3 {64color: var(--title-color);65font-weight: 600;66}6768ul {69list-style: none;70}7172a {73text-decoration: none;74}7576img {77max-width: 100%;78height: auto;79}8081/*=============== THEME ===============*/82.change-theme {83position: absolute;84top: 1.5rem;85right: 0;86font-size: 1.25rem;87color: var(--title-color);88cursor: pointer;89transition: .3s;90}9192.change-theme:hover {93color: var(--first-color);94}9596/*========== Variables Dark theme ==========*/97body.dark-theme {98--title-color: hsl(var(--hue), 12%, 95%);99--text-color: hsl(var(--hue), 12%, 75%);100--body-color: hsl(var(--hue), 40%, 8%);101--container-color: hsl(var(--hue), 24%, 12%);102}103104/*==========105Color changes in some parts of106the website, in light theme107==========*/108.dark-theme .button__gray {109background-color: var(--container-color);110}111112.dark-theme .button__gray:hover {113background-color: hsl(var(--hue), 24%, 16%);114}115116.dark-theme .filters__content {117background-color: var(--container-color);118}119120.dark-theme::-webkit-scrollbar {121background-color: hsl(var(--hue), 8%, 16%);122}123124.dark-theme::-webkit-scrollbar-thumb {125background-color: hsl(var(--hue), 8%, 24%);126}127128.dark-theme::-webkit-scrollbar-thumb:hover {129background-color: hsl(var(--hue), 8%, 32%);130}131132/*=============== REUSABLE CSS CLASSES ===============*/133.container {134max-width: 968px;135margin-left: 1.5rem;136margin-right: 1.5rem;137}138139.grid {140display: grid;141gap: 1.5rem;142}143144.scontainer {145width: 100%;146147}148149/*=============== PROFILE ===============*/150.profile {151position: relative;152padding-top: 3.5rem;153}154155.profile__container {156row-gap: 2rem;157}158159.profile__data {160display: grid;161text-align: center;162}163164.profile__perfil {165width: 100px;166height: 100px;167background: linear-gradient(180deg,168hsla(var(--hue), var(--sat), var(--lig), 1) 0%,169hsla(var(--hue), var(--sat), var(--lig), .2) 100%);170border-radius: 50%;171overflow: hidden;172display: flex;173align-items: flex-end;174justify-content: center;175}176177.profile__perfil img {178width: 75px;179}180181.profile__border {182border: 3.5px solid var(--first-color);183justify-self: center;184width: 115px;185height: 115px;186border-radius: 50%;187display: grid;188place-items: center;189margin-bottom: .75rem;190}191192.profile__name {193font-size: var(--h2-font-size);194}195196.profile__profession {197font-size: var(--smaller-font-size);198font-weight: 500;199color: var(--text-color);200margin-bottom: 1rem;201}202203.profile__social {204display: flex;205justify-content: center;206column-gap: .75rem;207}208209.profile__social-link {210font-size: 1.25rem;211color: var(--title-color);212transition: .3s;213}214215.profile__social-link:hover {216color: var(--first-color);217}218219.profile__info {220grid-template-columns: repeat(3, max-content);221justify-content: center;222column-gap: 2.5rem;223}224225.profile__info-group {226text-align: center;227}228229.profile__info-number {230font-size: var(--normal-font-size);231margin-bottom: .25rem;232}233234.profile__info-description {235font-size: var(--smaller-font-size);236font-weight: 500;237}238239.profile__buttons,240.profile__buttons-small {241display: flex;242align-items: center;243justify-content: center;244}245246.profile__buttons {247column-gap: 1rem;248}249250.profile__buttons-small {251column-gap: .25rem;252}253254/*=============== BUTTONS ===============*/255.button {256display: inline-flex;257align-items: center;258column-gap: .5rem;259background-color: var(--first-color);260color: #fff;261padding: 1.15rem 1.5rem;262border-radius: .5rem;263transition: .3s;264box-shadow: 0 8px 24px hsla(var(--hue), var(--sat), var(--lig), .25);265}266267.button i {268font-size: 1.25rem;269}270271.button:hover {272background-color: var(--first-color-alt);273}274275.button__small {276padding: .75rem;277box-shadow: none;278}279280.button__gray {281background-color: var(--text-color-lighten);282color: var(--title-color);283}284285.button__gray:hover {286background-color: var(--text-color-light);287}288289/*=============== FILTERS TABS===============*/290.filters__content {291margin: 2rem 0 2.5rem;292background-color: var(--text-color-lighten);293padding: .375rem;294border-radius: .75rem;295display: flex;296justify-content: space-between;297column-gap: .5rem;298}299300.filters__button {301width: 100%;302border: none;303outline: none;304padding: 1rem;305color: var(--title-color);306font-size: var(--small-font-size);307font-family: var(--body-font);308font-weight: 500;309border-radius: .75rem;310cursor: pointer;311background-color: transparent;312transition: .3s;313}314315.filters__button:hover {316background-color: var(--body-color);317}318319/*=============== PROJECTS ===============*/320.projects__card {321position: relative;322border-radius: 1rem;323overflow: hidden;324}325326.projects__card img {327width: 100%;328height: 100%;329}330331.projects__modal {332position: absolute;333width: 100%;334height: 100%;335bottom: -100%;336left: 0;337background: linear-gradient(180deg,338hsla(var(--hue), 24%, 40%, .3) 0%,339hsla(var(--hue), 24%, 4%, 1) 95%);340display: grid;341align-items: flex-end;342padding: 1.5rem 1.25rem;343transition: .3s;344}345346.projects__subtitle,347.projects__title {348color: #fff;349}350351.projects__subtitle {352font-size: var(--smaller-font-size);353}354355.projects__title {356font-size: var(--h3-font-size);357margin-bottom: .75rem;358}359360.projects__button {361padding: .5rem;362}363364.projects__card:hover .projects__modal {365bottom: 0;366}367368/*=============== SKILLS ===============*/369.skills__content {370row-gap: 3.5rem;371}372373.skills__title {374font-size: var(--h3-font-size);375text-align: center;376margin-bottom: 1.5rem;377}378379.skills__box {380display: flex;381justify-content: center;382column-gap: 3rem;383}384385.skills__group {386display: grid;387align-content: flex-start;388row-gap: 1rem;389}390391.skills__data {392display: flex;393column-gap: .5rem;394}395396.skills__data i {397font-size: 1rem;398color: var(--first-color);399}400401.skills__name {402font-size: var(--normal-font-size);403font-weight: 500;404line-height: 18px;405}406407.skills__level {408font-size: var(--smaller-font-size);409}410411/* Hide and show projects & skills */412.filters [data-content] {413display: none;414}415416.filters__active[data-content] {417display: grid;418}419420/* Activate button filter */421.filter-tab-active {422background-color: var(--body-color);423}424425/*=============== FOOTER ===============*/426.footer__copy {427display: block;428margin: 2.5rem 0 2rem;429text-align: center;430font-size: var(--smaller-font-size);431color: var(--text-color-light);432}433434/*=============== SCROLL BAR ===============*/435::-webkit-scrollbar {436width: .6rem;437border-radius: .5rem;438background-color: hsl(var(--hue), 8%, 66%);439}440441::-webkit-scrollbar-thumb {442background-color: hsl(var(--hue), 8%, 54%);443border-radius: .5rem;444}445446::-webkit-scrollbar-thumb:hover {447background-color: hsl(var(--hue), 8%, 44%);448}449450/*=============== BREAKPOINTS ===============*/451/* For small devices */452@media screen and (max-width: 320px) {453.container {454margin-left: 1rem;455margin-right: 1rem;456}457458.profile__info {459column-gap: 1.5rem;460}461.profile__buttons {462flex-direction: column;463row-gap: 1rem;464}465466.skills__box {467column-gap: 1rem;468}469}470471/* For medium devices */472@media screen and (min-width: 576px) {473.projects__content {474grid-template-columns: 332px;475justify-content: center;476}477478.filters__content {479width: 332px;480margin: 3rem auto;481}482}483484@media screen and (min-width: 776px) {485.projects__content,486.skills__content {487grid-template-columns: repeat(2, 332px);488}489490.skills__content {491justify-content: center;492column-gap: 3rem;493}494}495496/* For large devices */497@media screen and (min-width: 992px) {498.container {499margin-left: auto;500margin-right: auto;501}502503.change-theme {504top: 2.5rem;505right: 2.5rem;506}507508.profile {509padding-top: 4rem;510}511.profile__border {512width: 135px;513height: 135px;514margin-bottom: 1rem;515}516.profile__perfil {517width: 120px;518height: 120px;519}520.profile__perfil img {521width: 90px;522}523.profile__profession {524margin-bottom: 1.5rem;525}526.profile__info {527column-gap: 3rem;528}529.profile__info-description {530font-size: var(--small-font-size);531}532.profile__buttons {533column-gap: 2rem;534}535536.projects__content {537gap: 2rem 3rem;538}539.projects__modal {540padding: 1.5rem;541}542543.skills__title {544font-size: var(--normal-font-size);545margin-bottom: 2.5rem;546}547548.footer__copy {549margin: 4.5rem 0 2.5rem;550}551}552553554