do not apply class when inside <pre>
https://stackoverflow.com/questions/23853931/how-can-i-style-code-only-if-its-parent-is-not-pre
This commit is contained in:
parent
ba90344999
commit
81ed3cc51d
1 changed files with 345 additions and 345 deletions
690
res/common.css
690
res/common.css
|
@ -1,345 +1,345 @@
|
||||||
/*
|
/*
|
||||||
Theme Name: Snail-orange
|
Theme Name: Snail-orange
|
||||||
Author: Marcoverga86, DeltaLima
|
Author: Marcoverga86, DeltaLima
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Module: common.css
|
Module: common.css
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ===== GENERAL (redefinition HTML tag) ===== */
|
/* ===== GENERAL (redefinition HTML tag) ===== */
|
||||||
html {
|
html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: Tahoma, 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
font-family: Tahoma, 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0
|
padding: 0
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color: #CCCCCC;
|
color: #CCCCCC;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/*background: #315A94;*/
|
/*background: #315A94;*/
|
||||||
background-image: url("../imgs/header-background.jpg");
|
background-image: url("../imgs/header-background.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: bottom center;
|
background-position: bottom center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size:cover;
|
background-size:cover;
|
||||||
background-attachment:fixed;
|
background-attachment:fixed;
|
||||||
background-color: #222;
|
background-color: #222;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr { display: none }
|
hr { display: none }
|
||||||
p { margin: .5em 0 }
|
p { margin: .5em 0 }
|
||||||
img { border: none }
|
img { border: none }
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 1em 1em;
|
margin: 1em 1em;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
/*border-left: 10px solid white;*/
|
/*border-left: 10px solid white;*/
|
||||||
border-left: 10px solid #daaa55;
|
border-left: 10px solid #daaa55;
|
||||||
background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
|
background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
|
||||||
}
|
}
|
||||||
|
|
||||||
pre, code {
|
pre, code {
|
||||||
font-family: Lucida Console, Monaco, monospace;
|
font-family: Lucida Console, Monaco, monospace;
|
||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
|
||||||
/* border-top: 1px solid #ddd;
|
/* border-top: 1px solid #ddd;
|
||||||
border-bottom: 1px solid #ddd; */
|
border-bottom: 1px solid #ddd; */
|
||||||
/*background-color: #efefef;*/
|
/*background-color: #efefef;*/
|
||||||
/* background-color: #a8a8a8;*/
|
/* background-color: #a8a8a8;*/
|
||||||
/*border-bottom: 1px solid #555;*/
|
/*border-bottom: 1px solid #555;*/
|
||||||
border: 1px solid #555;
|
border: 1px solid #555;
|
||||||
/*background-color: #444444;*/
|
/*background-color: #444444;*/
|
||||||
|
|
||||||
/* ubuntu terminal background color */
|
/* ubuntu terminal background color */
|
||||||
background: #380c2a;
|
background: #380c2a;
|
||||||
color: #CCCCCC;
|
color: #CCCCCC;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
margin: 1em 1em;
|
margin: 1em 1em;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
box-shadow: 3px 3px 6px black;
|
box-shadow: 3px 3px 6px black;
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
:not(pre) > code {
|
||||||
background-color: rgba(0, 0, 0, 0.2);
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 0 3px;
|
padding: 0px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, li, ol { margin: 0; padding: 0 }
|
ul, li, ol { margin: 0; padding: 0 }
|
||||||
|
|
||||||
/* === Form === */
|
/* === Form === */
|
||||||
form { margin: 1em 0 }
|
form { margin: 1em 0 }
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
margin: 0 0 1em 0;
|
margin: 0 0 1em 0;
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
border: #ddd solid 1px
|
border: #ddd solid 1px
|
||||||
}
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
font-style: oblique
|
font-style: oblique
|
||||||
}
|
}
|
||||||
|
|
||||||
input, textarea {
|
input, textarea {
|
||||||
padding: .1em;
|
padding: .1em;
|
||||||
border: 1px solid #315A94;;
|
border: 1px solid #315A94;;
|
||||||
font-family: 'Trebuchet MS', Tahoma, 'Times New Roman';
|
font-family: 'Trebuchet MS', Tahoma, 'Times New Roman';
|
||||||
}
|
}
|
||||||
|
|
||||||
input, admin-static-filename {
|
input, admin-static-filename {
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
background-color: #A29D7D;
|
background-color: #A29D7D;
|
||||||
}
|
}
|
||||||
|
|
||||||
input:hover, input:focus {
|
input:hover, input:focus {
|
||||||
border: 1px solid #000099;
|
border: 1px solid #000099;
|
||||||
background-color: #DAAA55;
|
background-color: #DAAA55;
|
||||||
}
|
}
|
||||||
|
|
||||||
select { background-color: #ddd }
|
select { background-color: #ddd }
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
||||||
width: 99%;
|
width: 99%;
|
||||||
margin-top: .1em;
|
margin-top: .1em;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
background-color: #999999;
|
background-color: #999999;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== LINKS GENERAL ===== */
|
/* ===== LINKS GENERAL ===== */
|
||||||
a:link, a:visited {
|
a:link, a:visited {
|
||||||
/*color: #0066ff;*/
|
/*color: #0066ff;*/
|
||||||
color: #e69138;
|
color: #e69138;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
/*color: #1100FF;*/
|
/*color: #1100FF;*/
|
||||||
color: #f6b26b;
|
color: #f6b26b;
|
||||||
text-decoration: underline
|
text-decoration: underline
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== HEADERS TAGS ===== */
|
/* ===== HEADERS TAGS ===== */
|
||||||
h1, h2, h3, h4, h5, h6 { margin:0 }
|
h1, h2, h3, h4, h5, h6 { margin:0 }
|
||||||
h1 { font-size: 3em }
|
h1 { font-size: 3em }
|
||||||
h2 { font-size: 2.3em }
|
h2 { font-size: 2.3em }
|
||||||
h3 { font-size: 1.8em }
|
h3 { font-size: 1.8em }
|
||||||
h4 { font-size: 1.5em }
|
h4 { font-size: 1.5em }
|
||||||
h5 { font-size: 1.2em }
|
h5 { font-size: 1.2em }
|
||||||
h6 { font-size: 0.9em }
|
h6 { font-size: 0.9em }
|
||||||
|
|
||||||
/* ===== DIV CONTAINER ALL ELEMENTS BLOCK ===== */
|
/* ===== DIV CONTAINER ALL ELEMENTS BLOCK ===== */
|
||||||
#body-container {
|
#body-container {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
width: 72% !important;
|
width: 72% !important;
|
||||||
width: 72%; /* fix for I.E. */
|
width: 72%; /* fix for I.E. */
|
||||||
margin: 0 auto 0 auto;
|
margin: 0 auto 0 auto;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
/* background-color: #2D2D2D;*/
|
/* background-color: #2D2D2D;*/
|
||||||
background-color: rgba(45, 45, 45, 0.8);
|
background-color: rgba(45, 45, 45, 0.8);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== HEAD ===== */
|
/* ===== HEAD ===== */
|
||||||
#head {
|
#head {
|
||||||
/*background: url("../imgs/logo.jpg") no-repeat;*/
|
/*background: url("../imgs/logo.jpg") no-repeat;*/
|
||||||
width: 680px; !important;
|
width: 680px; !important;
|
||||||
width: 680px;
|
width: 680px;
|
||||||
height: 128px;
|
height: 128px;
|
||||||
font-family: Tahoma, sans-serif;
|
font-family: Tahoma, sans-serif;
|
||||||
float: center;
|
float: center;
|
||||||
}
|
}
|
||||||
#head-bubble {
|
#head-bubble {
|
||||||
/* background-color: rgba(0, 0, 0, 0.2);*/
|
/* background-color: rgba(0, 0, 0, 0.2);*/
|
||||||
background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
|
background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
height: 124px;
|
height: 124px;
|
||||||
margin: 5px 0 0 5px ;
|
margin: 5px 0 0 5px ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#title-container {
|
#title-container {
|
||||||
width: 580px;
|
width: 580px;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
#logo-container {
|
#logo-container {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
#logo-img {
|
#logo-img {
|
||||||
/*background: url("../imgs/Mandrake-Tux_redraw.png");*/
|
/*background: url("../imgs/Mandrake-Tux_redraw.png");*/
|
||||||
|
|
||||||
height: 120px;
|
height: 120px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clear-container {
|
#clear-container {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
#head a {
|
#head a {
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#head h1 { padding: 35px 20px 0 25px }
|
#head h1 { padding: 35px 20px 0 25px }
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-style: oblique;
|
font-style: oblique;
|
||||||
color: white;
|
color: white;
|
||||||
margin: .5em 0 0 0;
|
margin: .5em 0 0 0;
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== MAIN ===== */
|
/* ===== MAIN ===== */
|
||||||
#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 {
|
#main h1, #main h2, #main h3, #main h4, #main h5, #main h6 {
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
/*float:right;*/
|
/*float:right;*/
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 73% !important;
|
width: 73% !important;
|
||||||
width: 73%;
|
width: 73%;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
margin: .8em 0.5em 0 1.2em;
|
margin: .8em 0.5em 0 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main p {
|
#main p {
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
margin-top: 1.2em;
|
margin-top: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main img { margin: .2em }
|
#main img { margin: .2em }
|
||||||
|
|
||||||
/* === List === */
|
/* === List === */
|
||||||
#main ul {
|
#main ul {
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
padding: 0 0 0 1.6em
|
padding: 0 0 0 1.6em
|
||||||
}
|
}
|
||||||
|
|
||||||
ol li, ul li { padding-bottom: 0.9em }
|
ol li, ul li { padding-bottom: 0.9em }
|
||||||
|
|
||||||
#main ol {
|
#main ol {
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
padding: 0 1.6em 0 1.6em
|
padding: 0 1.6em 0 1.6em
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== COMMENTS ===== */
|
/* ===== COMMENTS ===== */
|
||||||
#comments li {
|
#comments li {
|
||||||
margin: 0 0 1.5em 0;
|
margin: 0 0 1.5em 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
/*border-top: 2px solid #6699FF;
|
/*border-top: 2px solid #6699FF;
|
||||||
border-bottom: 2px solid #6699FF;*/
|
border-bottom: 2px solid #6699FF;*/
|
||||||
border-top: 2px solid #f6b26b;
|
border-top: 2px solid #f6b26b;
|
||||||
border-bottom: 2px solid #f6b26b;
|
border-bottom: 2px solid #f6b26b;
|
||||||
background: #2D2D2D;
|
background: #2D2D2D;
|
||||||
}
|
}
|
||||||
|
|
||||||
#commentform fieldset p { margin: 0 0 .5em 0 }
|
#commentform fieldset p { margin: 0 0 .5em 0 }
|
||||||
#commentform textarea { background-color: #999999; }
|
#commentform textarea { background-color: #999999; }
|
||||||
#commentform textarea:hover { background-color: #777777; }
|
#commentform textarea:hover { background-color: #777777; }
|
||||||
#comments p { padding-left: 20px }
|
#comments p { padding-left: 20px }
|
||||||
#comments li.comment-admin strong.comment-name { font-size:160% }
|
#comments li.comment-admin strong.comment-name { font-size:160% }
|
||||||
|
|
||||||
#comments li.comment-admin {
|
#comments li.comment-admin {
|
||||||
/*background-color: #DAAA55;*/
|
/*background-color: #DAAA55;*/
|
||||||
background-color: #393939;
|
background-color: #393939;
|
||||||
/*color: black;*/
|
/*color: black;*/
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* === Class of main block === */
|
/* === Class of main block === */
|
||||||
.date, p.date {
|
.date, p.date {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
margin: 3px 0 3px 0;
|
margin: 3px 0 3px 0;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
border-bottom: 2px solid #333333;
|
border-bottom: 2px solid #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry {
|
.entry {
|
||||||
margin: 0 0 1.5em 0;
|
margin: 0 0 1.5em 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden; /* floating images fix */
|
overflow: hidden; /* floating images fix */
|
||||||
height:1%; /* i.e. hack*/
|
height:1%; /* i.e. hack*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry p { font-size: 16px }
|
.entry p { font-size: 16px }
|
||||||
|
|
||||||
.entry-title {
|
.entry-title {
|
||||||
/*color: #26a269;*/
|
/*color: #26a269;*/
|
||||||
/* ubuntu color background term color: #380c2a; */
|
/* ubuntu color background term color: #380c2a; */
|
||||||
color: #daaa55;
|
color: #daaa55;
|
||||||
}
|
}
|
||||||
|
|
||||||
#main .entrytitle {
|
#main .entrytitle {
|
||||||
font-family: Candara, 'Cataneo BT', 'book antiqua', georgia, garamond, times, 'times new roman';
|
font-family: Candara, 'Cataneo BT', 'book antiqua', georgia, garamond, times, 'times new roman';
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-footer a { color: #A29D7D }
|
.entry-footer a { color: #A29D7D }
|
||||||
.entry-footer a:hover { color: #4B4B4B }
|
.entry-footer a:hover { color: #4B4B4B }
|
||||||
|
|
||||||
.entry-footer {
|
.entry-footer {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
font-family: 'Lucida Grande', 'Trebuchet MS', arial, Helvetica, sans-serif;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
margin: 2em 0 .5em 0;
|
margin: 2em 0 .5em 0;
|
||||||
margin-left: 58%;
|
margin-left: 58%;
|
||||||
border-top: 2px solid #333333;
|
border-top: 2px solid #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admincontrols { /* [edit] and [delete] */
|
.admincontrols { /* [edit] and [delete] */
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 80%
|
font-size: 80%
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttonbar { text-align: center }
|
.buttonbar { text-align: center }
|
||||||
|
|
||||||
.buttonbar input {
|
.buttonbar input {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: .1em .5em;
|
margin: .1em .5em;
|
||||||
padding: 0 1em
|
padding: 0 1em
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation { /* next entries & previous entries link */
|
.navigation { /* next entries & previous entries link */
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
margin-bottom: 5em
|
margin-bottom: 5em
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ===== FOOTER ===== */
|
/* ===== FOOTER ===== */
|
||||||
#footer {
|
#footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* background: #2D2D2D;*/
|
/* background: #2D2D2D;*/
|
||||||
/* background-color: rgba(0, 0, 0, 0.2);*/
|
/* background-color: rgba(0, 0, 0, 0.2);*/
|
||||||
background-image: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.2));
|
background-image: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.2));
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
border-top-left-radius: 5px;
|
border-top-left-radius: 5px;
|
||||||
border-bottom-right-radius: 15px;
|
border-bottom-right-radius: 15px;
|
||||||
border-bottom-left-radius: 15px;
|
border-bottom-left-radius: 15px;
|
||||||
clear: both;
|
clear: both;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin: 0px 5px 5px 5px;
|
margin: 0px 5px 5px 5px;
|
||||||
/*border-top: #315A94 2px solid*/
|
/*border-top: #315A94 2px solid*/
|
||||||
/*border-top: #393939 2px solid*/
|
/*border-top: #393939 2px solid*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue