Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all global styles indicate the need for an component, only super basic styles ar... #132

Open
github-actions bot opened this issue Nov 7, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Nov 7, 2023

all global styles indicate the need for an component, only super basic styles are allwed in here

/* TODO: all global styles indicate the need for an component, only super basic styles are allwed in here */

/* * {
  outline: 1px solid rgba(255, 0, 0, 0.25);
} */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--c-light);
  color: var(--c-font);
  font-size: 125%;
  font-family: var(--font-family);
}

/* TODO: all global styles indicate the need for an component, only super basic styles are allwed in here */

.select-button {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: space-between;
  align-items: center;
  gap: var(--s);
  border: var(--border);
  border-radius: var(--border-radius-small);
  background: var(--c-surface);
  select {
    flex: 1 0 auto;
    margin: 0;
    border: none;
    background: var(--c-surface);
    padding: 0;
    padding: var(--xs) 0 var(--xs) var(--s);
    font-weight: 600;
    font-size: var(--font-m);
    font-family: var(--font-family);
    letter-spacing: var(--font-letter-spacing-headline);
  }
  svg {
    size: var(--m);
    margin: 0 var(--s) 0 0;
  }
}

.segmented-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: space-between;
  align-items: flex-start;
  border: var(--border);
  border-radius: var(--border-radius-small);
  background: var(--c-surface);
  overflow: hidden;
  .button {
    transition: var(--transition);
    margin: 0;
    border: none;
    border-right: 1px solid var(--c-surface-accent);
    background: transparent;
    padding: var(--xs) var(--s);
    color: var(--c-font);
    font-weight: 500;
    font-size: var(--font-m);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: var(--font-letter-spacing-headline);
    text-decoration: none;
    &:hover {
      cursor: pointer;
      background: var(--c-surface-accent);
    }
    &:last-child {
      border-right: none;
    }
  }
}

:any-link {
  text-decoration-thickness: var(--underline-thickness);
}

* {
  scroll-margin: var(--xl);
}

.rich-text {
  line-height: 1.75;
  * {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
  img {
    border-radius: var(--border-radius);
  }
  h2 {
    margin: var(--xl) 0 var(--m) 0;
    width: 30ch;
    font-weight: 900;
    font-size: var(--font-xl);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: var(--font-letter-spacing-headline);
    @media screen and (max-width: 28rem) {
      width: 100%;
    }
    &:first-of-type {
      margin: 0 0 var(--m) 0;
    }
  }
  h3 {
    margin: var(--l) 0 var(--m) 0;
    width: 30ch;
    font-weight: 900;
    font-size: var(--font-l);
    line-height: 1.2;
    font-family: var(--font-family);
    letter-spacing: var(--font-letter-spacing-headline);
    @media screen and (max-width: 30rem) {
      width: 100%;
    }
  }
  /* If not done specific it overrides other margins */
  > p,
  > ul,
  > ol,
  > blockquote {
    margin-bottom: var(--l);
    &:last-child {
      margin-bottom: 0;
    }
  }
  a {
    color: var(--c-font);
    text-decoration: underline;
    text-decoration-thickness: var(--underline-thickness);
    &:hover {
      text-decoration: none;
    }
  }
  strong,
  em {
    font-weight: 600;
  }
  > ul,
  > ol {
    margin: var(--l) 0 var(--l) var(--l);
    width: 50ch;
    @media screen and (max-width: 50rem) {
      width: calc(100% - var(--l));
    }
    ul,
    ol {
      margin: 0 0 0 var(--l);
    }
    li {
      margin: var(--xs) 0 0 0;
    }
  }
  ul {
    list-style: disc;
  }
  ol {
    list-style: decimal;
  }
  blockquote {
    border-radius: var(--border-radius);
    background: var(--c-surface);
    padding: var(--l);
    p {
      &:last-of-type {
        margin: 0;
      }
    }
  }
  img {
    max-width: 100%;
  }
}

.card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: stretch;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--m);
  border-radius: var(--border-radius);
  background: var(--c-surface);
  padding: var(--l);
  border: var(--border);
  @media screen and (max-width: 42rem) {
    flex-direction: column;
  }
  &.no-spacing {
    padding: 0;
    gap: 0;
  }
}

5d49e6ed4c9b4d682585c0a7ed646bf83e9e4a7b

@github-actions github-actions bot added the todo label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants