Skip to content

Commit 90ac678

Browse files
authored
Merge pull request #198 from ocsigen/tongue
Add widget ot_tongue
2 parents 5182841 + 525f32a commit 90ac678

File tree

6 files changed

+498
-1
lines changed

6 files changed

+498
-1
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
===== 2.7.0 (2020-04-29) =====
2+
3+
* New widget: ot_tongue
4+
15
===== 2.5.0 (2020-01-28) =====
26
* ot_popup : Add parameter to toggle scroll hack
37
* Compatibility with Js_of_ocaml 3.5

css/ot_tongue.css

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
.ot-tongue {
2+
position: fixed;
3+
will-change: transform;
4+
z-index: 1;
5+
background-color: white;
6+
box-shadow: 0 2px 9px 0 rgba(173, 173, 173, 0.5);
7+
overflow: hidden;
8+
}
9+
.ot-tongue::after {
10+
content: "";
11+
position: absolute;
12+
background-color: #eee;
13+
border-radius: 2px;
14+
z-index: 1;
15+
}
16+
.ot-tongue-left {
17+
height: 100%;
18+
padding-right: 70px;
19+
border-radius: 0 5px 5px 0;
20+
top: 0;
21+
right: 100%;
22+
}
23+
.ot-tongue-left::after {
24+
right: 4px;
25+
width: 4px;
26+
top: calc(50% - 10px);
27+
height: 20px;
28+
}
29+
.ot-tongue-right {
30+
height: 100%;
31+
padding-left: 70px;
32+
border-radius: 5px 0 0 5px;
33+
top: 0;
34+
left: 100%;
35+
}
36+
.ot-tongue-right::after {
37+
left: 4px;
38+
width: 4px;
39+
top: calc(50% - 10px);
40+
height: 20px;
41+
}
42+
.ot-tongue-top {
43+
width: 100%;
44+
padding-bottom: 70px;
45+
border-radius: 0 0 5px 5px;
46+
bottom: 100%;
47+
left: 0;
48+
}
49+
.ot-tongue-top::after {
50+
bottom: 4px;
51+
height: 4px;
52+
left: calc(50% - 10px);
53+
width: 20px;
54+
}
55+
.ot-tongue-bottom {
56+
width: 100%;
57+
padding-top: 70px;
58+
border-radius: 5px 5px 0 0;
59+
top: 100%;
60+
left: 0;
61+
}
62+
.ot-tongue-bottom::after {
63+
top: 4px;
64+
height: 4px;
65+
left: calc(50% - 10px);
66+
width: 20px;
67+
}
68+
.ot-tongue:not(.notransition) {
69+
transition: transform 0.4s cubic-bezier(0.1, 1, 0.8, 1);
70+
}

ocsigen-toolkit.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ share: [
1111
"css/ot_page_transition.css" {"css/ot_page_transition.css"}
1212
"css/ot_color_picker.css" {"css/ot_color_picker.css"}
1313
"css/ot_pull_to_refresh.css" {"css/ot_pull_to_refresh.css"}
14+
"css/ot_tongue.css" {"css/ot_tongue.css"}
1415
]

opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "ocsigen-toolkit"
3-
version: "2.6.0"
3+
version: "2.7.0"
44
maintainer: "dev@ocsigen.org"
55
synopsis: "Reusable UI components for Eliom applications (client only, or client-server)"
66
description: "The Ocsigen Toolkit is a set of user interface widgets that facilitate the development of Eliom applications."

0 commit comments

Comments
 (0)