Skip to content

Instantly share code, notes, and snippets.

@lifeeric
Last active September 3, 2020 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifeeric/36d96fbaf3c878de9aaf0ab345005591 to your computer and use it in GitHub Desktop.
Save lifeeric/36d96fbaf3c878de9aaf0ab345005591 to your computer and use it in GitHub Desktop.
hulu css architecture
<div id="page">
  
  <div class="content-wrapper">
    <div class="Ribbon">
      <div class="row">
        ...
      </div>
    </div>
  </div>
  
  <footer>
    <div class="container-width">
      ...
    </div>
  </footer>
  
</div>
.page {
    height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    }
    
.content-wrapper {
    -webkit-flex: 1 0 auto;
    -ms-flex: 1 0 auto;
    flex: 1 0 auto;
    overflow-x: hidden;
}

    
.Ribbon {
    padding: 25px 40px;
    z-index: 1;
    width: 100%;
}
   
.Ribbon .row {
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}
    

/**** Footer *****/

footer {
    width: 100%;
    background-color: #ebedf2;
    -webkit-flex: 1 1 0;
    -ms-flex: 1 1 0;
    flex: 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.container-width {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 140px;
    padding-right: 140px;
}

Copyed code from hulu

.page {
  height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}
.content-wrapper {
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto;
  overflow-x: hidden;
}
.content-wrapper--brand {
  background-color: #ffffff;
}
.content-wrapper--brand .section-headline {
  font-weight: 800;
  font-stretch: normal;
  font-family: HuluStyle, Graphik, sans-serif;
  -webkit-letter-spacing: 1.5px;
  -moz-letter-spacing: 1.5px;
  -ms-letter-spacing: 1.5px;
  letter-spacing: 1.5px;
}
@media screen {
  .visually-hidden {
    display: none;
  }
}
.white {
  color: #fcfcfc !important;
}
.justify-content-center {
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}
.modal-open {
  overflow: hidden;
}
.hidden {
  display: none !important;
  visibility: hidden !important;
}
.container-width {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 140px;
  padding-right: 140px;
}
@media (max-width: 1279px) {
  .container-width {
    padding-left: 44px;
    padding-right: 44px;
  }
}
@media (max-width: 1023px) {
  .container-width {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 767px) {
  .container-width {
    padding-left: 20px;
    padding-right: 20px;
  }
}
.container-width--small {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}
.legal-container {
  max-width: 768px;
  margin: 120px auto 0px auto;
  padding: 0px 10px;
}
.legal-container a,
.legal-container a:active,
.legal-container a:hover,
.legal-container a:visited {
  -webkit-text-decoration: underline !important;
  text-decoration: underline !important;
}
.container--wide {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
@media (max-width: 1023px) {
  .container--wide {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 768px) {
  .container--wide {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1600px) {
  .container--wide {
    padding-left: 56px;
    padding-right: 56px;
  }
}
.primary-button,
.welcome-button,
.secondary-button,
.button--white,
.button--black,
.button--grey-border,
.button--cta.button--white-outline,
.button--cta.button--black-outline {
  height: 46px;
  min-width: 136px;
  padding: 0 32px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 14px;
  -webkit-letter-spacing: 1px;
  -moz-letter-spacing: 1px;
  -ms-letter-spacing: 1px;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
}
@media (min-width: 1024px) {
  .primary-button,
  .welcome-button,
  .secondary-button,
  .button--white,
  .button--black,
  .button--grey-border,
  .button--cta.button--white-outline,
  .button--cta.button--black-outline {
    height: 56px;
  }
}
.button-link {
  background: none;
  color: inherit;
  padding: 0;
  font: inherit;
  border: none;
  cursor: pointer;
  -webkit-text-decoration: underline;
  text-decoration: underline;
}
.primary-button {
  background: linear-gradient(45deg, #2dbd9d 0%, #72de93 100%);
  color: #fff !important;
}
.primary-button:hover,
.primary-button:visited,
.primary-button:active {
  color: #fff;
}
.welcome-button {
  background: #1ce783;
  color: #040405 !important;
}
.welcome-button:hover,
.welcome-button:visited,
.welcome-button:active {
  color: #040405;
}
.secondary-button {
  background: transparent;
  border: 2px solid #2ebd9c;
  color: #2ebd9c !important;
}
.secondary-button:hover,
.secondary-button:visited,
.secondary-button:active {
  color: #fff;
}
.button--white {
  color: #040505;
  background: #fff;
}
.button--black {
  color: #fff;
  background: #040505;
}
.button--grey-border {
  border: 1.5px solid #aeb4bf;
  color: #1e1e1e;
  background: transparent;
}
.dark .secondary-button {
  border: 2px solid white;
  color: white !important;
}
.button,
.button--cta {
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  cursor: pointer;
}
.button--cta {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  -webkit-transition: box-shadow 0.2s ease, -webkit-transform 0.1s ease;
  -webkit-transition: box-shadow 0.2s ease, transform 0.1s ease;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}
.button--cta.button--white-outline,
.button--cta.button--black-outline {
  background: transparent;
}
.button--cta.button--white-outline {
  color: #fff;
  border: 2px solid #fff;
}
.button--cta.button--black-outline {
  color: #040505;
  border: 2px solid #040505;
}
.button--cta.button--white-outline:hover {
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.button--cta.button--black-outline:hover {
  border: 2px solid rgba(39, 44, 53, 0.5);
}
.button--black.button--cta:hover {
  background-color: rgba(39, 44, 53, 0.9);
}
.button--white.button--cta:hover {
  background-color: rgba(255, 255, 255, 0.8);
}
.button--cta:active {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}
.button--cta .outline-light {
  border: 2px solid #fff;
  box-shadow: 0 0 0 transparent;
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  background: transparent;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.button--cta .outline-light:hover {
  background: transparent;
  color: #040505;
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.button--cta .outline-light:active {
  box-shadow: 0 3px 6px transparent;
  -webkit-transform: translateY(1px);
  -ms-transform: translateY(1px);
  transform: translateY(1px);
}
.section-headline {
  font-size: 32px;
  font-weight: 300;
  line-height: 40px;
  margin: 0 0 16px;
  color: #1e1e1e;
}
@media (max-width: 767px) {
  .section-headline {
    margin-bottom: 10px;
  }
}
.arrow-button {
  border: none;
  background: transparent;
  cursor: pointer;
}
.arrow-button {
  font-size: 14px;
  font-weight: 600;
  -webkit-letter-spacing: 1px;
  -moz-letter-spacing: 1px;
  -ms-letter-spacing: 1px;
  letter-spacing: 1px;
  line-height: 15px;
  color: #3370bb;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  -webkit-letter-spacing: 1px;
  -moz-letter-spacing: 1px;
  -ms-letter-spacing: 1px;
  letter-spacing: 1px;
  line-height: 15px;
  color: #1e1e1e;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-disclaimer {
  font-size: 10px;
  font-weight: normal;
  line-height: 16px;
  color: #868d9b;
}
.section-disclaimer a {
  color: #868d9b;
  -webkit-text-decoration: underline;
  text-decoration: underline;
}
.section-body {
  color: #5e6573;
}
@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-ms-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-moz-keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-webkit-keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-ms-keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@-o-keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/***********************
******** LOGO *************/

.logo-wall--bug {
  display: -ms-flexbox;
  -ms-flex-align: center;
  -ms-justify-content: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
  color: #1e1e1e;
  width: 100%;
  height: 100%;
  max-height: 88px;
  max-width: 88px;
  margin: 0 auto;
  background: url("/static/hitch/static/logos/networks/network-logo-bg@2x.png")
    center center no-repeat;
  background-size: contain;
}
.logo-wall--bug img {
  width: 80%;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #000;
  margin: 0 auto;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.logo-wall--bug img.lazyloaded {
  opacity: 1;
}

/*************** Foooter *********************
********************************************/
footer {
  background-color: #ebedf2;
  -webkit-flex: 1 1 0;
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
footer .footer__copyright {
  display: inline;
}
@media (max-width: 767px) {
  footer .footer__copyright {
    display: none;
  }
}
footer .footer__copyright-mobile {
  display: none;
}
@media (max-width: 767px) {
  footer .footer__copyright-mobile {
    display: inline;
  }
}
footer .hulu-footer {
  text-align: left;
  color: #656b7b;
}
footer .footer--row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  footer .footer--row {
    display: block;
  }
}
footer .footer--row-section {
  display: inline-block;
  margin: 0;
  padding: 0;
}
@media (max-width: 767px) {
  footer .footer--row-section {
    padding-bottom: 16px;
  }
}
footer .footer--row-section a {
  display: block;
  padding-bottom: 8px;
  font-size: 14px;
}
footer .footer--row h3 {
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 767px) {
  footer .footer--row h3 {
    cursor: pointer;
    padding: 32px 0;
    margin: 0;
  }
}
@media (max-width: 767px) {
  footer .footer--row h3 .footer__icon-plus-mobile {
    background: url(/static/hitch/static/icons/arrow-caret.svg) no-repeat center
      center/cover;
    height: 14px;
    width: 12px;
    display: inline-block;
    vertical-align: middle;
    -webkit-transition: -webkit-transform 0.7s ease-in-out;
    -webkit-transition: transform 0.7s ease-in-out;
    transition: transform 0.7s ease-in-out;
    float: right;
  }
}
@media (max-width: 767px) {
  footer .footer--row h3 .footer__icon-plus-mobile-open {
    -webkit-transform: scaleY(-1);
    -ms-transform: scaleY(-1);
    transform: scaleY(-1);
  }
}
@media (max-width: 1023px) {
  footer .footer-section-container {
    padding-bottom: 23px;
  }
}
@media (max-width: 767px) {
  footer .footer-section-container {
    padding-bottom: 0;
    border-bottom: 1px solid #dcdfe6;
  }
}
@media (max-width: 1023px) {
  footer .footer-section-container-single {
    padding-bottom: 23px;
  }
}
@media (max-width: 767px) {
  footer .footer-section-container-single {
    padding-bottom: 0;
  }
}
footer .footer--site-links {
  padding: 52px 0 86px;
}
@media (max-width: 1279px) {
  footer .footer--site-links {
    padding: 46px 0 46px;
  }
}
@media (max-width: 1023px) {
  footer .footer--site-links {
    padding: 42px 0 0;
  }
}
footer .footer-row-expandable {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  footer .footer-row-expandable.footer-row-expanded {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }
}
@media (max-width: 767px) {
  footer .footer-row-expandable.footer-row-collapsed {
    display: none;
  }
}
@media (max-width: 767px) {
  footer .footer--section-expand {
    display: none;
  }
}
footer .footer--section-expand-mobile {
  display: none;
}
@media (max-width: 767px) {
  footer .footer--section-expand-mobile {
    display: block;
  }
}
footer a {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #656b7b;
}
footer span {
  color: #656b7b;
}
footer .footer--legal-links {
  border-top: 2px solid #dcdfe6;
  padding: 32px 0 0 0;
  font-size: 12px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  line-height: 32px;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
@media (max-width: 767px) {
  footer .footer--legal-links {
    border-top: none;
  }
}
footer .footer--legal-links-left {
  margin: 0 42px 32px 0;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  white-space: nowrap;
}
footer .footer--legal-links-left span,
footer .footer--legal-links-left a {
  padding-right: 32px;
}
footer .footer--legal-links-left a:last-child {
  padding-right: 0;
}
footer .footer--legal-links-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -32px;
  margin-bottom: 32px;
}
footer .footer--legal-links-right-col {
  margin-left: 32px;
  margin-right: 0;
  line-height: 32px;
  box-sizing: border-box;
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
}
footer .footer--legal-links-right-col:last-child {
  margin: 0;
}
@media (max-width: 767px) {
  footer .footer--legal-links-right-col:nth-child(2) {
    margin: 0;
  }
  footer .footer--legal-links-right-col:last-child {
    margin-left: 32px;
  }
}
footer .footer--legal-links-right-col .footer--legal-link img {
  padding-right: 4px;
}
footer .footer--legal-link {
  display: inline-block;
}
@media (max-width: 767px) {
  footer .footer--legal-link {
    font-size: 12px;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment