Skip to content

Commit c52148b

Browse files
mkdocs: rounded button styles
1 parent d5b2591 commit c52148b

File tree

1 file changed

+90
-1
lines changed

1 file changed

+90
-1
lines changed

docs/assets/stylesheets/extra.css

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88

99
/* Custom Admonitions */
1010

11-
/* Clojure Idiom*/
1211

1312
:root {
13+
/* Clojure Idiom*/
1414
--md-admonition-icon--clojure-idiom: url(https://raw.githubusercontent.com/practicalli/graphic-design/c40cc063cc5bb07525b524d8a3d638e2f42bc38a/logos/clojure-logo-bullet.svg);
15+
16+
/* Round corners */
17+
--base-border-radius: 0.5rem;
1518
}
19+
20+
/*Admonitions colors*/
1621
.md-typeset .admonition.clojure-idiom,
1722
.md-typeset details.clojure-idiom {
1823
border-color: rgb(43, 155, 70);
@@ -28,3 +33,87 @@
2833
-webkit-mask-image: var(--md-admonition-icon--clojure-idiom);
2934
mask-image: var(--md-admonition-icon--clojure-idiom);
3035
}
36+
37+
38+
/* Change font family of filename present on top of code block. */
39+
.highlight span.filename {
40+
border-bottom: none;
41+
border-radius: var(--base-border-radius);
42+
display: inline;
43+
font-family: var(--md-code-font-family);
44+
border-bottom-left-radius: 0;
45+
border-bottom-right-radius: 0;
46+
margin-bottom: 5px;
47+
text-align: center;
48+
}
49+
.highlight span.filename + pre > code {
50+
border-radius: var(--base-border-radius);
51+
border-top-left-radius: 0;
52+
}
53+
.md-typeset pre > code {
54+
border-radius: var(--base-border-radius);
55+
}
56+
57+
/* Grid Cards */
58+
.md-typeset .grid.cards > ul > li {
59+
border-radius: var(--base-border-radius);
60+
}
61+
.md-typeset .grid.cards > ul > li:hover {
62+
box-shadow: 0 0 0.2rem #ffffff40;
63+
}
64+
65+
/* Markdown Button */
66+
.md-typeset .md-button {
67+
border-radius: var(--base-border-radius);
68+
}
69+
70+
/* Critic, Mark */
71+
ins.critic,
72+
del.critic {
73+
text-decoration: none;
74+
}
75+
76+
.md-typeset .critic,
77+
.md-typeset mark {
78+
border-radius: 0.2rem;
79+
padding: 0 0.2rem;
80+
}
81+
82+
.md-typeset mark {
83+
box-shadow: 0 0 0 0.1rem var(--md-typeset-mark-color);
84+
}
85+
86+
.md-typeset ins.critic {
87+
box-shadow: 0 0 0 0.1rem var(--md-typeset-ins-color);
88+
}
89+
90+
.md-typeset del.critic {
91+
box-shadow: 0 0 0 0.1rem var(--md-typeset-del-color);
92+
}
93+
94+
/* Forms */
95+
.md-search__form {
96+
border-radius: var(--base-border-radius);
97+
}
98+
99+
[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
100+
border-top-right-radius: var(--base-border-radius);
101+
border-top-left-radius: var(--base-border-radius);
102+
}
103+
104+
[dir="ltr"] .md-search__output {
105+
border-bottom-right-radius: var(--base-border-radius);
106+
border-bottom-left-radius: var(--base-border-radius);
107+
}
108+
109+
/* Blog - index.md */
110+
.md-post--excerpt {
111+
background-color: var(--md-accent-fg-color--transparent);
112+
box-shadow: 0 0 0 1rem var(--md-accent-fg-color--transparent);
113+
border-radius: var(--base-border-radius);
114+
}
115+
116+
/* Table */
117+
.md-typeset table:not([class]) {
118+
border-radius: var(--base-border-radius);
119+
}

0 commit comments

Comments
 (0)