Skip to content

Commit

Permalink
Merge pull request #5 from PENQEinc/bugfix/fix-links
Browse files Browse the repository at this point in the history
Bugfix/fix links
  • Loading branch information
gstein314 authored Nov 13, 2023
2 parents fb89b49 + 486bac3 commit ed512d7
Show file tree
Hide file tree
Showing 8 changed files with 872 additions and 54 deletions.
332 changes: 322 additions & 10 deletions static/sass/disease.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Sriracha&display=swap");
body {
font-family: "Renner*", "Avenir", "Helvetica Neue", "Helvetica", "Arial", "Hiragino Sans", "ヒラギノ角ゴシック", YuGothic, "Yu Gothic", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic";
margin: 0px;
Expand Down Expand Up @@ -109,15 +110,6 @@ body {
position: fixed;
}

#data-wrapper {
height: auto;
/* border-radius: 20px; */
border: none;
box-shadow: none;
padding: 25px;
background-color: #fff;
margin-bottom: 40px;
}
#data-wrapper .data_table .data-list {
margin-top: 10px;
}
Expand Down Expand Up @@ -578,7 +570,7 @@ h5 {

.navbar {
background-color: rgba(255, 255, 255, 0.8);
top: 0;
top: 24px;
}
.navbar .container a {
text-decoration: none;
Expand Down Expand Up @@ -1084,4 +1076,324 @@ header .intro-text p {
position: relative;
display: block;
padding-left: 5px;
}

.disease-summary {
font-family: "Poppins", sans-serif;
}

a[target=_blank]::after {
display: none;
}

.summary-header {
margin-bottom: 12px;
border: solid 2px #c1c6d3;
border-radius: 5px;
}
.summary-header > div {
padding: 10px;
}

.data-name > h2,
h3,
p {
margin: 0;
}

.data-name > h2 {
padding-top: 13px;
}
.data-name > h3 {
font-size: 18px;
font-weight: bold;
}
.data-name > h2 > ruby {
font-size: 24px;
}
.data-name > h2 > ruby > rt {
font-size: 8px;
font-weight: normal;
}
.data-name > h2 > h3 {
font-size: 14px;
font-weight: normal;
}

.properties {
display: flex;
flex-wrap: wrap;
gap: 3px;
}

.data-name {
border-bottom: 1px dashed #c1c6d3;
margin: 0;
}

.link-wrapper {
border-bottom: none;
}

.external-links,
.properties {
display: flex;
}

.external-links > .linked-item + .linked-item {
margin-left: 2px;
}

.aliases > dl {
margin: 0 0 4px;
padding: 2px 4px 6px;
background-color: rgba(20, 119, 134, 0.2);
border-radius: 3px;
}
.aliases > dl > dt {
font-size: 10px;
font-weight: bold;
}
.aliases > dl > dd {
margin-inline-start: 0;
font-size: 14px;
display: inline;
}
.aliases > dl > dd::after {
content: ", ";
}
.aliases > dl > dd:last-child::after {
content: none;
}

.linked-item {
margin-bottom: 3px;
padding: 4px 20px;
border: #147786 1px solid;
border-radius: 3px;
background-color: #147786;
font-size: 12px;
font-weight: bold;
line-height: 1.4;
}
.linked-item > a {
color: #fff;
text-decoration: none;
}
.linked-item.-unlinked {
background-color: #fff;
color: #147786;
}

.linked-items {
display: inline;
font-weight: bold;
padding: 2px 4px 6px;
background-color: rgba(20, 119, 134, 0.2);
border-radius: 3px;
margin-right: 2px;
margin-block-start: 0;
margin-block-end: 0;
}
.linked-items > dt {
font-size: 10px;
}
.linked-items > dd {
margin-inline-start: 0;
display: inline-block;
}

.external-links > div:nth-child(1) {
padding: 4px 10px;
}

details summary {
border-bottom: none;
}

.links-list {
margin-top: 5px;
}

.tab-wrap {
display: flex;
flex-wrap: wrap;
margin: 12px 0;
}
.tab-wrap:after {
content: "";
width: 100%;
height: 2px;
background: #13295a;
display: block;
order: -1;
}

.tab-label {
white-space: nowrap;
text-align: center;
padding: 6px 16px;
order: -1;
position: relative;
cursor: pointer;
border-radius: 5px 5px 0 0;
color: #13295a;
font-weight: bold;
}

.tab-content {
width: 100%;
height: 0;
overflow: hidden;
opacity: 0;
}

.tab-switch {
display: none;
}
.tab-switch:checked + .tab-label {
border: #13295a 2px solid;
border-bottom: #fff 2px solid;
margin-bottom: -2px;
}
.tab-switch:checked + .tab-label + .tab-content {
height: auto;
overflow: auto;
padding: 10px 5px;
opacity: 1;
transition: 0.5s opacity;
}

details {
z-index: 0;
position: relative;
}

#data-wrapper {
margin-top: inherit;
padding: 0 25px;
}
#data-wrapper > .properties {
padding: 0 0 20px;
}
#data-wrapper details summary {
color: #fff;
}
#data-wrapper details summary:before {
width: 100%;
height: 28px;
z-index: -1;
position: absolute;
}
#data-wrapper details summary:after {
left: 9px;
}
#data-wrapper details[open] summary:after {
left: 7px;
}

.checkbox {
display: none;
}

.hierarchy-view {
margin-left: 20px;
}
.hierarchy-view label {
position: relative;
cursor: pointer;
justify-content: space-between;
}
.hierarchy-view ul {
padding: 0 5px;
font-weight: bold;
font-size: 12px;
list-style-position: inside;
}
.hierarchy-view li {
display: flex;
height: 0;
position: relative;
overflow: hidden;
}
.hierarchy-view li::marker {
margin-right: 5px;
}

.content {
display: inline-grid;
width: 100%;
grid-template-columns: 1fr auto;
gap: 10px;
}

.checkbox:checked ~ ul > .content > .headline::before {
transform: translate(0, -50%);
}
.checkbox:checked ~ ul > li {
height: auto;
padding-top: 5px;
}

.genre-view {
text-align: right;
padding: 10px 0;
}
.genre-view > p {
display: inline;
background-color: rgba(19, 41, 90, 0.1);
padding: 15px 20px;
border-radius: 5px;
}
.genre-view > p > span {
color: #000;
font-size: 12px;
font-weight: bold;
margin-right: 10px;
}

.icon::before {
color: #fff;
padding: 2.8px 5px;
margin-right: 3px;
font-weight: normal;
font-size: 9.6px;
}

.disease-name {
display: inline-grid;
align-items: center;
grid-template-columns: 1px auto 1fr;
gap: 10px;
}
.disease-name::before {
content: "";
width: 5px;
height: 5px;
background: #000;
border-radius: 50%;
}

.hierarchy-view > label > ul > .content > .disease-name {
grid-template-columns: auto 1fr;
}
.hierarchy-view > label > ul > .content > .headline::before {
content: "";
display: block;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 7px solid #000;
position: absolute;
top: 8px;
left: -11px;
transform: translate(0, -50%) rotate(-90deg);
}

.disease-name::after {
border-top: #7f7f7f 1px dashed;
content: "";
}

.inspection-view {
padding-top: 10px;
}/*# sourceMappingURL=disease.css.map */
Loading

0 comments on commit ed512d7

Please sign in to comment.