@import url('https://fonts.googleapis.com/css2?family=Raleway&family=Poppins&display=swap'); @mobile: ~"only screen and (max-width: 767px)"; @tablet: ~"only screen and (min-width: 768px) and (max-width: 1024px)"; @desktop: ~"only screen and (min-width: 1025px)"; @default-font-family: ~"'Poppins', 'Raleway', sans-serif"; @transition-time: ~"0.3s"; /* color */ @bg-color: rgb(239, 239, 239); @nav-bar-color: #353136; @heading-color: rgb(75, 57, 181); @button-color: rgb(75, 57, 181); /* font size */ @default-font-size: min(1.6vmax, 36px); @menu-font-size: min(1.5vmax, 20px); @mit-font-size: min(3.2vmax, 2em); @fullpage-tooltip-font-size: 16px; @event-detail-font-size: min(1.2vmax, 26px); @officer-detail-font-size: min(1vmax, 22px); @footer-header-font-size: min(1.5vmax, 36px); @footer-font-size: min(1.1vmax, 20px); /* font size (mobile) */ @default-font-size-mobile: min(1.8vmax, 36px); @menu-font-size: min(1.5vmax, 20px); @mit-font-size: min(3.5vmax, 2em); @fullpage-tooltip-font-size-mobile: 10px; /* events */ @event-box-width: 85vmin; @event-box-height: 90vmin; /* officers */ @officer-card-width: 24vmin; @officer-card-height: 32vmin; html { width: 100%; } body { font-size: @default-font-size; margin: auto; width: 100%; font-family: @default-font-family; -webkit-font-smoothing: antialiased; background-color: @bg-color; } h2, h3 { color: @heading-color; font-weight: bold; } button { background-color: @button-color; font-family: @default-font-family; font-size: @default-font-size; color: white; border: none; padding: 0.4em 1.7em; margin: 0 0.3em 0.3em 0; transition: all @transition-time; cursor: pointer; &:hover { opacity: 0.8; } } /* Fullpage Navigator */ .fp-tooltip { color: #000000 !important; font-family: @default-font-family; font-size: @fullpage-tooltip-font-size !important; letter-spacing: 1px; mix-blend-mode: difference; padding: 2px; } .section { width: 100%; } .centered-div { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 80%; } .left-div { position: absolute; top: 50%; left: 0%; transform: translate(0, -50%); text-align: left; width: 40%; margin-left: 5%; } .right-div { position: absolute; top: 50%; left: 50%; transform: translate(0, -50%); text-align: left; width: 45%; } .top-div { position: absolute; top: 3%; left: 50%; transform: translate(-50%, 0); text-align: left; width: 86%; padding-left: 7%; padding-right: 7%; } #mit-hero { p { letter-spacing: 2px; } h1 { letter-spacing: 0.5px; font-size: @mit-font-size; font-weight: bold; } } #building-communities-img { width: 100%; } .events-container { display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; #event-info-para { margin-top: 40px; width: 80%; text-align: center; } } .event { width: @event-box-width; height: @event-box-height; background-color: white; margin: 2vmax 2vmax; cursor: pointer; box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5); transition: box-shadow @transition-time ease-in-out; img { height: 60%; width: 100%; } .event-detail { font-size: @event-detail-font-size; text-align: left; padding-left: 10%; line-height: 0.8vmin; } &:hover { box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7); } } .active-event { box-shadow: 0px 0px 30px rgba(0, 0, 0, 1) !important; } .officers-container { margin-top: 2%; margin-left: 5%; display: flex; justify-content: flex-start; flex-wrap: wrap; width: 80%; height: 75%; } .officer { background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent), url(../images/person-placeholder.png); background-size: cover; background-position: center; width: @officer-card-width; height: @officer-card-height; background-color: white; margin: 2vmax 2.5vmax; transition: box-shadow @transition-time ease-in-out; box-shadow: 0px 0px 15px rgba(75, 75, 75, 0.2); .officer-detail { position: relative; top: 65%; color: white; font-size: @officer-detail-font-size; text-align: left; padding-left: 10%; line-height: 0.8vmin; h3 { color: white; } } } .active-officer, .officer:hover { box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3); .tooltip-text { display: table-cell; vertical-align: middle; -webkit-filter: drop-shadow(0px 0px 30px rgba(96, 96, 96, 0.8)); filter : drop-shadow(0px 0px 30px rgba(96, 96, 96, 0.8)); -ms-filter : "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#000')"; filter : "progid:DXImageTransform.Microsoft.Dropshadow(OffX=0, OffY=0, Color='#000')"; } .tooltip-text:after { display: block; } } .tooltip-text { position: absolute; top: -200%; /* move to right */ left: 100%; margin-left: 15px; /* and add a small left margin */ /* basic styles */ min-height: 3vmin; width: 20vw; padding: 10px; background-color: rgba(255, 255, 255, 0.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: black; text-align: left; z-index: 100; border-radius: 5px; padding: 10%; display: none; /* hide by default */ &:after { content: ""; position:absolute; /* position tooltip correctly */ left: 0; margin-left: -20px; /* vertically center */ top:50%; transform:translateY(-50%); /* the arrow */ border: 10px solid rgba(255, 255, 255, 0.7); border-color: transparent rgba(255, 255, 255, 0.7) transparent transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: none; } } .footer-centered-div { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 80%; } .footer { padding-right: 5%; width: 95%; height: 30%; position: absolute; bottom: 0; display: flex; justify-content: start; .footer-header { width: 30%; font-size: @footer-header-font-size !important; } div:not(.left-footer) { font-size: @footer-font-size; height: 80%; padding-left: 12vmin; h3 { padding-top: 5vmin; } h3, p { white-space: nowrap; } } } .fancy-a { position: relative; text-decoration: none; color: inherit; display: inline-block; } .fancy-a::before { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(0, 0, 0, 0.2); box-sizing: border-box; } .fancy-a::after { content: ""; display: block; left: 0; right: 0; bottom: 0; height: 1px; z-index: 10; background: rgba(0, 0, 0, 1); box-sizing: border-box; -webkit-transform: scaleX(0); -moz-transform: scaleX(0); -ms-transform: scaleX(0); -o-transform: scaleX(0); transform: scaleX(0); -webkit-transition: -webkit-transform .8s cubic-bezier(.19,1,.22,1); transition: -webkit-transform .8s cubic-bezier(.19,1,.22,1); -o-transition: -o-transform .8s cubic-bezier(.19,1,.22,1); -moz-transition: transform .8s cubic-bezier(.19,1,.22,1),-moz-transform .8s cubic-bezier(.19,1,.22,1); transition: transform .8s cubic-bezier(.19,1,.22,1),-webkit-transform .8s cubic-bezier(.19,1,.22,1),-moz-transform .8s cubic-bezier(.19,1,.22,1),-o-transform .8s cubic-bezier(.19,1,.22,1); } .fancy-a:hover::after { transform: scaleX(1); } .purple-text { color: @heading-color; } .buffer { width: 100%; height: 20%; } .hidden { display: none; } @media @mobile { body { font-size: @default-font-size-mobile; } /* Fullpage Navigator */ .fp-tooltip { font-size: @fullpage-tooltip-font-size-mobile !important; } #building-communities-img { display: none !important; } #about-mit-div { transform: translate(-50%, -50%); width: 87%; } .events-container { margin-top: -5px; margin-left: 6%; flex-direction: column; } #event-info-para { position: absolute; top: 45%; left: 50%; transform: translate(0, -50%); text-align: left; max-width: 45%; word-wrap: break-word; } .officers-container { margin-top: -5px; margin-left: 6%; flex-direction: row; flex-wrap: wrap; } .footer { flex-direction: row; flex-wrap: wrap; padding-right: 5%; padding-left: 10%; height: 40%; div:not(.left-footer) { width: 100%; font-size: @footer-font-size; height: auto; padding-left: 0; h3 { padding-top: 0; } } } }