Skip to content

better 4get by mimvahedi

Screenshot of better 4get

Details

Authormimvahedi

LicenseNo License

Category4get

Created

Updated

Size7.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

modern ui and colorschme for 4get

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         better 4get
@version      0.2.0
@namespace    mimv
@preprocessor less
==/UserStyle== */
@-moz-document domain(4get.ca),
domain(4g.ggtyler.dev),
domain(4get.dcs0.hu),
domain(4get.hbubli.cc),
domain(4get.kizuki.lol),
domain(4get.konakona.moe),
domain(4get.lunar.icu),
domain(4get.lvkaszus.pl),
domain(4get.seitan-ayoub.lol),
domain(4get.silly.computer),
domain(4get.milivojevic.in.rs),
domain(4get.sijh.net),
domain(search.milivojevic.in.rs),
domain(4get.perennialte.ch) {
  /* instance list from farside.link and 4get.ca/instances */
  * {
    box-sizing: border-box;
    --gradient: linear-gradient(to top, #4eeac6, #09f);
    --gradient-h: linear-gradient(to right, #4eeac6, #09f);
    --bradius: 12px;
    --bradius-2: 16px;
    --input-shadow: 0 2px 4px -2px #0004;
  }

  body {
    max-width: 1500px;
    margin: auto;
    font-family: inter, cantarell, vazirmatn, system-ui, sans-serif;
    padding: 2em 1em;
  }

  /*
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(to top, #6d53c4, #d7a7f2);
    max-width: max-content;
    filter: drop-shadow(0 0 8px #0004);
  }
  */
  audio {
    border-radius: var(--bradius);
  }
  .thumb-wrap,
  #images img {
    border-radius: var(--bradius);
    object-fit: cover;
  }

  .duration {
    border: none;
    bottom: 0.5em;
    right: 0.5em;
    border-radius: .33rem;
    line-height: 1.2;
    padding: 0 0.25em;
    font-family: inherit;
    background: #000c;
  }

  .web .text-result {
    padding: 0;
    margin: 0 0 3rem;
  }
  .web .text-result .title {
    font-size: 1.33em;
    line-height: 1.1;
    font-weight: 550;
    color: var(--title-color);
  }

  .web .text-result .greentext {
    color: inherit;
    opacity: .75;
  }
  .web .text-result .title b {
    font-weight: unset;
    background: var(--gradient-h);
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }



  .web .url {
    color: var(--a89984);
  }
  .web .url .part {
    color: inherit;
  }
  .web .url .part:first-of-type {
    font-weight: 550;
  }
  .web .url .separator::before {
    content: "›";
    font-weight: bold;
    color: inherit;
  }

  .web .text-result:last-child {
    border-bottom: none;
  }

  /*top nav*/
  .navigation {
    margin: 1rem;
    line-height: 1;
  }
  .navigation > a {
    padding: 0 1em;
    line-height: 1;
    display: inline-block;
    font-size: 0.75rem;
    border-left: 1px solid #8884;
  }
  .navigation > a:not(:last-child)::after {
    content: none;
  }

  .filters .filter input,
  .filters .filter select {
    padding: 0.5em;
    border-radius: var(--bradius);
    border: 1px transparent solid;
    box-shadow: var(--input-shadow);
    border-top-left-radius: 0;
    background: linear-gradient(var(--1d2021), var(--1d2021)), linear-gradient(#8888 25%, #0000 75%);
    background-clip: padding-box, border-box;
    background-origin: border-box;
  }

  .filters .filter .title {
    font-size: 0.75em;
    margin: 0 0 -.75em 0rem;
    width: max-content;
    background: var(--1d2021);
    z-index: 3;
    position: relative;
    padding: 0 .33em;
    color: var(--a89984);
  }

  .ichbox input[type="submit"] {
    background: var(--gradient);
    border-radius: var(--bradius-2);
  }
  .searchbox input[type="text"] {
    border: none;
    border-radius: var(--bradius);
  }
  .searchbox {
    border: 1px solid transparent;
    height: unset;
    padding: .25em;
    border-radius: var(--bradius-2);
    margin-bottom: 0;
    box-shadow: var(--input-shadow);
  }

  .tabs {
    max-width: max-content;
    margin-bottom: 1rem;
    padding-bottom: 0;
  }
  .tabs .tab {
    padding: .5em 1em;
  }

  .tabs .tab.selected {
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: var(--gradient);

    border: none;
    position: relative;
    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--gradient-h);
      border-radius: 50em;
    }
  }

  .tabs .tab:hover {
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: var(--gradient);
  }

  /**/
  .timetaken {
    margin-bottom: 2.5rem;
  }

  /*favicon*/
  .favicon {
    float: none;
    display: inline-block;
    vertical-align: middle;
  }
  .web .favicon img,
  .favicon-dropdown img {
    margin: 0;
    margin-inline-end: .5rem;
    border-radius: 4px;
    width: 1em;
    height: 1em;
    font-size: 1.25rem;
  }

  .favicon-dropdown {
    border-radius: var(--bradius);
    padding: .25em;
  }
  .favicon-dropdown a {
    padding: 0.25em;
  }
  .favicon-dropdown a:hover {
    background: var(--3c3836);
    border-radius: var(--bradius);
  }

  .favicon-dropdown:hover,
  .favicon:focus + .favicon-dropdown,
  .favicon-dropdown:focus-within,
  .favicon:hover + .favicon-dropdown {
    animation: up ease 125ms;
  }


  @keyframes up {
    from {
      transform: translateY(1em);
      opacity: 0;
    }
  }



  .web .right-right,
  .web .right-left {
    width: 100%;
    float: none;
    padding: 0;
  }


  @media only screen and (min-width: 1000px) {
    .web .right-wrapper {
      width: 34%;
    }
    .web .left {
      width: 66%;
    }
  }
  @media only screen and (max-width: 1000px) {
    form {
      padding-top: 0;
    }
  }


  .related tr td {
    padding: .25em !important;
  }
  .related a {
    padding: .5em .75em;
    border: 1px solid var(--504945);
    border-radius: var(--bradius-2);
  }

  .web .spoiler-button,
  .nextpage {
    border: 1px solid currentColor;
    background: var(--282828);
    width: fit-content;

    border-radius: var(--bradius);
  }


  @media only screen and (max-width: 1000px) {
    body {
      padding: 0;
    }
    .web .text-result {
      padding: 1rem !important;
    }
    .searchbox {
      border-radius: 0;
    }
    .tabs {
      margin: 0 .5rem;
    }
    .web .answer-title,
    .web.has-answer .left::before {
      margin-left: 1rem;
    }
    .filters .filter {
      margin: 1rem .5rem 0;
    }
  }


  :root {
    /* background bg */
    --1d2021: hsl(240, 5%, 10%);

    /* card bg (in this userstyle) */
    --282828: hsl(240, 5%, 15%);

    /* card bg (original) */
    --3c3836: #282c35;

    /*input border*/
    --504945: #75888a;

    /* links  */
    --928374: #fff;

    /* inputs and description text*/
    --a89984: #c5c5c5;

    /*default text*/
    --bdae93: #d1d1d4;
  }


  :root {
    --1d2021: hsl(220, 20%, 5%);
    --282828: hsl(220, 30%, 15%);
    --3c3836: hsl(220, 40%, 25%);


    --title-color: hsl(220, 75%, 75%);


    /*border*/
    --504945: var(--3c3836);

    /* links  */
    --928374: hsl(0, 0%, 100%);

    /* inputs and description text*/
    --a89984: hsl(220, 15%, 65%);

    /*default text*/
    --bdae93: hsl(220, 50%, 75%);
  }



  /*TODO: LIGTH THEME*/
  body.ligth {
    /* background bg */
    --1d2021: #e1e8ef;

    /* card bg (in this userstyle) */
    --282828: #fff;

    /* card bg (original) */
    --3c3836: #282c35;

    /*input border*/
    --504945: #75888a;

    /* links  */
    --928374: #0c8aea;

    /* inputs and description text*/
    --a89984: #446;

    /*default text*/
    --bdae93: #223;
  }
}

Reviews

No reviews yet.