Git Product home page Git Product logo

Comments (7)

ccd0 avatar ccd0 commented on August 29, 2024

Things like the checkbox

Not sure what you mean here; you should be seeing a checkbox unless there's a bug or you're removing it with another script.

and the menu and post hiding button only appearing when the post is hovered over would all be great things to have but can't be added with just some custom CSS.

That part you can do with something like

.postContainer:not(:hover) > .hide-reply-button > *:before,
.postContainer:not(:hover) .menu-button > *:before {
  visibility: hidden;
}
.postContainer:not(:hover) .menu-button {
  width: 6px;
}

from 4chan-x.

spaghetti2514 avatar spaghetti2514 commented on August 29, 2024

Not sure what you mean here; you should be seeing a checkbox unless there's a bug or you're removing it with another script.

The style of the checkbox. Not the presence of a checkbox

Also the hide-reply-button being inside the post instead of to its left is really nice

from 4chan-x.

ccd0 avatar ccd0 commented on August 29, 2024

You should be able to change the style of the checkbox with CSS.
But an option to move the hide button inside would be welcome.

from 4chan-x.

spaghetti2514 avatar spaghetti2514 commented on August 29, 2024

checkboxes require an additional element within them to be styled properly cross-browser/OS
Appchan creates a div with the class "rice" inside them, hides the checkbox itself, and styles that div.

from 4chan-x.

 avatar commented on August 29, 2024

I was thinking about it, integrating OneeChan into 4chan X. Wouldn't it become an Appchan X 2 then?

from 4chan-x.

seaweedchan avatar seaweedchan commented on August 29, 2024

The only reason I never did that myself was because people throw a fit about not being able to make their own fork choices (even though I only supported one fork) and it becomes a hassle to have to keep OneeChan's 4chan X functions up-to-date with whatever fork you pull from.

from 4chan-x.

saxamaphone69 avatar saxamaphone69 commented on August 29, 2024

In case people are still interested in this, styling input[type="checkbox"] natively is getting a little easier. With a little CSS in your Custom CSS, you can get something pretty close to the OneeChan experience (in latest Chrome, anyway).

input[type="checkbox"] {
  border: 1px solid #dedede; /* or whatever colour you want */
  background-color: rgb(255, 255, 255); /* or whatever colour you want */
  transition: background .2s;
  margin: 1px; /* may need some extra margin here and there for total consistency */
  /* vertical-align: middle; */ /* can also be used where margin may not work */
  height: 12px;
  width: 12px;
  border-radius: 2px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="checkbox"]:hover {
  background-color: rgb(239, 239, 239); /* or whatever colour you want */
}

input[type="checkbox"]:checked {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAP9JREFUOMvV0CFLQ2EYxfHfrtdiURgbmCxOmFPBJgZZ0CQD0Q+goFkwabWIyWIWFgwmy7Qp7DPI3GD7ACZlYLNcy31ljG0aDHrSy3N43nOef6ZULBiifczEQ8wV7OAtGmBO4wgfOI2whsXUnMAJ8rhCJ8IxDpHDHpZwixqM5XPZBBtYxioauEgjRLjBI2bRxTneQ6EYCS4xiTu89DbONJrtP88hwnV64hm28YRqyPsFDkmSGKUYFubnsqignM7rqDWa7dcAqoLdnsXwrgZQ5QG/l8MVIxX1ZPar/lUyUOsv+aMzv+0Qw3OrM4VNrKfzB9yXioVu6LDVx+EA4/+Gwycw/Uz36O07WwAAAABJRU5ErkJggg==);
  background-repeat: no-repeat;
  background-position: 1px 1px; /* if you view the original background-image taken from OneeChan, you can estimate what number these should be if you want a light checkbox, or even choose your own background-image */
}

image

As for the hiding button "in" the post, something along the lines of:

.postContainer { position: relative; }
.postContainer .hide-reply-button { position: absolute; top: 0; right: 0; display: none; }
.postContainer:hover .hide-reply-button { display: block; }

would get the same effect.

from 4chan-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.