Skip to content

Commit ff32d1b

Browse files
committed
v.0.2.1
CSS: Minor cosmetic styles fix Footer z-index Source_hl display fix
1 parent b80f9a7 commit ff32d1b

File tree

2 files changed

+40
-37
lines changed

2 files changed

+40
-37
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Source - Front-end documentation engine
22

3-
**v.0.2.0**
3+
**v.0.2.1**
44

55
Main project aim is to give front-end development team a **best tool** for documenting web interfaces and **for productive team work**.
66

core/css/defaults.css

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ body {
253253
}
254254

255255
.source_a_l { /* Inverted link */
256-
color: #999;
257-
text-decoration: none;
256+
color: #999 !important; /* Highest priority needed to cosmetic classes */
257+
text-decoration: none !important;
258258
}
259259
.source_a_l:hover {
260-
color: #666;
261-
text-decoration: underline;
260+
color: #666 !important;
261+
text-decoration: underline !important;
262262
}
263263

264264
.source_a_g { /* Object link */
@@ -333,7 +333,6 @@ body {
333333
*zoom: 1;
334334
vertical-align: baseline;
335335

336-
height: 50px;
337336
line-height: 30px;
338337

339338
color: #67a9d4;
@@ -389,7 +388,7 @@ body {
389388

390389
.source_footer {
391390
position: absolute;
392-
z-index: 5;
391+
z-index: 11; /* Higher than nav */
393392
bottom: 0; left: 0; right: 0;
394393

395394
border-top: 1px solid #eee;
@@ -440,8 +439,11 @@ body {
440439
-------------------------------------------------- */
441440

442441
.source_main {
442+
position: relative;
443443
padding: 35px 0;
444444
min-height: 230px;
445+
446+
counter-reset: h2;
445447
}
446448

447449
.source_main_h1, /* for custom cases */
@@ -572,45 +574,39 @@ body {
572574
/* Spec page
573575
-------------------------------------------------- */
574576

575-
.source_main {
576-
position: relative;
577-
z-index: 5;
578-
counter-reset: h2;
579-
}
580-
581-
/* complex cascade for targeting only spec decorations, excluding .source_example blocks */
582-
.source_catalog_tx a,
577+
/* complex cascade for targeting only spec decorations, excluding .source_example blocks */
578+
.source_catalog_tx a,
583579

584-
.source_main_nav a,
580+
.source_main_nav a,
585581

586-
.source_info a,
582+
.source_info a,
587583

588-
.source_main > a,
584+
.source_main > a,
589585

590-
.source_section > a,
591-
.source_section > *:not(.source_example) > a,
592-
.source_section > *:not(.source_example) > *:not(.source_example) > a,
593-
.source_section > *:not(.source_example) > *:not(.source_example) > *:not(.source_example) > a {
594-
color:#4792D2;
595-
text-decoration:none
596-
}
586+
.source_section > a,
587+
.source_section > *:not(.source_example) > a,
588+
.source_section > *:not(.source_example) > *:not(.source_example) > a,
589+
.source_section > *:not(.source_example) > *:not(.source_example) > *:not(.source_example) > a {
590+
color:#4792D2;
591+
text-decoration:none
592+
}
597593

598594

599-
.source_catalog_tx a:hover,
595+
.source_catalog_tx a:hover,
600596

601-
.source_main_nav a:hover,
597+
.source_main_nav a:hover,
602598

603-
.source_info a:hover,
599+
.source_info a:hover,
604600

605-
.source_main > a:hover,
601+
.source_main > a:hover,
606602

607-
.source_section > a:hover,
608-
.source_section > *:not(.source_example) > a:hover,
609-
.source_section > *:not(.source_example) > *:not(.source_example) > a:hover,
610-
.source_section > *:not(.source_example) > *:not(.source_example) > *:not(.source_example) > a:hover {
611-
color: #1c76c2;
612-
text-decoration: underline;
613-
}
603+
.source_section > a:hover,
604+
.source_section > *:not(.source_example) > a:hover,
605+
.source_section > *:not(.source_example) > *:not(.source_example) > a:hover,
606+
.source_section > *:not(.source_example) > *:not(.source_example) > *:not(.source_example) > a:hover {
607+
color: #1c76c2;
608+
text-decoration: underline;
609+
}
614610

615611
/* Navigation */
616612
.source_main_nav {
@@ -622,6 +618,10 @@ body {
622618
margin-left: 297px;
623619
}
624620

621+
.source_main_nav:hover {
622+
z-index: 20; /* Higher than any other elements */
623+
}
624+
625625
@media only screen and (max-width: 1200px){
626626
.source_main_nav {
627627
left: auto;
@@ -925,7 +925,10 @@ body {
925925
display: block;
926926
}
927927

928-
.source_section__open > .source_a_hl,
928+
.source_section__open > .source_a_hl {
929+
display: inline !important;
930+
}
931+
929932
.source_section__open .source_example {
930933
display: inline-block !important;
931934
*display: inline !important;

0 commit comments

Comments
 (0)