Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeled input size issues #2486

Closed
CakalSG opened this issue Jul 1, 2015 · 3 comments
Closed

Labeled input size issues #2486

CakalSG opened this issue Jul 1, 2015 · 3 comments
Milestone

Comments

@CakalSG
Copy link

CakalSG commented Jul 1, 2015

Hi,

input size (mini,small, ...) very nice.

But labeled input size not same. input and label not same ratio.

Example: http://jsfiddle.net/cakal/03u8gg5L/1/

http://

inspect element and

.ui.labeled.input>.label {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
margin: 0;
/* font-size: 1rem; */ -->> uncheck

.ui.big.label, .ui.big.labels .label, .ui.huge.label, .ui.huge.labels .label, .ui.label, .ui.labels .label, .ui.large.label, .ui.large.labels .label, .ui.massive.label, .ui.massive.labels .label {
/* font-size: .85714286rem; */ ------> uncheck

.ui.mini.input {
font-size: .71428571em; --> check

good result

@jlukic
Copy link
Member

jlukic commented Jul 1, 2015

Fixed with font-size: inherit. I'll add in first patch

.ui.labeled.input>.label {
  font-size: inherit;
}

@jlukic jlukic added this to the 2.0.x milestone Jul 1, 2015
@kylerm42
Copy link

kylerm42 commented Jul 1, 2015

It seems that labels themselves are having a similar issue. Medium, large, big, huge, and massive are all the same size: http://semantic-ui.com/elements/label.html#size

@jlukic
Copy link
Member

jlukic commented Jul 1, 2015

Found the culprit. Can you spot the error? 😆 All larger sizes are set to @12px

/* Sizing */
@mini    : @9px;
@tiny    : @10px;
@small   : @11px;
@medium  : @12px;
@large   : @medium;
@big     : @large;
@huge    : @big;
@massive : @huge;

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

No branches or pull requests

3 participants