Skip to content

update project description - fix code rendering #3397

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

Merged
merged 1 commit into from
Mar 24, 2018
Merged
Changes from all 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
82 changes: 57 additions & 25 deletions warehouse/static/sass/blocks/_project-description.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,46 @@
h4,
h5,
h6 {
padding: $spacing-unit 0 0;
padding: 0;
margin: $spacing-unit 0 0;
}

h1 {
font-size: 1.7rem;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
margin-top: $spacing-unit;
}

// Remove top margin on elements at the top of the description
> div:first-child > *:first-child,
> *:first-child,
> div:first-child > *:first-child,
> *:first-child,
> div:first-child > *:first-child,
> *:first-child,
> div:first-child > *:first-child,
> *:first-child,
> div:first-child > *:first-child,
> *:first-child,
> div:first-child > *:first-child,
> *:first-child {
margin-top: 0;
}

p {
padding: 0;
margin-top: $spacing-unit / 2;
}

li p:first-child {
margin-top: 0;
}

strong,
Expand All @@ -47,12 +86,21 @@
pre {
display: block;
padding: $spacing-unit / 2;
margin-bottom: $spacing-unit / 2;
margin: $spacing-unit 0 0;
}

pre code {
font-size: inherit;
padding: 0;
background-color: transparent;
border: 0;
color: inherit;
}

ol,
ul {
margin: ($spacing-unit / 2) 0 ($spacing-unit / 2) $spacing-unit;
margin: ($spacing-unit / 2) 0 0 $spacing-unit;
padding-bottom: 0;

@media only screen and (max-width: $mobile) {
margin-left: $spacing-unit / 2;
Expand All @@ -77,7 +125,7 @@
}

blockquote {
margin: ($spacing-unit / 2) 0 ($spacing-unit / 2) ($spacing-unit / 2);
margin: ($spacing-unit / 2) 0 0 ($spacing-unit / 2);
border-left: 3px solid $light-grey;
font-style: italic;
padding-left: ($spacing-unit / 2);
Expand All @@ -89,7 +137,7 @@
}

dl {
margin: ($spacing-unit / 2) 0 5px 0;
margin: ($spacing-unit / 2) 0 0 0;

dt {
font-weight: $bold-font-weight;
Expand All @@ -102,33 +150,17 @@

table {
@include table;
margin-bottom: $spacing-unit;
margin: $spacing-unit 0 0;
}

hr {
margin: ($spacing-unit / 2) 0;
margin: ($spacing-unit / 2) 0 0;
border: 1px solid $light-grey;
}

// Add a margin at the bottom of commonly included status badges
// Add a margin at the top of commonly included status badges
> a {
margin-bottom: $spacing-unit / 2;
}

// Remove top padding on titles at the top of the description
> div:first-child > h1:first-child,
> h1:first-child,
> div:first-child > h2:first-child,
> h2:first-child,
> div:first-child > h3:first-child,
> h3:first-child,
> div:first-child > h4:first-child,
> h4:first-child,
> div:first-child > h5:first-child,
> h5:first-child,
> div:first-child > h6:first-child,
> h6:first-child {
padding-top: 0;
margin-top: $spacing-unit / 2;
}
}

Expand Down