File tree Expand file tree Collapse file tree 5 files changed +82
-3
lines changed
assets/template/default/less Expand file tree Collapse file tree 5 files changed +82
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Version 2.10.0-alpha - 2017-05-
11
11
- added configuration for enable/disable XML sitemap (Thorsten)
12
12
- added support for category images (Thorsten)
13
13
- added support for categories on startpage (Thorsten)
14
+ - added image slider template (Thorsten)
14
15
- improved REST/JSON API including login (Thorsten)
15
16
- improved sticky records (Thorsten)
16
17
- updated bundled Symfony ClassLoader to version 2.7.16 (Thorsten)
@@ -24,6 +25,7 @@ Version 2.10.0-alpha - 2017-05-
24
25
- updated bundled HighlightJS to version 8.9.1 (Thorsten)
25
26
- updated bundled Mermaid to version 6.0.0 (Thorsten)
26
27
- updated bundled jQuery Sparklines to version 2.3.2 (Thorsten)
28
+ - updated bundled TinyMCE to version 4.6.3 (Thorsten)
27
29
- removed Bower, now using NPM only (Thorsten)
28
30
29
31
Version 2.9.7 - 2017-04-02
Original file line number Diff line number Diff line change 13
13
"jquery" : " ^3.1.0" ,
14
14
"jquery-sparkline" : " ^2.3.2" ,
15
15
"mermaid" : " ^6.0.0" ,
16
- "tinymce" : " ^4.4.1 " ,
16
+ "tinymce" : " ^4.6.3 " ,
17
17
"typeahead.js" : " ^0.11.1"
18
18
},
19
19
"devDependencies" : {
Original file line number Diff line number Diff line change
1
+ < div class ="slider-container ">
2
+ < div class ="menu ">
3
+ < label for ="slide-dot-1 "> </ label >
4
+ < label for ="slide-dot-2 "> </ label >
5
+ < label for ="slide-dot-3 "> </ label >
6
+ </ div >
7
+
8
+ < input id ="slide-dot-1 " type ="radio " name ="slides " checked >
9
+ < div class ="slide ">
10
+ IMAGE
11
+ </ div >
12
+
13
+ < input id ="slide-dot-2 " type ="radio " name ="slides ">
14
+ < div class ="slide ">
15
+ IMAGE
16
+ </ div >
17
+
18
+ < input id ="slide-dot-3 " type ="radio " name ="slides ">
19
+ < div class ="slide ">
20
+ IMAGE
21
+ </ div >
22
+ </ div >
Original file line number Diff line number Diff line change 142
142
user_id: '<?php echo $ user ->userdata ->get ('user_id ' ) ?> '
143
143
},
144
144
145
+ templates: [
146
+ { title: 'Slider', description: 'phpMyFAQ Image Slider', url: 'assets/templates/image-slider.html' }
147
+ ],
148
+
145
149
// File browser
146
150
file_browser_callback: function(fieldName, url, type, win){
147
151
var fileBrowser = 'image.browser.php';
Original file line number Diff line number Diff line change 50
50
//
51
51
// Basic layout definition
52
52
//
53
- body {
53
+ html , body {
54
54
font-size : 16px ;
55
+ height : 100% ;
55
56
line-height : 27px ;
56
57
font-family : @font-family ;
57
58
color : @text ;
674
675
}
675
676
676
677
.pmf-faq-body {
677
- margin-top :20px ;
678
+ margin-top : 20px ;
678
679
@media @large { padding-right : 30px ; }
679
680
.pmf-private-notes {
680
681
background-color : lighten (@pmf-background , 10% );
@@ -884,3 +885,53 @@ aside.pmf-comments {
884
885
// Mermaid CSS
885
886
//
886
887
@import (less )" ../../../../../node_modules/mermaid/dist/mermaid.forest.css" ;
888
+
889
+ //
890
+ // Slider templates
891
+ //
892
+ .slider-container {
893
+ height : 100% ;
894
+ width : 100% ;
895
+ position : relative ;
896
+ overflow : hidden ;
897
+ text-align : center ;
898
+ }
899
+
900
+ .menu {
901
+ position : absolute ;
902
+ left : 0 ;
903
+ z-index : 900 ;
904
+ width : 100% ;
905
+ bottom : 0 ;
906
+ }
907
+
908
+ .menu label {
909
+ cursor : pointer ;
910
+ display : inline-block ;
911
+ width : 16px ;
912
+ height : 16px ;
913
+ background : #fff ;
914
+ border-radius : 50px ;
915
+ margin : 0 .2em 1em ;
916
+ & :hover {
917
+ background : red ;
918
+ }
919
+ }
920
+
921
+ .slide {
922
+ width : 100% ;
923
+ height : 100% ;
924
+ position : absolute ;
925
+ top : 0 ;
926
+ left : 100% ;
927
+ z-index : 10 ;
928
+ background-size : cover ;
929
+ background-position : 50% 50% ;
930
+ transition : left 0s .75s ;
931
+ }
932
+
933
+ [id^= " slide" ]:checked + .slide {
934
+ left : 0 ;
935
+ z-index : 100 ;
936
+ transition : left .65s ease-out ;
937
+ }
You can’t perform that action at this time.
0 commit comments