/* [diction] nobody @ goeshard.org * GNU affero general public license v3 */ #diction-container { position: absolute; max-width: 600px; } #diction-container > table:first-child { display: block; } #diction-container > table:not(:first-child) { display: none; } #pagin-container { float: right; } table.diction { background-color: black; color: white; border: 1px solid white; font-size: 80%; margin: 1em; padding: 0.5em; } .diction th.header { text-align: center; } .diction th.header::before, .diction th.header::after { content: "—"; margin: 0 0.5em; opacity: 0.6; } .diction hr { border-color: white; opacity: 0.2; } .diction .word { background-color: hsl(var(--class), 100%, 10%); border: 1px solid hsl(var(--class), 100%, 80%); color: hsl(var(--class), 100%, 90%); text-align: center; padding: 0.3em 0.5em; margin-right: 0.3em; font-weight: normal; } .diction td i { font-weight: 100; } .diction tr { font-family: "Alegreya Sans", "Open Sans", "M+ 1c", sans-serif; } .diction th { text-align: right; } .diction td, .diction th { padding: .2em .4em; } .diction .slogan { text-align: center; letter-spacing: .2em; color: #888; padding-bottom: 0; } .diction .slogan::before, .diction .slogan::after { content: "·"; margin: 0 0.3em; opacity: 0.6; } .diction .type { padding-top: 0; padding-bottom: 0; } .diction .type span { display: inline-block; background: hsl(var(--hue), 70%, 60%); /* color: black; */ padding: 0.1em 0.3em; margin: 0.1em 0; border-radius: 5px 0 5px 0; -webkit-clip-path: polygon(0.5em 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%); clip-path: polygon(0.5em 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%); } .diction .type span:first-child { background: hsl(var(--hue), 70%, 20%); color: hsl(var(--hue), 70%, 80%); font-weight: bold; -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%); clip-path: polygon(0 0, 100% 0, calc(100% - 0.5em) 100%, 0 100%); } .diction .type span:last-child { -webkit-clip-path: polygon(0.5em 0, 100% 0, 100% 100%, 0 100%); clip-path: polygon(0.5em 0, 100% 0, 100% 100%, 0 100%); color: hsl(var(--hue), 70%, 60%); } .diction .type span:not(:last-child) { padding-right: 0.6em; margin-right: -0.2em; } .diction .type span:not(:first-child) { padding-left: 0.6em; margin-left: -0.2em; } .diction > tr > td > i > img { margin-left: 10px; margin-top: 5px; } .diction > tr > td > i { margin-left: 10px; } @media screen and (max-width: 400px) { .diction > tr > th { display: none; } } .word { --class: var(--hue); } .ctd { float: right; } .ca, .ca:visited { color: #fff; } :root {--hue: 180;}