generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
122 lines (106 loc) · 2.11 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.flashcard-container {
perspective: 1000px;
padding: 16px;
}
.flashcard {
width: 100%;
min-height: 180px;
position: relative;
transform-style: preserve-3d;
transition: transform 0.7s;
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
box-shadow: 0 5px 15px rgba(var(--mono-rgb-0), 0.15);
display: flex;
background-color: var(--background-primary-alt);
flex-direction: column;
justify-content: center;
align-items: center;
}
.flashcard-face {
position: absolute;
width: 100%;
min-height: 180px;
backface-visibility: hidden;
border-radius: 8px;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: left;
color: var(--text-normal);
box-sizing: border-box;
}
.flashcard-face li {
margin-bottom: 0.25em;
}
/* New styles for continuous reading */
.flashcard-face p + ol,
.flashcard-face p + ul {
margin-top: -0.5em;
}
.flashcard-face ol + p,
.flashcard-face ul + p {
margin-top: 0.5em;
}
.clickable {
cursor: pointer;
}
.flashcard-face--front {
transform: rotateY(0deg);
}
.flashcard-face--back {
transform: rotateY(-180deg);
background-color: var(--color-base-30);
color: var(--text-normal);
}
.flashcard.is-flipped {
transform: rotateY(-180deg);
}
.cloze-blank {
border-bottom: 1px solid var(--text-muted);
padding: 0 2px;
color: transparent;
font-family: monospace;
}
.cloze-reveal {
display: inline;
padding: 0 0.25em;
background-color: var(--color-base-35);
visibility: visible;
border-radius: 4px;
font-weight: bold;
color: var(--text-accent);
}
.flashcard-button {
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
position: absolute;
right: 10px;
bottom: 10px;
padding: 5px 10px;
}
.block-language-flashcard + .edit-block-button {
position: absolute;
right: 10px !important;
top: 10px !important;
padding: 5px 10px;
}
.flashcard-container:hover .flashcard-button {
opacity: 0.7;
visibility: visible;
}
.flashcard-button:hover {
opacity: 1;
}
.flashcard.height-100 {
height: 100px;
}
.flashcard.height-200 {
height: 200px;
}
.flashcard.height-300 {
height: 300px;
}