odd-box 0.1.7-preview

dead simple reverse proxy server
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-color: #242424;
  --color: var(--color4);
  --color1: #ed6a5a;
  --color1-5: #ed6a5a55;
  --color2: #f4f1bb;
  --color2-5: #f4f1bb55;
  --color3: #7b9a95;
  --color3-5: #7b9a9555;
  --color4: #e6ebe0;
  --color4-5: #e6ebe055;
  --color5: #5da59c;
  --color5-5: #5da59c55;
  --color6: #c97847;
  --color6-5: #c9784755;
  --color7: #5da55e;
  --color7-5: #5da55e55;
  --color8: #bb6cde;
  --color8-5: #bb6cde55;
}

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  Typographic tweaks!
  3. Add accessible line-height
  4. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* background-image: url('/dark_bg.png'); */
  color:var(--color);
  background-color: var(--bg-color);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  /* display:grid; */
  min-height:100dvh;
  transition: padding-left 0.25s;
  font-family: "Ubuntu", sans-serif;


}

.inner-content {
  background-color: var(--bg-color);
  margin-bottom:180px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top:60px;
  min-height: 100dvh;
  @media screen and (min-width: 800px) {
    padding-left:340px;
    padding-right:40px;
  }
}

.checkbox-container {
  transition: all .2s;
  cursor:pointer;
  user-select: none;

  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #ffffff24;
  padding:5px 10px;
  width:max-content;
  gap:10px;
  border-radius:5px;
}

.checkbox-container:hover {
  background: #ffffff08;
}

/*
  5. Improve media defaults
*/
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
/*
  6. Remove built-in form typography styles
*/
input, button, textarea, select {
  font: inherit;
}
/*
  7. Avoid text overflows
*/
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/*
  8. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap:20px;
  user-select: none;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top:20px;
  margin-bottom:20px;
}

@media (max-width: 800px) {
  .settings-item:not(.row-only) {
      align-items: stretch;
      flex-direction: column;

  }
}

.env-var-item {
  position: relative;
  cursor: pointer;
  height:32px;
}

.env-var-item:before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color4);
  opacity: 0;
}

.env-var-item:nth-child(odd)::before {
  opacity: 0.3;
}

.env-var-item:hover {
  color: #fff;
}

.env-var-item:hover::before {
  background: #000000;
  opacity: 0.5;
}



.styled-button {
  background: var(--color3);
  color:white;
  border:0;
  outline:0;
  min-height: 32px;
  padding:6px 8px;
  border-radius:4px;
  cursor:pointer;
  text-transform: uppercase;
  font-size: .8rem;
  position: relative;
  transition: all .2s;
  width:100%;
  font-weight: bold;
}

.styled-button.danger {
  /* color:#fff; */
  background: var(--color1);
}

.styled-button.secondary {
  background: transparent;
  color: var(--color4);
  border: 1px solid var(--color4);
}

.styled-button.dropdown {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.button-dropdown-part {
  border-radius: 0;
  display: grid;
  place-content:center;
  width:32px;
  border:0;
  background: var(--color3);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  position: relative;
  cursor:pointer;
  border-left: 1px solid #ffffff88;
  padding: 6px 8px;
  transition: all .2s;
}

.button-dropdown-part:before {
  content:'';
  position:absolute;
  inset:0;
  background:currentColor;
  transition: opacity .2s ease-out;
  opacity: 0;
}

.styled-button.disabled {
  opacity: .5;
  background: gray;
  color: #fff;
  cursor: not-allowed;
}

.styled-button:before {
      content:'';
      position:absolute;
      inset:0;
      background:currentColor;
      transition: opacity .2s ease-out;
      opacity: 0;
  
}

.styled-button:hover:before {
  opacity: .20;
}  

.button-dropdown-part:hover:before {
  opacity: .20;
}  

.button-dropdown-option {
  border:0;
  outline:0;
  background:transparent;
  cursor: pointer;
  padding:4px 10px;
  display:flex;
  align-items: center;
  font-size: .9rem;
}

.button-dropdown-option:hover {
  background: #00000011;

}


.hide-when-small {
  @media screen and (max-width: 800px) {
    display:none;
  }
}


@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 14.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --accent: 0 0% 14.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 0 0% 83.1%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}


@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}