Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Swagger ui redesign/font changes#1

Open
lshaw-sb wants to merge 34 commits intofacelift-demofrom
swagger-ui-redesign/font-changes
Open

Swagger ui redesign/font changes#1
lshaw-sb wants to merge 34 commits intofacelift-demofrom
swagger-ui-redesign/font-changes

Conversation

@lshaw-sb
Copy link
Copy Markdown

This is for review only and should NOT be merged to facelift-demo

}

a
div > a, a.info__extdocs.link
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be a bit too ambiguous - maybe add the classname to be more specific:
div.opblock-tag > a

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are multiple a tags under the div thats why its like that

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you are styling all direct descendant a elements in all div elements...
Adding the div class .opblock-tag would be a bit more specific


.title
{
font-size: 36px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be em ...or removed?

{
font-size: 14px;
font-weight: bold;
display: flex;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this left over from my PR?
If so you should probable delete the flex props and re-add text-align: center

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. cheers!


display: flex;
align-items: center;
justify-content: space-between;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left over from my PR?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. cheers!

cursor: pointer;
transition: all .2s;

border-bottom: 1px solid rgba($section-models-border-color, .3);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. cheers!


$info-title-small-pre-font-color: $white !default;

$info-title-small-pre-font-size: 12px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be em?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. cheers!

$opblock-tag-border-bottom-color: $bright-gray !default;
$opblock-tag-background-color-hover: $black !default;
$opblock-tag-h4-font-size: 2em;
$opblock-tag-small-font-size:1.4em;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pedantic, but make sure space after colon

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done. cheers!

@Rody-Kirwan
Copy link
Copy Markdown

Some tiny updates. Otherwise looks good

@lshaw-sb lshaw-sb requested a review from Rody-Kirwan May 10, 2019 21:24
@@ -1,3 +1,8 @@
html {
font-size: 62.5%;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its part of support for EM for fonts which i started to bring in from Rodys branch

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be in the .swagger-ui block - not in html

@include text_headline();
a.nostyle
{
@include text_title($size: $opblock-tag-h4-font-size);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 space indent

Copy link
Copy Markdown

@Rody-Kirwan Rody-Kirwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of small comments.
The main one is to move the font-size: 62.5% to the .swagger-ui class

font-weight: 600;

color: $color;
font-family: $code-default-font-family;
Copy link
Copy Markdown

@Rody-Kirwan Rody-Kirwan May 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be 4 space indentation.
I think you may need to change your settings in vscode

lshaw-sb and others added 7 commits May 15, 2019 10:30
Removing these changes
avoids injection of absolute paths into production stylesheets

former output: `url(/Users/kyle/Code/ui/dist/fonts/roboto-light-webfont.woff2)`
new output: `url(./fonts/roboto-light-webfont.woff2)`
makes our new `font-display: swap` play nicer; generally better for end users under poor network conditions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants