github.com/KyaXTeam/consul@v1.4.5/website/source/assets/stylesheets/consul-connect/pages/_home.scss (about)

     1  #page-home {
     2    #home-hero {
     3      padding-top: 12px;
     4      position: relative;
     5  
     6      @media (min-width: 768px) {
     7        padding-bottom: 56px;
     8      }
     9  
    10      @media (min-width: 992px) {
    11        padding-top: 80px;
    12        padding-bottom: 100px;
    13      }
    14  
    15      .g-container > div {
    16        @media (min-width: 992px) {
    17          display: flex;
    18          justify-content: center;
    19          margin: 0 (-$site-gutter-padding);
    20        }
    21  
    22        @media (min-width: 992px) {
    23          align-items: center;
    24        }
    25  
    26        & > div {
    27          @media (min-width: 992px) {
    28            padding: 0 $site-gutter-padding;
    29            width: 50%;
    30          }
    31  
    32          &:first-child {
    33            text-align: center;
    34  
    35            @media (min-width: 992px) {
    36              text-align: left;
    37            }
    38  
    39            & > div {
    40              @media (min-width: 992px) and (max-width: 1199px) {
    41                padding-left: 21px;
    42              }
    43            }
    44  
    45            h1 {
    46              font-size: 2.4rem;
    47              margin: 24px 0 16px;
    48  
    49              @media (min-width: 768px) {
    50                font-size: 3.2rem;
    51                margin-top: 32px;
    52              }
    53  
    54              @media (min-width: 992px) {
    55                font-size: 4.8rem;
    56                margin-top: 40px;
    57              }
    58            }
    59  
    60            p {
    61              font-size: 1.6rem;
    62              font-weight: 300;
    63              margin: 16px 0 32px;
    64  
    65              @media (min-width: 768px) {
    66                font-size: 2.4rem;
    67                margin-bottom: 40px;
    68              }
    69            }
    70  
    71            .notification {
    72              background: #fce2ee;
    73              border-radius: 3px;
    74              color: #650d34;
    75              display: inline-block;
    76              font-size: 1.4rem;
    77              padding: 16px;
    78              line-height: 1.7;
    79  
    80              @media (min-width: 992px) {
    81                line-height: 1.4;
    82                padding-left: 12px;
    83                padding-right: 12px;
    84              }
    85  
    86              span {
    87                &:first-child {
    88                  background: $consul-red;
    89                  border-radius: 3px;
    90                  color: #fff;
    91                  font-size: 1.2rem;
    92                  font-weight: 700;
    93                  margin-right: 4px;
    94                  padding: 2px 9px;
    95                  text-transform: uppercase;
    96  
    97                  @media (min-width: 992px) {
    98                    float: left;
    99                    margin-right: 8px;
   100                  }
   101                }
   102  
   103                &:last-child {
   104                  display: inline-block;
   105                }
   106              }
   107  
   108              svg {
   109                margin-left: 4px;
   110              }
   111            }
   112  
   113            .g-btn {
   114              min-width: 129px;
   115              margin: 0 5px 10px;
   116  
   117              @media (min-width: 400px) {
   118                margin: 0 10px;
   119              }
   120  
   121              @media (max-width: 767px) {
   122                padding: 6px 5px;
   123              }
   124              
   125              @media (min-width: 768px) {
   126                margin: 0;
   127              }
   128  
   129              @media (min-width: 992px) {
   130                min-width: 144px;
   131              }
   132  
   133              & + .g-btn {
   134                @media (min-width: 768px) {
   135                  margin-left: 10px;
   136                }
   137  
   138                @media (min-width: 992px) {
   139                  margin-left: 20px;
   140                }
   141              }
   142            }
   143  
   144            .secondary-link {
   145              border-bottom: 1px dashed $consul-red;
   146              color: $consul-black;
   147              display: inline-block;
   148              font-size: 1.4rem;
   149              font-weight: 600;
   150              margin: 24px 0 48px;
   151              padding-bottom: 4px;
   152              transition: all 0.25s ease;
   153  
   154              @media (min-width: 992px) {
   155                font-size: 1.6rem;
   156                margin-top: 32px;
   157                margin-bottom: 0;
   158              }
   159  
   160              &:focus,
   161              &:hover {
   162                opacity: 0.8;
   163              }
   164            }
   165          }
   166  
   167          &:last-child {
   168            max-width: 700px;
   169            margin: 0 auto;
   170          }
   171        }
   172      }
   173  
   174      .controls {
   175        align-items: center;
   176        display: flex;
   177        justify-content: center;
   178        margin-bottom: 26px;
   179  
   180        @media (min-width: 992px) {
   181          width: 45vw;
   182        }
   183  
   184        @media (min-width: 1200px) {
   185          width: 42vw;
   186        }
   187  
   188        @media (min-width: 1725px) {
   189          width: 725px;
   190        }
   191  
   192        & > div {
   193          align-items: center;
   194          color: #d2d4dc;
   195          cursor: pointer;
   196          display: flex;
   197          flex-direction: column;
   198          font-size: 1.2rem;
   199          font-weight: 600;
   200          justify-content: center;
   201          margin: 0 25px;
   202          text-transform: uppercase;
   203  
   204          &:hover,
   205          &.active {
   206            color: $consul-black;
   207          }
   208  
   209          &.playing {
   210            color: $consul-black;
   211  
   212            .progress-bar {
   213              span {
   214                transition: width linear;
   215                width: 100%;
   216              }
   217            }
   218          }
   219  
   220          & > span {
   221            transition: all 0.15s ease-out;
   222          }
   223  
   224          .progress-bar {
   225            background: #d2d4dc;
   226            border-radius: 2px 0 0 2px;
   227            height: 2px;
   228            margin-top: 6px;
   229            position: relative;
   230            width: 64px;
   231  
   232            span {
   233              background: $consul-red;
   234              height: 2px;
   235              left: 0;
   236              position: absolute;
   237              width: 0;
   238            }
   239          }
   240        }
   241      }
   242  
   243      .videos {
   244        height: 0;
   245        margin-bottom: -112px;
   246        padding-top: calc((100% * 0.63569) + 18px);
   247        position: relative;
   248        width: 100%;
   249  
   250        @media (min-width: 768px) {
   251          margin-bottom: -152px;
   252          padding-top: calc((100% * 0.63569) + 38px);
   253        }
   254  
   255        @media (min-width: 992px) {
   256          padding-top: calc((45vw * 0.63569) + 38px);
   257          margin-bottom: 0;
   258          width: 45vw;
   259        }
   260  
   261        @media (min-width: 1200px) {
   262          padding-top: calc((42vw * 0.63569) + 38px);
   263          width: 42vw;
   264        }
   265  
   266        @media (min-width: 1725px) {
   267          padding-top: calc((725px * 0.63569) + 38px);
   268          width: 725px;
   269        }
   270  
   271        & > div {
   272          background: #0e1016;
   273          border-radius: 3px 3px 0 0;
   274          box-shadow: 0 40px 24px -10px rgba(63, 68, 85, 0.4);
   275          height: 100%;
   276          left: -80px;
   277          line-height: 0;
   278          opacity: 0;
   279          padding-top: 18px;
   280          position: absolute;
   281          top: 0;
   282          transition: all 0.5s;
   283          transition-timing-function: cubic-bezier(0.41, 0.15, 0.39, 0.39);
   284          width: 100%;
   285  
   286          @media (min-width: 768px) {
   287            padding-top: 38px;
   288          }
   289  
   290          &.active {
   291            left: 0;
   292            opacity: 1;
   293            transition: all 0.8s;
   294          }
   295  
   296          &.deactivate {
   297            left: 95px;
   298          }
   299        }
   300  
   301        .bar-buttons {
   302          display: flex;
   303          position: absolute;
   304          left: 7px;
   305          top: 6px;
   306          z-index: 1;
   307  
   308          @media (min-width: 768px) {
   309            left: 16px;
   310            top: 13px;
   311          }
   312  
   313          span {
   314            background: $consul-black;
   315            border-radius: 50%;
   316            display: block;
   317            height: 5px;
   318            margin-right: 4px;
   319            width: 5px;
   320  
   321            @media (min-width: 768px) {
   322              height: 12px;
   323              margin-right: 8px;
   324              width: 12px;
   325            }
   326          }
   327        }
   328  
   329        .padded {
   330          background: #000;
   331          position: relative;
   332          position: absolute;
   333          top: 18px;
   334          left: 0;
   335          right: 0;
   336          bottom: 0;
   337  
   338          @media (min-width: 768px) {
   339            top: 38px;
   340          }
   341  
   342          video {
   343            position: absolute;
   344            bottom: 6px;
   345            right: 6px;
   346            top: 6px;
   347            left: 6px;
   348            height: calc(100% - 12px);
   349            width: calc(100% - 12px);
   350  
   351            @media (min-width: 768px) {
   352              bottom: 12px;
   353              right: 12px;
   354              top: 12px;
   355              left: 12px;
   356              height: calc(100% - 24px);
   357              width: calc(100% - 24px);
   358            }
   359          }
   360        }
   361  
   362        video {
   363          width: 100%;
   364          height: 100%;
   365        }
   366  
   367        .overlay {
   368          position: absolute;
   369          top: 0;
   370          right: 0;
   371          bottom: 0;
   372          left: 0;
   373          pointer-events: none;
   374          background: $black;
   375          opacity: 0.02;
   376        }
   377      }
   378    }
   379  
   380    #static-dynamic {
   381      
   382      @media (max-width: 991px) {
   383        padding-top: 212px;
   384      }
   385  
   386      .static-callout {
   387        width: 85%;
   388      }
   389  
   390      #index-dynamic-animation {
   391        width: 85%;
   392        margin: 0 auto;
   393  
   394        svg {
   395          width: 100%;
   396          height: auto !important;
   397        }
   398      }
   399    }
   400  
   401    .home-cta-section {
   402      color: $white;
   403  
   404      @media (min-width: 768px) {
   405        display: flex;
   406      }
   407  
   408      & > div {
   409        display: flex;
   410        justify-content: center;
   411        padding: 64px 24px;
   412        overflow: hidden;
   413  
   414        @media (min-width: 768px) {
   415          padding-top: 80px;
   416          padding-bottom: 80px;
   417          width: 50%;
   418        }
   419  
   420        @media (min-width: 992px) {
   421          padding-top: 96px;
   422          padding-bottom: 96px;
   423          width: 50%;
   424        }
   425  
   426        & > svg {
   427          width: 135px;
   428        }
   429  
   430        &:first-child {
   431          background: $consul-red;
   432          position: relative;
   433  
   434          &:after {
   435            content: '';
   436            background: url('/assets/images/consul-connect/mesh.svg') top center;
   437            background-size: cover;
   438            position: absolute;
   439            top: 0;
   440            right: 0;
   441            bottom: 0;
   442            left: 0;
   443            opacity: 0.2;
   444            transform: scale(1.3, 1.3);
   445          }
   446        }
   447  
   448        &:last-child {
   449          background: $consul-black;
   450        }
   451  
   452        & > div {
   453          display: flex;
   454          flex-direction: column;
   455          max-width: 564px;
   456          text-align: center;
   457          width: 100%;
   458          z-index: 1;
   459  
   460          div:first-child {
   461            height: 50px;
   462            width: auto;
   463          }
   464  
   465          p {
   466            flex: 1 0 auto;
   467            margin: 24px 0 32px;
   468          }
   469        }
   470      }
   471    }
   472  }