Skip to content

Conversation

@Sterbweise
Copy link

Zen style theme for anime-same.fr

@sameerasw
Copy link
Owner

Unfortunately this css does not follow any guidelines provided in the repo readme which makes them compatible with the addon, Can you please update it :)

@sameerasw
Copy link
Owner

Contributing styles

Please make sure you go through all the provided instructions before submittinga new theme with a PR.

  1. You can use the example.com.css as a starter for most websites to grab the stylesheet format.

  2. Make sure the file is named in the correct format [website domain].css (google.com.css and docs.google.com.css are 2 styles which are not merged unless you do 9.)

  3. Please respect auto theming for day and night themes. If the website does not have a dark theme, account for dark reader.

  4. Do not use wildcards such as applying transparency for all div elements since that is handled with force theming in the addon.

  5. Every property should include !important to make sure it gets applied.

  6. Do NOT leave commented out code.

  7. Don't include www in the stylesheet file name.

  8. Add propper comments for each section of a feature at the beginning with a clear but compact description.

  9. For theming similar domains like app.arduino.cc , login.arduino.cc ..... similar urls with prefixes, you can add a general style with a leading + symbol when creating the stylesheet. ( +arduino.cc.css ) example

  10. Similarly, for theming websites with a shared domain but with different suffixes (like google.com, google.lk...), you can add the - symbol to the start of the stylesheet file name so it will replace the provided domain of the file name's domain. (-google.com.css). example

  11. [optional] Each comment of the same file should have a unique domain specific identified prefix (yt- ytm- gh- ...) which will help the browser to separately apply themes.

      /* yt-transparency */
      :root{
        --colorBgApp: transparent !important;
      }
    
      /*  yt-no footer */
      footer.app-footer {
        display: none !important;
      }
    
  12. Always make sure the first feature is transparency and also use the exact feature name without a difference allowing the global transparency toggle to work. Prefixes with - are acceptable.

  13. Don't keep the firefox selectors if you are coying over from the userContent.css (remove @-moz-document domain(" ") )

  14. Once comitted to the repository, github actions will parse the css file and update/ generate the styles.js and then will be deployed to the github pages allowing the add-on to fetch from it.

Thank you <3

@PaulExplorer
Copy link
Contributor

I don’t know how to contribute to someone else’s pull request, but I tried to make their code compatible. Here’s my code:

/* tranparency */
html,
body,
footer,
.container,
.main-content,
.bg-slate-900,
.bg-gray-800,
.bg-slate-800,
.bg-gray-900,
.bg-sky-900,
.bg-black,
.bg-zinc-900 {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    transition: all 0.3s ease-in-out !important;
}

.border-sky-900,
.border-sky-800,
.dark\:border-gray-700,
.border-gray-400,
.border-slate-600 {
    border-color: transparent !important;
}

.outline-sky-800,
.outline-gray-500,
.outline-sky-700 {
    outline-color: transparent !important;
}

.border-slate-500 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.text-black {
    --tw-text-opacity: 1;
    color: rgb(255, 255, 255);
}

.bg-gray-600 {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

nav.border-b-2 {
    background: transparent !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
}

.content-section {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Hover */
.hover\:bg-gray-700:hover,
.hover\:bg-sky-900:hover {
    background-color: rgba(0, 0, 0, 0) !important;
}

.hover\:text-sky-500:hover {
    --tw-text-opacity: 1;
    color: rgba(255, 255, 255, 0.3);
}

nav.border-b-2 {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

nav.border-b-2:hover {
    opacity: 1 !important;
}

footer {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

footer:hover {
    opacity: 1 !important;
}

.flex.flex-wrap.justify-center.items-center.mt-2.bg-slate-900.bg-opacity-70.rounded {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

.flex.flex-wrap.justify-center.items-center.mt-2.bg-slate-900.bg-opacity-70.rounded:hover {
    opacity: 1 !important;
}

.text-white.text-center.mt-2.italic {
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

.text-white.text-center.mt-2.italic:hover {
    opacity: 1 !important;
}

.button {
    background-color: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Shadow effects */
.shadow-black {
    --tw-shadow-color: rgba(0, 0, 0, 0.2) !important;
    --tw-shadow: var(--tw-shadow-colored);
}

/* Navigation links */
.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease-in-out !important;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Better Spacing */
#sousBlocMiddle {
    padding-top: 56px !important;
}
.content-section {
    margin: 1rem 0 !important;
    padding: 1.5rem !important;
}

/* Hide undesirable */
.text-sm.text-white.text-center.font-medium.opacity-50.mt-32.pb-2 {
    display: none !important;
}

.flex.flex-wrap.justify-center.items-center.my-2.bg-slate-900.bg-opacity-70.rounded {
    display: none !important;
}

/* Remove advertisements */
#bannRight,
#bannBot,
#squBot,
#bannLeft {
    display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Dark Reader  */
:root {
    --darkreader-background-ffffff: transparent !important;
    --darkreader-text-bgcolor: transparent !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Pending

Development

Successfully merging this pull request may close these issues.

3 participants