summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/captions/captions.css
blob: 23db2042d3aa044822a10e4d5afbec281dd9f088 (plain)
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
/* caption entries */

.caption-entry {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: #111;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 800px;
  cursor: pointer;
  transition: background 0.1s;
}
.caption-entry:hover {
  background: #333;
}
.caption-index {
  width: 120px;
  text-align: right;
  margin: 0;
  padding: 0 1rem 0 0;
}
.caption-text {
  flex: 1;
}
.caption-entry.generated .caption-index,
.caption-entry.generated .caption-text {
  color: #888;
  font-style: italic;
}

/* caption form */

.caption-form .textarea span {
  text-align: right;
  padding-right: 1.25rem;
}
.caption-form .textarea textarea {
  width: 670px;
  height: 70px;
}
.caption-form .buttons {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.caption-form .buttons span {
  display: block;
  text-align: right;
  padding-right: 1.25rem;
  width: 128px;
}
.caption-form .buttons button {
  margin-right: 0.5rem;
}

/* gallery captions */

.gallery-captions {
  margin-bottom: 1rem;
}
.gallery-captions.expanded .caption-entry {
  background: #222;
}
.gallery-captions .button-spacer {
  display: block;
  width: 103px;
}
.gallery-captions.expanded button.expander {
  margin-bottom: 1rem;
}
.gallery-captions button.expander {
  font-size: 0.75rem;
  padding: 0.5rem;
}