@import '~tachyons/css/tachyons.min';

// Variables
@import 'variables';
@import 'buttons';
@import 'form';
@import 'register';
@import 'header';
@import 'grid';

body {
  background-color: $body-bg;
  color: $body-color;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';
}

a {
  border-bottom: 1px solid #4b45a1;
  color: #4b45a1;
  text-decoration: none;

  &:hover {
    border-bottom: 1px solid #4299e1;
    color: #4299e1;
    text-decoration: none;
  }

  &.c-delete {
    border-bottom-color: #b8394c;
  }
}

// removes the red border on required inputs in firefox
input:invalid {
  box-shadow: none;
}

hr {
  margin-top: 1rem;
  border: 0;
  border-top: 1px solid rgba(34, 34, 48, 0.1);
}

.box {
  border: 1px solid #e7e7e7;
  border-radius: 11px;
  box-shadow: 1px 1px 2px rgba(122, 122, 122, 0.17);
}

.box-plus-button {
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 2px rgba(122, 122, 122, 0.17);
  right: 22px;
  top: 8px;
}

.box-edit-button {
  border: 1px solid #e7e7e7;
  box-shadow: 1px 1px 2px rgba(122, 122, 122, 0.17);
  right: 9px;
  top: 8px;
}

.brush-blue {
  background: url('/img/brush-blue.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

.brush-orange {
  background: url('/img/brush-orange.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

.cursor-grab {
  cursor: grab;
}

// breadcrumb
.breadcrumb {
  line-height: 23px;
  top: 9px;

  li + li:before {
    content: '>';
    padding-left: 5px;
    padding-right: 5px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    background-color: transparent;
    box-shadow: none;
    border: none;
  }
}

// input
input[type='text'],
input[type='email'],
input[type='password'],
textarea {
  &::placeholder {
    background-color: #fafbfc;
  }

  &:focus {
    background-color: #fff;
    &::placeholder {
      background-color: #fff;
    }
  }
}

// popmenu
.popupmenu {
  border: 1px solid rgba(27, 31, 35, 0.15);
  box-shadow: 0 3px 12px rgba(27, 31, 35, 0.15);
  right: 29px;
  top: 33px;
  background-color: #fff;
}

.popupmenu:after,
.popupmenu:before {
  content: '';
  display: inline-block;
  position: absolute;
}

.popupmenu:after {
  border: 7px solid transparent;
  border-bottom-color: #fff;
  left: 10px;
  top: -14px;
}

.popupmenu:before {
  border: 8px solid transparent;
  border-bottom-color: rgba(27, 31, 35, 0.15);
  left: 9px;
  top: -16px;
}

// restricted
.restricted {
  background-image: url('/img/company/account/restricted-1x.png');
  background-image: -webkit-image-set(
    url('/img/company/account/restricted-1x.png') 1x,
    url('/img/company/account/restricted-2x.png') 2x
  );
  background-repeat: repeat-x;
}

// adminland
.adminland-headline {
  a {
    top: -10px;
  }
}

// pages specific styles
.home-index-company {
  color: $body-color;
  height: 100px;

  span {
    left: 16px;
    bottom: 13px;
  }
}

// parsed markdown
.parsed-content {
  p {
    line-height: 1.5;
  }

  p:first-child {
    margin-top: 0;
  }

  p:last-child {
    margin-bottom: 0;
  }

  li {
    line-height: 1.5;
  }

  h2 {
    font-weight: 400;
    margin-top: 40px;
  }
}

.flex-grow {
  flex-grow: 1;
}

// duration
.duration {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
