Skip to content
Permalink
Browse files

use pt unit instead of px when possible, rework a bit the font sizes

  • Loading branch information...
illwieckz committed May 18, 2019
1 parent f2b11f4 commit 8a981a272d350796114bb89ef734fbf0da1f3c09
Showing with 52 additions and 51 deletions.
  1. +3 −3 planet-devfeeds/css/github.scss
  2. +6 −6 planet-devfeeds/css/gitlab.scss
  3. +28 −27 planet-devfeeds/css/news.scss
  4. +15 −15 planet-devfeeds/css/page.scss
@@ -7,9 +7,9 @@ $secondary-color: #fff;
$link-color: #1ab0b5;
$link-visited-color: #1ab0b5;

$std-font-size: 22px;
$mid-font-size: .9em;
$small-font-size: 11px;
$normal-font-size: 16pt;
$medium-font-size: .9em;
$small-font-size: 11pt;

$margin-left: 3em;
$margin-top: 1em;
@@ -7,11 +7,11 @@ $secondary-color: #fff;
$link-color: #1ab0b5;
$link-visited-color: #1ab0b5;

$std-font-size: 22px;
$mid-font-size: .9em;
$small-font-size: 11px;
$normal-font-size: 16pt;
$medium-font-size: .9em;
$small-font-size: 11pt;

$margin-left: 40px;
$margin-left: 40pt;
$margin-top: 1em;

// GitLab specific
@@ -23,6 +23,6 @@ div.item-snippet {
}

div.item-snippet pre {
margin-top: 0px;
margin-bottom: 0px;
margin-top: 0pt;
margin-bottom: 0pt;
}
@@ -7,11 +7,12 @@ $secondary-color: #fff;
$link-color: #1ab0b5;
$link-visited-color: #1ab0b5;

$std-font-size: 22px;
$mid-font-size: .9em;
$small-font-size: 11px;
$large-font-size: 18pt;
$normal-font-size: 16pt;
$medium-font-size: .9em;
$small-font-size: 11pt;

$margin-left: 40px;
$margin-left: 40pt;
$margin-top: 1em;

.last-update,
@@ -30,32 +31,32 @@ div.section,
div.header,
div.item
{
margin: 0;
padding: 0;
margin: 0pt;
padding: 0pt;
}

hr.item-separator,
hr.filler {
border: none;
background-color: #ccc;
color: #ccc;
height: 1px;
height: 1pt;
}

.item {
font-size: $mid-font-size;
font-size: $medium-font-size;

h1, h2, h3, h4, h5, h6, b {
font-size: $mid-font-size;
font-size: $medium-font-size;
}

p, h1, h2, h3, h4, h5, h6 {
margin: 2px 0px 2px 0px; // top, right, bottom, left
padding: 0;
margin: 2pt 0px 2px 0px; // top, right, bottom, left
padding: 0pt;
}

ul, ol {
margin: 2px 0px 2px 0px; // top, right, bottom, left
margin: 2pt 0px 2px 0px; // top, right, bottom, left
// note: do NOT change default padding
}

@@ -75,7 +76,7 @@ hr.filler {
}

.item-title {
font-size: $std-font-size;
font-size: $normal-font-size;
font-weight: normal;
}

@@ -91,13 +92,13 @@ hr.filler {
// Additions to Pluto theme

.item table {
padding-left: 50px;
padding-bottom: 7px;
padding-left: 50pt;
padding-bottom: 7pt;
}

@media screen and (max-width: 768px) {
@media screen and (max-width: 768pt) {
.item table {
padding-left: 0px;
padding-left: 0pt;
}
}

@@ -108,12 +109,12 @@ hr.filler {

.item-feed-avatar {
background-color: #fff;
width: 40px;
height: 40px;
width: 40pt;
height: 40pt;
}

.item-feed-title {
font-size: $std-font-size;
font-size: $large-font-size;
font-weight: bold;
white-space: nowrap;
text-overflow: ellipsis;
@@ -127,20 +128,20 @@ hr.filler {
.subscriptions {
display: inline;
list-style-type: none;
padding-left: 0px;
padding-left: 0pt;
}

p.subscription {
margin-bottom: 1em;
}

div.item td {
padding-top: 0px !important;
padding-bottom: 0px !important;
padding-top: 0pt !important;
padding-bottom: 0pt !important;
}

div.item-snippet {
margin-bottom: 0px;
margin-bottom: 0pt;
}

div.item-footer {
@@ -150,11 +151,11 @@ div.item-footer {

div.item-snippet,
div.item-footer {
margin-left: 2px;
padding-left: 11px;
margin-left: 2pt;
padding-left: 11pt;
border-left: thin solid grey;
}

p:empty {
font-size: 0px;
font-size: 0pt;
}
@@ -7,18 +7,18 @@ $secondary-color: #fff;
$link-color: #1ab0b5;
$link-visited-color: #1ab0b5;

$std-font-size: 22px;
$mid-font-size: .9em;
$small-font-size: 11px;
$normal-font-size: 16pt;
$medium-font-size: .9em;
$small-font-size: 11pt;

body {
font-family: sans-serif;
// font: Arial, sans-serif;
// background-color: #F4F4F4;
background: #000 url(//www.unvanquished.net/wp-content/themes/unv/images/background-wbtcn-3.jpg) repeat fixed;
color: $primary-color;
margin: 0px;
padding: 0px;
margin: 0pt;
padding: 0pt;
}

a {
@@ -42,22 +42,22 @@ a {
}

.content {
padding-left: 15px;
padding-right: 15px;
padding-left: 15pt;
padding-right: 15pt;
background: #000 url(//www.unvanquished.net/wp-content/themes/unv/images/background-wbtcn-3.jpg) repeat scroll;
}

.site-footer {
background: #0a0a0a;
border-top: 5px solid #0e0e0e;
box-shadow: inset 0px 0px 30px 0px #000;
padding: 15px;
padding-bottom: 20px;
border-top: 5pt solid #0e0e0e;
box-shadow: inset 0pt 0px 30px 0px #000;
padding: 15pt;
padding-bottom: 20pt;
text-align: center;
}

.site-footer img {
opacity: 0.3;
opacity: .3;
width: 8%;
}

@@ -67,7 +67,7 @@ a {
}

.content-title {
padding: $std-font-size $std-font-size $std-font-size 0px;
padding: $normal-font-size $normal-font-size $normal-font-size 0pt;
}

.content-title h2 {
@@ -86,7 +86,7 @@ a {
width: 48%;
}

@media screen and (max-width: 930px) {
@media screen and (max-width: 930pt) {
#unv-navbar div li,
#unv-navbar div:first-child li,
#unv-navbar div:nth-child(2) li {
@@ -95,7 +95,7 @@ a {
}

.nav-menu1 {
padding-left: 0px;
padding-left: 0pt;
}

.menu-main-menu-left-container,

0 comments on commit 8a981a2

Please sign in to comment.
You can’t perform that action at this time.