Skip to main content
Topic: Members search options droppy misalignment? (Read 5157 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Members search options droppy misalignment?

Reply #15

Quote from: Antechinus – It's weird though that it's also affecting the last option (search by position) which doesn't break to two lines.
^ this, can't explain it either. Browser weirdnesses maybe?
Quote from: Antechinus – Y'know what would probably fix it for all cases? Setting the label width to 100%*. There are no horizontal paddings involved, so it shouldn't bork anything.

*Or even just display: block;
Yeah perhaps that could do as well.

OT: damn glad I am finally understanding what the heck you are saying and replying to it :P

@derived I think FF is at version 44 or something, I updated it like yesterday. So yeah you are quite a bit behind ;D
~ SimplePortal Support Team ~

Re: Members search options droppy misalignment?

Reply #16

Yeah I'd just go with:

Code: [Select]
.mlsearch_option label {display: block;}

Should be bulletproof.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #17

Meh. Just tested it on local. Doesn't work. :P
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #18

AHA! Got it. It's the height settings. This fixes it:

Code: [Select]
.mlsearch_option {min-height: 2em;}

Explanation: the li's were collapsing to a bit less than the height of the checkbox under some circumstances, with the result that the floated checkboxes staggered themselves.

ETA: Better solution in next post.
Last Edit: February 28, 2016, 06:43:46 pm by Antechinus
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #19

Ok so went digging. The first declarations are here in default/css/index.css:

Code: (Find) [Select]
#mlsearch_options .mlsearch_option .input_check {
margin: 0 0 0 0.5em;
float: right;
}
#mlsearch_options .mlsearch_option {
padding: 0.2em 0;
}

These are excessively verbose. There should not be any need to declare that long a descendant chain. Also, just thought of another trick, namely setting line-height on the li's.

AFAICT this works. Should be bulletproof. Try it out on your browsers/boxes and see what you think:

Code: (Replace) [Select]
.mlsearch_option {
line-height: 2em;
}

.mlsearch_option .input_check {
margin: 0 0 0 0.5em;
float: right;
}
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #20

Had already figured that, but went with an easier fix to just move it to the left ;D
~ SimplePortal Support Team ~

Re: Members search options droppy misalignment?

Reply #21

Yeah but that always looks crappy if it breaks to two lines, because the first word of the new line ends up under the checkbox.

And anyway, really the excessively verbose declarations in index.css should be fixed.
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #22

Not clear on what you mean. Screenshot?
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #23

Match the options length is not always an option, since these options may include custom fields as well, and here there is close to no way to line anything with anything... I think. And that is another reason to consider move the checkboxes on the left (i.e. those are always at the same place no matter what the length of the text is).
Bugs creator.
Features destroyer.
Template killer.

Re: Members search options droppy misalignment?

Reply #24

Well, if you want checkboxes on the left all you have to do is remove the float and change the margin. I like them on the right myself, because the label is clickable (bigger target, I never click the actual checkbox) and it feels more natural to me to read the label first (like oh yeah, I want that option).

The other point is that perhaps you should consider setting a maximum width on the droppy anyway, because depending on forum width settings, screen res and length of label text, the way it is now the droppy could overflow off the right edge of the screen sometimes.

Makes no difference to me what you do, since if I something different in a theme of my own I'll just rewrite whatever is necessary. Suit yourselves. :)
Master of Expletives: Now with improved family f@&king friendliness! :D

Sources code: making easy front end changes difficult since 1873. :P

Re: Members search options droppy misalignment?

Reply #25

Fixed. See #2398
Bugs creator.
Features destroyer.
Template killer.

Re: Members search options droppy misalignment?

Reply #26

Should have pushed it myself, been too busy. #%&$ it again...
~ SimplePortal Support Team ~