Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Add the default monospace font stack for <code> elements#427

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletionsstatic/shared/css/documentation.css
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1017,7 +1017,6 @@ div.sidebar-module ul ul li span {
.content dl code,
.content ul code,
p code {
font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
-webkit-border-radius: 3px;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to keep the font stack here, or it would be dropped from.content .verseblock-content,.content .sectionbody .dlist dt, and.content p > tt.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I could be wrong but from what I can see thecode block onL#1157 further down catches it and applies the correct styling - I think that was why I chose to have a generic catch allcode selector.

pcode

contentulcode

Also, I wasn't able to find.content .verseblock-content or.content .sectionbody .dlist dt used anywhere in the markup so perhaps it has since been removed and we can safely remove it?

Copy link
Contributor

Choose a reason for hiding this comment

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

@jacobbednarz 💥 You're right!

-moz-border-radius: 3px;
border-radius: 3px;
Expand DownExpand Up@@ -1155,12 +1154,15 @@ body.api .content table td {
Pre/Code Styles
------------------------------------------------------------------------------*/

code {white-space: nowrap;}
code {
white-space: nowrap;
font: 12px Consolas, 'Liberation Mono', Courier, monospace;
}

pre {
border: 1px solid #cacaca;
line-height: 1.2em;
font: 12pxMonaco,"Courier New","DejaVu SansMono","Bitstream Vera Sans Mono",monospace;
font: 12pxConsolas, 'LiberationMono', Courier,monospace;
padding: 10px;
overflow:auto;
-webkit-border-radius: 3px;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp