Skip to content
Snippets Groups Projects
styles.less 5.21 KiB
Newer Older
/*!
 * Copyright (c) 2022 Eclipse Foundation, Inc.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * Contributors:
 *   Olivier Goulet <olivier.goulet@eclipse-foundation.org>
 *
 * SPDX-License-Identifier: EPL-2.0
*/
@import (reference) '~eclipsefdn-solstice-assets/less/quicksilver/styles.less';
@import '_variables.less';

.line-break {
  display: block;
}

.section-dark {
  padding-top: 3em;
  padding-bottom: 3em;
  background-color: #262525; 

  th,
  td,
  p,
  h2,
  h3 {
    color: @section-dark-white;
  }

  a {
    color: @section-dark-white;
  }

  .btn-secondary {
    color: @black;
    background-color: @section-dark-white;

    &:hover {
      background-color: darken(#efebeb, 10%);
    }
  }
}

// Jumbotron
.header-collaborations {
  .logo-eclipse-default {
    filter: drop-shadow(10px 10px 5px @black);
  }

  h1,
  h2 {
    font-weight: bold;
    text-shadow: 0px 10px 10px @black;
  }

  h1::after {
    display: none;
  }

  h1 {
    margin-bottom: 3rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 3rem;

    @media (min-width: @screen-md-min) {
      font-size: 2.15rem;
    }
  }

  .btn-primary {
    padding: @collaborations-btn-padding;
  }
}

.header-collaborations-bg-img {
  background-image: url(../../images/collaborations/bg-header.jpg)
}

// Collaborating section
.collaborations-collaborating {
  padding-top: 2em;

  @media (min-width: @screen-md-min) {
    padding-bottom: 6em;
  }
}

.collaborations-col-row {
  @media (min-width: @screen-md-min) {
    padding: 0 3em;
  }

  @media (min-width: @screen-lg-min) {
    padding: 0 6em;
  }
}

.collaborations-col {
  padding-top: @collaborations-padding-y;
  padding-bottom: @collaborations-padding-y;
}

.collaborations-collaborating-bg {
  padding-right: 3em;
  background-image: url(../../images/collaborations/bg-collaborating.jpg);
  background-size: cover;
  min-height: 5em;

  @media (min-width: @screen-sm-min) {
    min-height: 20em;
  }

  @media (min-width: @screen-md-min) {
    min-height: 50em;
  }

  .title-wrapper {
    margin-left: auto;
    max-width: none;
  }

  h2 {
    color: @white;
    text-align: center;
    font-weight: 600;

    @media (min-width: @screen-md-min) {
      text-align: right;
    }
  }
}

.collaborations-collaborating-item {
  display: flex;
  min-height: 11em;

  .item-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 5em;
    margin: @collaborations-icon-wrapper-margin-top 2em 0 0; 
  }

  .item-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    text-align: center;
  }

  .item-icon-bg {
    width: 100%;
  }

  .item-content {
    flex-grow: 1;
    color: @collaborating-item-color;
  }

  .item-content-title {
    margin-top: 0.5em;
    font-size: 2rem;
    font-weight: 400;
    color: @black;
  }
}

// Join collaboration section
.weighted-working-group-block-wrapper {
  padding-bottom: 2em;
}

.weighted-working-group-block {
  display: flex;
  justify-content: center;
  border-radius: 0.8em;
  background-color: @collaboration-gray;
  padding: 3.5rem;
  height: 100%;
}

.weighted-working-group-logo-wrapper {
  display: flex;
  justify-content: center;
  margin: auto;
  max-height: 16rem;

  img {
    object-fit: contain;
    width: 100%;
  }
}

.join-collaboration-button-col {
  padding: 1em;
  text-align: center;
}

.join-collaboration-button {
  padding: @collaborations-btn-padding;
  width: 75%;
}

@media (min-width: @screen-md-min) {
  .join-collaboration-button-col {
    text-align: right;
  }

  .join-collaboration-button {
    width: initial;
    padding-left: 4em;
    padding-right: 4em;
  }
}

// Start collaboration section
.collaboration-table-wrapper {
  overflow-x: auto;
}

.collaboration-table {
  margin: auto;
  border: none @section-dark-white;
  border-collapse: collapse;

  th,
  td {
    padding: 1em;
    border-width: 1px;
    font-weight: normal;
  }

  tbody th, tbody td {
    border-top-style: solid;
    border-bottom-style: solid;
  }

  thead th {
    text-align: center;
  }

  td:last-child,
  th:last-child {
    border-left: solid 1px;
  }

  tr:last-child td {
    border-bottom-style: none;
  }
}

.collaboration-table-checked {
  display: block;
  width: 1em;
  height: 1em;
  margin: auto;
  border-radius: 9999px;
  background-color: @brand-primary;
}

.collaboration-table-link-row a {
  display: inline-block;
  text-align: center;
}

.start-collaboration-buttons-wrapper {
  display: flex;
  min-height: 26em;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  a {
    width: 100%;
    display: inline-block;
    text-align: center;
  }
}

.start-collaboration-buttons {
  .btn {
    width: 100%;
    padding: @collaborations-btn-padding;
    margin-bottom: 1em;
  }
}

// Collaborations Content
.collaborations-container {
  .btn {
    white-space: normal;
  }
}