github.com/projectcontour/contour@v1.28.2/site/themes/contour/assets/scss/_components.scss (about)

     1  @import 'variables';
     2  @import 'mixins';
     3  
     4  /* Homepage Hero */
     5  .hero {
     6      background-color: $mainblue;
     7      color: $white;
     8      .text-block {
     9          max-width: 550px;
    10          padding: 0px 0px 10px 0px;
    11          p {
    12              margin-bottom: 20px;
    13              font-size: 18px;
    14              color: $white;
    15          }
    16          h2 {
    17              font-size: 36px;
    18          }
    19      }
    20      &.homepage {
    21          background-image: url(/img/contour-homepage.svg);
    22          background-position: center center;
    23          background-repeat: no-repeat;
    24          background-size: cover;
    25          padding-bottom: 80px;
    26          h1 {
    27              font-size: 36px;
    28          }
    29      }
    30      @include breakpoint(small) {
    31          .text-block {
    32              max-width: unset;
    33              margin-right: 0px;
    34          }
    35          .button {
    36              display: block;
    37              text-align: center;
    38          }
    39          &.homepage {
    40              background-image: none;
    41          }
    42      }
    43  }
    44  
    45  .grid-container {
    46      margin-top: -80px;
    47      .grid.three {
    48          padding-bottom: 20px;
    49          .card {
    50              position: relative;
    51              padding: 30px 20px;
    52              background-color: $white;
    53              text-align: center;
    54              box-shadow: 0px 2px 10px rgba(0,0,0,0.2);
    55              h3 {
    56                  color: $darkgrey;
    57                  font-size: 22px;
    58              }
    59              p {
    60                  color: $darkgrey;
    61              }
    62          }
    63      }
    64  }
    65  
    66  .introduction {
    67      .grid.two {
    68          column-gap: 140px;
    69          padding: 35px 20px;
    70          p {
    71              margin: 0px;
    72              font-size: 16px;
    73              &.strong {
    74                  color: $darkgrey;
    75              }
    76          }
    77      }
    78      @include breakpoint(small) {
    79          padding: 0px 20px;
    80          .col:first-of-type {
    81              padding-bottom: 50px;
    82          }
    83      }
    84  }
    85  
    86  .use-cases {
    87      .grid { 
    88          grid-template-columns: 220px 1fr;
    89          margin-bottom: 30px;
    90          grid-template-areas:
    91                  "image text";
    92          .image {
    93              background-color: $mainblue;
    94              text-align: center;
    95              display: flex;
    96              align-items: center;
    97              justify-content: center;
    98              grid-area: image;
    99              img {
   100                  justify-self: center;
   101              }
   102          }
   103          .text {
   104              border: 1px solid $lightgrey;
   105              padding: 30px;
   106              grid-area: text;
   107              a.button {
   108                  display: block;
   109                  max-width: 138px;
   110                  text-align: center;
   111                  padding: 5px 10px;
   112                  min-width: unset;
   113              }
   114          }
   115          &.image-right {
   116              grid-template-columns: 1fr 220px;
   117              grid-template-areas:
   118                  "text image";
   119              @include breakpoint(small) {
   120                  grid-template-columns: 1fr;
   121                  grid-template-areas:
   122                      "image"
   123                      "text";
   124              }
   125          }
   126          @include breakpoint(small) {
   127              grid-template-columns: 1fr;
   128              grid-template-rows: minmax(160px, 1fr);
   129              grid-template-areas:
   130                  "image"
   131                  "text";
   132          }
   133      }
   134      h2 {
   135          color: $black;
   136      }
   137      p.strong {
   138          color: #1B3951;
   139          font-size: 16px;
   140      }
   141  }
   142  
   143  .blog-highlights {
   144      .grid.three {
   145          row-gap: 40px;
   146          margin: 40px 0px;
   147          .col {
   148              border: 1px solid $lightgrey;
   149              .icon {
   150                  max-height: 120px;
   151                  overflow: hidden;
   152              }
   153              .content {
   154                  padding: 0px 20px;
   155              }
   156          }
   157      }
   158      p.center {
   159          text-align: center;
   160      }
   161  }
   162  
   163  .team {
   164      background-color: $navyblue;
   165      h2, h3, p {
   166          color: $white;
   167      }
   168      p {
   169          font-size: 16px;
   170      }
   171      a {
   172          color: $white;
   173          font-weight: 300;
   174          text-decoration: underline;
   175      }
   176      .grid.three {
   177          row-gap: 40px;
   178          margin: 40px 0px;
   179      }
   180      .bio {
   181          display: grid;  
   182          grid-template-columns: 120px 1fr;
   183          column-gap: 20px;
   184          .image img {
   185              max-width: 120px;
   186              border-radius: 50%;
   187          }
   188          .info {
   189              align-self: center;
   190              p {
   191                  margin: 0px;
   192                  &.name {
   193                      font-size: 16px;
   194                      font-family: $metropolis-medium;
   195                      a {
   196                          text-decoration: none;
   197                      }
   198                  }
   199                  &.position {
   200                      font-size: 14px;
   201                  }
   202              }
   203          }
   204      }
   205  }
   206  
   207  .hero.subpage-hero {
   208      background-position: center center;
   209      background-repeat: no-repeat;
   210      background-size: cover;
   211      padding-bottom: 90px;
   212  
   213      h1 {
   214          font-size: 46px;
   215          text-align: center;
   216          @include breakpoint(small) {
   217              font-size: 26px;
   218          }
   219      }
   220  }
   221  
   222  .experimental {
   223      .grid.three .col {
   224          padding: 0px;
   225      }
   226      .icon {
   227          background-color: $mainblue;
   228          padding: 25px;
   229          min-height: 95px;
   230          display: flex;
   231          align-items: center;
   232          justify-content: center;
   233      }
   234      .content {
   235          padding: 25px;
   236          .example {
   237              background-color: $lightgrey;
   238          }
   239      }
   240  }
   241  
   242  .blog {
   243      padding-bottom: 50px;
   244      .col {
   245          border: 1px solid $lightgrey;
   246          text-align: center;
   247          .icon {
   248              height: 150px;
   249          }
   250          img {
   251              max-width: 100%;
   252              max-height: 100%;
   253          }
   254          .content {
   255              padding: 0px 20px;
   256              text-align: left;
   257          }
   258      }
   259      &.landing {
   260          background-color: #fff;
   261          margin-top: -90px;
   262          h3 a {
   263              font-size: 16px;
   264          }
   265          .icon {
   266              display: flex;
   267              align-items: center;
   268              justify-content: center;
   269              min-height: 140px;
   270              img {
   271                  width: auto;
   272                  max-width: 100%;
   273                  max-height: 100%;
   274              }
   275          }
   276          .pagination {
   277              margin: 30px auto 50px auto;
   278              ul {
   279                  padding: 0px;
   280                  text-align: center;
   281                  li {
   282                      padding: 0px;
   283                      a {
   284                          padding: 5px 10px;
   285                          &.active {
   286                              background-color: $lightgrey;
   287                              border-radius: 50%;
   288                          }
   289                      }
   290                      &.left-arrow {
   291                          margin-right: 15px;
   292                      }
   293                      &.right-arrow {
   294                          margin-left: 15px;
   295                      }
   296                  }
   297              }
   298          }
   299      }
   300      .blog-post {
   301          background-color: #fff;
   302          margin: -110px 0px 0px -30px;
   303          padding: 30px 90px 30px 30px;
   304          @include breakpoint(small) {
   305              margin: -110px 0px 0px 0px;
   306          }
   307          .author {
   308              color: $blue;
   309              margin: 0px;
   310          }
   311          .date {
   312              color: $black;
   313              margin: 0px;
   314              font-weight: 600;
   315          }
   316          .header, h4 {
   317              color: $black;
   318              font-weight: 600;
   319          }
   320          a {
   321              font-size: 16px;
   322          }
   323          ul {
   324              list-style-type: disc;
   325              padding-left: 20px;
   326              li {
   327                  list-style-type: unset;
   328                  display: list-item;
   329                  margin-bottom: 10px;
   330                  font-size: 14px;
   331                  color: $darkgrey;
   332                  line-height: 1.6em;
   333                  list-style-image: url(/img/arrow.svg);
   334                  &:first-child {
   335                      margin-top: 10px;
   336                  }
   337              }
   338          }
   339          ol {
   340              li {
   341                  list-style-type: decimal;
   342                  display: list-item;
   343                  margin-bottom: 10px;
   344                  font-size: 16px;
   345                  color: $darkgrey;
   346                  &:first-child {
   347                      margin-top: 10px;
   348                  }
   349              }
   350          }
   351          code {
   352              border: 2px solid #EFEFEF;
   353              padding: 2px 8px;
   354          }
   355          pre {
   356              code {
   357                  display: block;
   358                  border: 15px solid #EFEFEF;
   359                  padding: 15px;
   360                  margin-bottom: 30px;
   361                  overflow-x: auto;
   362              }
   363          }
   364          img {
   365              max-width: 100%;
   366          }
   367          strong {
   368              font-family: $metropolis-medium;
   369          }
   370          &.content {
   371              margin-top: 0px;
   372              padding-top: 0px;
   373          }
   374      }
   375  }
   376  
   377  .getting-started {
   378      background-color: $lightgrey;
   379      color: $black;
   380      p {
   381          color: $black;
   382          font-size: 16px;
   383      }
   384      .left-side {
   385          width: 50%;
   386          float: left;
   387      }
   388      .right-side {
   389          width: 25%;
   390          float: right;
   391      }
   392      h2 {
   393          font-size: 30px;
   394          margin-bottom: 0px;
   395      }
   396      a {
   397          display: block;
   398          max-width: 138px;
   399          text-align: center;
   400          padding: 10px;
   401          min-width: unset;
   402      }
   403      .button {
   404          margin-top: 50px;
   405          border: 1px solid $blue;
   406      }
   407      @include breakpoint(small) {
   408          .wrapper {
   409              padding-bottom: 40px;
   410          }
   411          .left-side {
   412              width: 100%;
   413              float: none;
   414          }
   415          .right-side {
   416              width: 100%;
   417              float: none;
   418          }
   419          .button {
   420              display: block;
   421              text-align: center;
   422              max-width: unset;
   423              margin-top: 20px;
   424          }
   425      }
   426  }
   427  .getting-involved {
   428      width:auto;
   429      padding: 10px;
   430      background-color:$turquoise;
   431      .firstsec {
   432          color:$white; 
   433          text-align: center;
   434          font-size: 40px;
   435          font-weight: bold;
   436      }
   437  
   438      .subsection {
   439          position: relative;
   440          text-align: center;
   441          color:$white;
   442          font-size: 20px;
   443      }
   444      .section {
   445  
   446          text-align: center;
   447          float: center;
   448      }
   449      .button {
   450          float: center;
   451          border: 1px solid $blue;
   452          margin-bottom: 30px;
   453      }
   454  }
   455  .subpage {
   456      background-color: #fff;
   457      margin-top: -90px;
   458      padding: 30px 30px 50px 30px;
   459      .section-header {
   460          margin-top: 3rem;
   461          font-weight: 600;
   462          font-size: 20px;
   463      }
   464      .embed-responsive {
   465          position: relative;
   466          &:before {
   467              padding-top: 56.25%;
   468              display: block;
   469              content: "";
   470          }
   471          .embed-responsive-item {
   472              position: absolute;
   473              top: 0;
   474              bottom: 0;
   475              left: 0;
   476              width: 100%;
   477              height: 100%;
   478              border: 0;
   479          }
   480      }
   481      .grid {
   482          margin-bottom: 20px;
   483          .col {
   484              border: 1px solid #F2F2F2;
   485              .icon {
   486                  display: flex;
   487                  align-items: center;
   488                  justify-content: center;
   489                  min-height: 140px;
   490              }
   491              img {
   492                  max-width: 100%;
   493                  &.podcast {
   494                      max-height: 100px;
   495                  }
   496              }
   497              .twitter {
   498                  svg {
   499                      margin-left: -25px;
   500                  }
   501                  img {
   502                      max-width: 58px;
   503                      height: auto;
   504                  }
   505              }
   506              h3 {
   507                  margin: 0px;
   508                  text-align: center;
   509                  font-size: 16px;
   510              }
   511              .content {
   512                  padding: 0px 20px 20px 20px;
   513                  &.plugins {
   514                      padding-top: 20px;
   515                      img {
   516                          display: block;
   517                          margin: 0px auto 5px auto;
   518                      }
   519                  }
   520                  h3 {
   521                      margin-top: 0px;
   522                      text-align: center;
   523  
   524                      a {
   525                          font-size: 20px;
   526                      }
   527                  }
   528                  ul {
   529                      padding-left: 20px;
   530                      li {
   531                          margin-bottom: 10px;
   532                          display: list-item;
   533                          color: $darkgrey;
   534                          font-size: 1rem;
   535                          line-height: 1.6em;
   536                          list-style-image: url(/img/arrow.svg);
   537                      }
   538                  }
   539                  p {
   540                      font-size: 1rem;
   541                      color: $darkgrey;
   542                      &.title {
   543                          font-weight: 500;
   544                          margin: 0px;
   545                      }
   546                      &.strong {
   547                          font-weight: 600;
   548                      }
   549                  }
   550              }
   551          }
   552      }
   553      &.resources {
   554          .grid {
   555              grid-template-columns: repeat(3, minmax(0, 1fr));
   556              .col .content p {
   557                  word-wrap: break-word;
   558              }
   559              @include breakpoint(small) {
   560                  grid-template-columns: 1fr;
   561              }
   562          }
   563      }
   564  }
   565  
   566  .docs {
   567      background-color: #fff;
   568      margin-top: -90px;
   569      padding: 30px 30px 50px 30px;
   570      display: flex;
   571      .side-nav {
   572          width: 25%;
   573          float: left;
   574          position: relative;
   575          padding-right: 25px;
   576          ul {
   577              padding-left: 0px;
   578              margin-bottom: 35px;
   579              li {
   580                  display: list-item;
   581                  margin-bottom: 15px;
   582                  a {
   583                      color: $darkgrey;
   584                      font-size: 14px;
   585                      &.active {
   586                          color: $blue;
   587                      }
   588                  }
   589                  &.heading {
   590                      color: $black;
   591                      font-size: 14px;
   592                  }
   593              }
   594          }
   595          .dropdown {
   596              font-size: 14px;
   597              font-family: $metropolis-medium;
   598              margin-bottom: 10px;
   599              button {
   600                  background-image: url(/img/down-arrow.svg);
   601                  background-repeat: no-repeat;
   602                  background-position: 90% center;
   603                  border-radius: 5px;
   604                  display: inline;
   605                  padding: 10px 30px 10px 10px;
   606                  border: 1px solid $blue;
   607                  color: $black;
   608                  cursor: pointer;
   609                  font-size: 14px;
   610                  font-family: $metropolis-medium;
   611                  margin-bottom: 10px;
   612                  &:focus {
   613                      background-color: $lightgrey;
   614                  }
   615              }
   616          }
   617          .dropdown-menu {
   618              position: absolute;
   619              border: 1px solid $grey;
   620              border-radius: 5px;
   621              top: 35px;
   622              left: 0px;
   623              background-color: $white;
   624              padding: 10px 0;
   625              min-width: 100px;
   626              display: none;
   627              a {
   628                  display: block;
   629                  padding: 7px 20px;
   630                  &:hover {
   631                      background-color: $lightgrey;
   632                  }
   633              }
   634              &.dropdown-menu-visible {
   635                  display: block;
   636                  z-index: 1;
   637              }
   638          }
   639          .form-control {
   640              display: block;
   641              width: 100%;
   642              height: 40px;
   643              padding: .375rem .75rem;
   644              font-size: 1.125rem;
   645              line-height: 1.5;
   646              color: $darkgrey;
   647              background-color: #fff;
   648              border: 1px solid #cecece;
   649              background-image: url(/img/search-icon.svg);
   650              background-repeat: no-repeat;
   651              background-position: 95% center;
   652              border-radius: 5px;
   653              &:focus {
   654                  outline: none;
   655              }
   656              &::-webkit-search-cancel-button {
   657                  -webkit-appearance: none;
   658              }
   659          }
   660          .ds-dataset-1 {
   661              padding: 15px 15px 0;
   662              
   663              a {
   664                  color: $darkgrey;
   665                  display: inline-block;
   666                  font-family: $metropolis-light;
   667                  margin-bottom: 10px;
   668                  
   669                  div {
   670                      display: inline;
   671                  }
   672              }
   673  
   674              .algolia-docsearch-suggestion--subcategory-inline {
   675                  &::after {
   676                      content: ' /';
   677                  }
   678              }
   679              
   680              .algolia-docsearch-suggestion--highlight {
   681                  background-color: rgba($blue, .1);
   682                  color: $navyblue;
   683              }
   684  
   685              .algolia-docsearch-suggestion--title {
   686                  font-family: $metropolis-medium;
   687              }
   688              
   689              .algolia-docsearch-suggestion--category-header,
   690              .algolia-docsearch-suggestion--subcategory-column {
   691                  display: none;
   692              }
   693  
   694              .algolia-docsearch-footer {
   695                  font-size: 14px;
   696                  text-align: right;
   697  
   698                  a {
   699                      font-size: 14px;
   700                  }
   701              }
   702          }
   703          .ds-dropdown-menu {
   704              background-color: #fff;
   705              border: 1px solid #cecece;
   706              border-radius: 5px;
   707              width: 130%;
   708          }
   709          @include breakpoint(extra-large) {
   710              width: 22%;
   711          }
   712          @include breakpoint(large) {
   713              width: 22%;
   714          }
   715      }
   716      .docs-content {
   717          width: 75%;
   718          float: right;
   719          &.full {
   720              width: 100%;
   721          }
   722          a {
   723              font-size: 16px;
   724          }
   725          ul {
   726              list-style-type: disc;
   727              padding-left: 20px;
   728              li {
   729                  list-style-type: unset;
   730                  display: list-item;
   731                  margin-bottom: 10px;
   732                  font-size: 16px;
   733                  color: $darkgrey;
   734                  line-height: 1.6em;
   735                  list-style-image: url(/img/arrow.svg);
   736                  &:first-child {
   737                      margin-top: 10px;
   738                  }
   739              }
   740          }
   741          ol {
   742              li {
   743                  list-style-type: decimal;
   744                  display: list-item;
   745                  margin-bottom: 10px;
   746                  font-size: 16px;
   747                  color: $darkgrey;
   748                  &:first-child {
   749                      margin-top: 10px;
   750                  }
   751              }
   752          }
   753          code {
   754              border: 2px solid #EFEFEF;
   755              padding: 2px 8px;
   756          }
   757          pre {
   758              white-space: pre-wrap;
   759              code {
   760                  display: block;
   761                  border: 15px solid #EFEFEF;
   762                  padding: 15px;
   763                  margin-bottom: 30px;
   764                  overflow-x: auto;
   765              }
   766          }
   767          img {
   768              max-width: 100%;
   769          }
   770          @include breakpoint(large) {
   771              width: 58%;
   772              padding-right: 20px;
   773          }
   774          @include breakpoint(extra-large) {
   775              width: 75%;
   776              padding-right: 20px;
   777          }
   778      }
   779      .right-nav {
   780          width: 21%;
   781          float: right;
   782          margin: -30px -30px 0px 0px;
   783          .right-nav-content {
   784              background-color: #EFEFEF;
   785              padding: 30px 30px 30px 20px;
   786              margin-right: -20px;
   787              position: sticky;
   788              top: 0;
   789          }
   790          .buttons {
   791              margin-top: 0px;
   792              li {
   793                  margin-bottom: 0px;
   794                  padding: 8px 0px;
   795                  display: inline-block;
   796                  &:first-of-type {
   797                      border-right: 1px solid #ddd;
   798                      padding-right: 5px;
   799                  }
   800                  a {
   801                      text-transform: uppercase;
   802                      font-size: 14px;
   803                      img {
   804                          vertical-align: middle;
   805                          width: 22px;
   806                      }
   807                  }
   808              }
   809          }
   810          h4 {
   811              font-size: 16px;
   812          }
   813          ul {
   814              padding-left: 0px;
   815              margin-bottom: 0px;
   816              li {
   817                  display: block;
   818                  padding-right: 0px;
   819                  margin-bottom: 7px;
   820                  a {
   821                      font-family: $metropolis-light;
   822                      font-size: 14px;
   823                  }
   824                  ul {
   825                      margin-top: 7px;
   826                      padding-inline-start: 14px;
   827  
   828                  }
   829              }
   830          }
   831          .sticky {
   832              position: fixed;
   833              top: 0;
   834          }
   835          @include breakpoint(small-medium) {
   836              display: none;
   837          }
   838      }
   839  }
   840  .cloud-native {
   841      text-align: center;
   842      padding: 40px 0px;
   843      img {
   844          width: 385px;
   845          max-width: 100%;
   846      }
   847  }