source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: mandoc: John Gardner tells me that among frontend developers, gratuitous
Date: Mon, 28 May 2018 10:39:55 -0500 (EST)	[thread overview]
Message-ID: <f14dd7cb4785a91b@fantadrom.bsd.lv> (raw)

Log Message:
-----------
John Gardner tells me that among frontend developers, gratuitous use
of double selectors like "element.class" is considered poor style.
When doing selection mainly by elements is not appropriate because
most elements require several different styles, exclusively selecting
by class is less cumbersome, more concise, and more flexible.
So drop the elements from the selectors, except where they are 
required for disambiguation and except where they add clarity due
to the presence of child selectors.

Modified Files:
--------------
    mandoc:
        mandoc.css

Revision Data
-------------
Index: mandoc.css
===================================================================
RCS file: /home/cvs/mandoc/mandoc/mandoc.css,v
retrieving revision 1.31
retrieving revision 1.32
diff -Lmandoc.css -Lmandoc.css -u -p -r1.31 -r1.32
--- mandoc.css
+++ mandoc.css
@@ -41,7 +41,6 @@ table.head {	width: 100%;
 td.head-vol {	text-align: center; }
 td.head-rtitle {
 		text-align: right; }
-div.Nd {	display: inline; }
 
 table.foot {	width: 100%;
 		border-top: 1px dotted #808080;
@@ -53,22 +52,23 @@ td.foot-os {	text-align: right; }
 
 div.manual-text {
 		margin-left: 3.8em; }
-h1.Sh {		margin-top: 2ex;
+.Nd {		display: inline; }
+.Sh {		margin-top: 2ex;
 		margin-bottom: 1ex;
 		margin-left: -3.2em;
 		font-size: 110%; }
-h2.Ss {		margin-top: 2ex;
+.Ss {		margin-top: 2ex;
 		margin-bottom: 1ex;
 		margin-left: -1.2em;
 		font-size: 105%; }
-div.Pp {	margin: 1ex 0ex; }
-a.Sx { }
-a.Xr { }
+.Pp {		margin: 1ex 0ex; }
+.Sx { }
+.Xr { }
 
 /* Displays and lists. */
 
-div.Bd { }
-div.D1 {	margin-left: 3.8em; }
+.Bd { }
+.D1 {		margin-left: 3.8em; }
 
 ul.Bl-bullet {	list-style-type: disc;
 		padding-left: 1em; }
@@ -130,25 +130,28 @@ table.Bl-column > tbody > tr > td {
 table.Bl-compact > tbody > tr > td {
 		margin-top: 0em; }
 
-cite.Rs {	font-style: normal;
+.Rs {		font-style: normal;
 		font-weight: normal; }
-span.RsA { }
-i.RsB {		font-weight: normal; }
-span.RsC { }
-span.RsD { }
-i.RsI {		font-weight: normal; }
-i.RsJ {		font-weight: normal; }
-span.RsN { }
-span.RsO { }
-span.RsP { }
-span.RsQ { }
-span.RsR { }
-span.RsT {	text-decoration: underline; }
-a.RsU { }
-span.RsV { }
+.RsA { }
+.RsB {		font-style: italic;
+		font-weight: normal; }
+.RsC { }
+.RsD { }
+.RsI {		font-style: italic;
+		font-weight: normal; }
+.RsJ {		font-style: italic;
+		font-weight: normal; }
+.RsN { }
+.RsO { }
+.RsP { }
+.RsQ { }
+.RsR { }
+.RsT {		text-decoration: underline; }
+.RsU { }
+.RsV { }
 
-span.eqn { }
-table.tbl { }
+.eqn { }
+.tbl { }
 
 /* Semantic markup for command line utilities. */
 
@@ -156,66 +159,66 @@ table.Nm { }
 code.Nm {	font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-code.Fl {	font-style: normal;
+.Fl {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-code.Cm {	font-style: normal;
+.Cm {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-var.Ar {	font-style: italic;
+.Ar {		font-style: italic;
 		font-weight: normal; }
-div.Op {	display: inline; }
-code.Ic {	font-style: normal;
+.Op {		display: inline; }
+.Ic {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-code.Ev {	font-style: normal;
+.Ev {		font-style: normal;
 		font-weight: normal;
 		font-family: monospace; }
-span.Pa {	font-style: italic;
+.Pa {		font-style: italic;
 		font-weight: normal; }
 
 /* Semantic markup for function libraries. */
 
-span.Lb { }
+.Lb { }
 code.In {	font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
 a.In { }
-code.Fd {	font-style: normal;
+.Fd {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-var.Ft {	font-style: italic;
+.Ft {		font-style: italic;
 		font-weight: normal; }
-code.Fn {	font-style: normal;
+.Fn {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-var.Fa {	font-style: italic;
+.Fa {		font-style: italic;
 		font-weight: normal; }
-var.Vt {	font-style: italic;
+.Vt {		font-style: italic;
 		font-weight: normal; }
-var.Va {	font-style: italic;
+.Va {		font-style: italic;
 		font-weight: normal; }
-code.Dv {	font-style: normal;
+.Dv {		font-style: normal;
 		font-weight: normal;
 		font-family: monospace; }
-code.Er {	font-style: normal;
+.Er {		font-style: normal;
 		font-weight: normal;
 		font-family: monospace; }
 
 /* Various semantic markup. */
 
-span.An { }
-a.Lk { }
-a.Mt { }
-code.Cd {	font-style: normal;
+.An { }
+.Lk { }
+.Mt { }
+.Cd {		font-style: normal;
 		font-weight: bold;
 		font-family: inherit; }
-span.Ad {	font-style: italic;
+.Ad {		font-style: italic;
 		font-weight: normal; }
-span.Ms {	font-style: normal;
+.Ms {		font-style: normal;
 		font-weight: bold; }
-span.St { }
-a.Ux { }
+.St { }
+.Ux { }
 
 /* Physical markup. */
 
@@ -235,8 +238,8 @@ a.Ux { }
 @media (max-width: 37.5em) {
 div.manual-text {
 		margin-left: 0.5em; }
-h1.Sh, h2.Ss {	margin-left: 0em; }
-div.D1 {	margin-left: 2em; }
+.Sh, .Ss {	margin-left: 0em; }
+.D1 {		margin-left: 2em; }
 dl.Bl-hang > dd {
 		margin-left: 2em; }
 dl.Bl-tag {	margin-left: 2em; }
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2018-05-28 15:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f14dd7cb4785a91b@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).