├── .github └── FUNDING.yml ├── BeapiBench ├── BeapiBench_new.groovy ├── LICENSE ├── README.md ├── bin └── BeapiBench ├── debian ├── Makefile ├── changelog ├── compat ├── control ├── copyright ├── files ├── postinst ├── prerm └── rules └── docs ├── .gitignore ├── README.md ├── advanced.html ├── assets ├── css │ ├── prism.css │ ├── style.css │ ├── style.css.map │ └── vendor.css ├── fonts │ ├── icomoon.eot │ ├── icomoon.svg │ ├── icomoon.ttf │ └── icomoon.woff ├── images │ ├── changelog.png │ ├── helpcenter.png │ ├── image-1.jpg │ ├── image-2.jpg │ ├── image-3.jpg │ ├── image-4.jpg │ ├── image.jpg │ ├── layout-1.png │ ├── layout-2.png │ ├── layout-3.png │ ├── layout-4.png │ ├── logo-white.svg │ ├── logo.png │ ├── logo.svg │ ├── logo_bw.png │ ├── office-1.jpg │ ├── office-2.jpg │ ├── office-3.jpg │ └── pic-1.svg ├── js │ ├── app.js │ ├── modernizr.js │ ├── vendor.js │ ├── vendor.js.map │ ├── vendor.min.js │ └── vendor.min.js.map └── scss │ ├── _variables-custom.scss │ ├── _variables.scss │ ├── components │ ├── _404.scss │ ├── __components.scss │ ├── _accordions.scss │ ├── _alert.scss │ ├── _articles.scss │ ├── _badge.scss │ ├── _boxes.scss │ ├── _breadcrumbs.scss │ ├── _buttons.scss │ ├── _card.scss │ ├── _carousel.scss │ ├── _code.scss │ ├── _cover.scss │ ├── _doc.scss │ ├── _dropdowns.scss │ ├── _gallery.scss │ ├── _icons.scss │ ├── _list-group.scss │ ├── _logs.scss │ ├── _maps.scss │ ├── _masonry.scss │ ├── _nav.scss │ ├── _navbar.scss │ ├── _pagination.scss │ ├── _tables.scss │ ├── _tabs.scss │ ├── _users.scss │ ├── _video.scss │ └── _widgets.scss │ ├── layout │ ├── __layout.scss │ ├── _colors.scss │ ├── _content.scss │ ├── _custom-forms.scss │ ├── _forms.scss │ ├── _header.scss │ ├── _helpers.scss │ ├── _hero.scss │ ├── _icons.scss │ ├── _mixins.scss │ ├── _sidebar.scss │ ├── _sizing.scss │ ├── _spacing.scss │ └── _typography.scss │ └── style.scss ├── bootstrap.html ├── build.gradle.4.x ├── chain.html ├── gradle.properties.4.x ├── index.html ├── lambda.html ├── mvc.html ├── security.html ├── submit.html └── usage.html /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [orubel] 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![alt text](https://github.com/orubel/logos/blob/master/beapi_logo_large.png) 2 | 3 | # beapi-bench 4 | 5 | **If you enjoy our work, please click our sponsor button at the top of the page** 6 | 7 | Command line Benchmarking tool for apis. Allows users to set concurrency/requests and runs set number of tests to BOMBARD endpoint to see how it will respond. For example, the following test was done LOCALLY (hence the low IO) on a 3.2GHZ 4-core processor with 2 GB of dedicated RAM: 8 | 9 | ![alt text](https://github.com/orubel/logos/blob/master/bench.png) 10 | 11 | This benchmark is helpful for numerous reasons: 12 | - creating more stable/scalable configuration for application server(ie garbage collection, threading, synchronization of threads, etc) 13 | - find bottlenecks and issues at points of scale 14 | - find ideal scale point for load balancing. 15 | 16 | ## System PreInstallation Requirements: 17 | - Groovy 18 | - ApacheBench (ab) 19 | - GnuPlot 20 | - curl 21 | ~~~~ 22 | sudo apt install groovy 23 | sudo apt install apache2-utils 24 | sudo apt install gnuplot 25 | sudo apt install curl 26 | ~~~~ 27 | 28 | ## Usage 29 | Clone the project (or just copy the 'BeapiBench' file locally) and make 'BeapiBench' script executable (chmod 775 BeapiBench) then run like so: 30 | ~~~~ 31 | ./BeapiBench -m GET --endpoint=http://localhost:8080/v1.3.0/person/show/225 32 | ~~~~ 33 | This will use the DEFAULT VALUES to create the test. If you want to be more precise with your testing, you can create your test like so: 34 | ~~~~ 35 | ./BeapiBench --concurrency=200 --requests=3000 --token= --method=GET --endpoint=http://localhost:8080/v1.3.0/person/show/225 --testnum=50 36 | ~~~~ 37 | or use shorthand like so... 38 | ~~~~ 39 | ./BeapiBench -c 200 -n 3000 -t -m GET --endpoint=http://localhost:8080/v1.3.0/person/show/225 --testnum=50 40 | ~~~~ 41 | 42 | ## Graph Types 43 | - TIME (-g TIME) : This benchmark is perfect for showing 'rampup' from ZERO. If you have a server that just started up and you want to test how quickly it ramps up, this is the test you run. This shows 'requests per second / time taken for entire test' 44 | 45 | ![alt text](https://github.com/orubel/logos/blob/master/bench_time.png) 46 | 47 | - TOTALTIME (-g TOTALTIME) : This benchmark is an all purpose test that can be run anytime and shows each test in comparison to all other tests. It shows 'requests per second / test current totaltime' 48 | 49 | ![alt text](https://github.com/orubel/logos/blob/master/bench_alltime.png) 50 | 51 | - IO (-g IO) : This benchmark measures throughput and the time it takes for connect time, processing time and wait time (for data to be returned) in milliseconds per test 52 | 53 | ![alt text](https://github.com/orubel/logos/blob/master/IO.png) 54 | 55 | ## Is there a good concurrency to requests ratio I should use? 56 | Think of 'concurrency' as the STRENGTH OF THE TEST and 'requests' as the LENGTH OF THE TEST. 57 | - 'concurrency' sets how many concurrent requests happen per second. 58 | - 'requests' sets how many requests must be fulfilled until the test stops. 59 | 60 | I usually set concurrency to 2.5 - 5% of the number of requests (depending on how hard I want to hammer the server). You don't have to be exact but be aware that higher concurrency changes how many new threads the server will try to spawn early on; threads spawned are set in your config and the higher the thread count spawned earlier, the more processing power and memory it requires... so it is a balancing act to get a good thread count for your instance and required traffic. 61 | 62 | Also, most single servers will start failing tests over 500 concurrency so try to set your concurrency to somewhere between 50-400 for most tests and requests between 1000-80000. 63 | 64 | ## Help File Output 65 | ~~~~ 66 | usage: BeapiBench [] -m=method --endpoint=url 67 | OPTIONS: 68 | -c,--concurrency value for concurrent users per test run 69 | (usage: -c 50, --concurrency=50) 70 | --endpoint url for making the api call (usage: 71 | --endpoint=http://localhost:8080) 72 | -C key/val pair for passing cookie value (ie 73 | -C='JSESSIONID':'DDADD5351AD3DCAE8906F3C2FD 74 | FB8A93') 75 | -f,--force Force run without checking for dependencies 76 | -g,--graphtype type of graph to create: TIME / TOTALTIME / 77 | ALL; defaults to TESTTIME (usage: -g 78 | TOTALTIME) 79 | -h,--help Print this help text and exit (usage: -h, 80 | --help) 81 | --hardcore No pause between tests 82 | -j,--contenttype content-type header; defaults to 83 | 'application/json' (usage: -c 84 | application/xml, 85 | --contenttype=application-xml) 86 | -m,--method request method for endpoint 87 | (GET/PUT/POST/DELETE) 88 | -n,--requests requests to make per test run (usage: -n 89 | 1000, --requests=1000) 90 | -p,--postData txt file supplying POST data (usage: -p 91 | post.txt ) 92 | -t,--token JWT bearer token (usage: -t 93 | wer4t56g356g356h35h, 94 | --token=wer4t56g356g356h35h) 95 | --testnum number of tests to run; defaults to 50 96 | (usage: --testNum=100) 97 | -H,--header optional header to pass (usage: -H 98 |
, --header=
) 99 | BeapiBench is a tool for benchmarking and graphing api's. It requires that both 100 | ApacheBench (ab) and gnuplot be preinstalled and available to run. Please make 101 | sure these are available and installed via your repository. If you have any 102 | questions, please visit us a http://beapi.io. Thanks again. 103 | ~~~~ 104 | 105 | ## Troubleshooting 106 | - **"/home/owen/workspace/beapi-bench/BeapiBench: 62: unable to resolve class CliBuilder"** : If the file spits out this, it means your version of groovy is incompatible with the version of CliBuilder it is trying to use. Easy fix. Go into the file and comment out one line and use the other: 107 | 108 | ``` 109 | //@Grab(group='commons-cli', module='commons-cli', version='1.4') 110 | @Grab("org.apache.groovy:groovy-cli-commons:4.0.9") 111 | ``` 112 | # Q&A 113 | - **Why does apacheBench (ab) with one test show ENTIRELY DIFFERENT STATS????** 114 | - If you will notice, the stats for beapi-bench = (number_of_cores x apachebench_results). ApacheBench uses only ONE CORE and is single-threaded when running its tests (which is ONLY how a single-threaded app runs... not multithreaded); api servers use ALL processor cores. Thats how beapi-bench works too. So our stats will reflect using all cores available to us which is (#numCores x ab results) 115 | -------------------------------------------------------------------------------- /debian/Makefile: -------------------------------------------------------------------------------- 1 | install: 2 | install -m 0755 BeapiBench /usr/local/bin 3 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | beapi-bench (0.2) bionic; urgency=medium 2 | 3 | * Minor changes. 4 | 5 | -- Owen Rubel Tue, 15 Oct 2019 11:16:23 -0700 6 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 10 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: beapi-bench 2 | Section: libs 3 | Priority: optional 4 | Maintainer: Owen Rubel 5 | Build-Depends: groovy 6 | Standards-Version: 0.2 7 | Homepage: https://github.com/orubel/beapi-bench 8 | 9 | Package: beapi-bench 10 | Architecture: all 11 | Depends: groovy, gnuplot-x11,apache2-utils 12 | Description: Command line Benchmarking tool for apis. Allows users to set concurrency/requests and runs set number of tests to BOMBARD endpoint to see how it will respond. Based on ApacheBench 13 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Copyright 2019, Owen Rubel (Beapi.io) All rights reserved 2 | -------------------------------------------------------------------------------- /debian/files: -------------------------------------------------------------------------------- 1 | beapi-bench_0.2_source.buildinfo libs optional 2 | -------------------------------------------------------------------------------- /debian/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | echo 'Installing program : beapi-bench ......' 4 | 5 | -------------------------------------------------------------------------------- /debian/prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | echo 'Removing program : beapi-bench ......' 4 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | %: 3 | $@ 4 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | *.zip 3 | *.log 4 | .settings 5 | ._.DS_Store 6 | .DS_Store 7 | .gradle 8 | build 9 | .idea 10 | bin 11 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | package deb: 2 | 3 | debuild -S -sd 4 | 5 | push PPA: 6 | 7 | dput ppa:orubel/ppa ~/workspace/beapi-bench_0.1_source.changes 8 | 9 | -------------------------------------------------------------------------------- /docs/assets/css/prism.css: -------------------------------------------------------------------------------- 1 | /** 2 | * prism.js default theme for JavaScript, CSS and HTML 3 | * Based on dabblet (http://dabblet.com) 4 | * @author Lea Verou 5 | */ 6 | 7 | code[class*="language-"], 8 | pre[class*="language-"] { 9 | color: #17a2b8; 10 | background: none; 11 | text-shadow: 0 1px white; 12 | font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; 13 | font-size: 1em; 14 | text-align: left; 15 | white-space: pre; 16 | word-spacing: normal; 17 | word-break: normal; 18 | word-wrap: normal; 19 | line-height: 1.5; 20 | 21 | -moz-tab-size: 4; 22 | -o-tab-size: 4; 23 | tab-size: 4; 24 | 25 | -webkit-hyphens: none; 26 | -moz-hyphens: none; 27 | -ms-hyphens: none; 28 | hyphens: none; 29 | } 30 | 31 | pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, 32 | code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { 33 | text-shadow: none; 34 | background: #b3d4fc; 35 | } 36 | 37 | pre[class*="language-"]::selection, pre[class*="language-"] ::selection, 38 | code[class*="language-"]::selection, code[class*="language-"] ::selection { 39 | text-shadow: none; 40 | background: #b3d4fc; 41 | } 42 | 43 | @media print { 44 | code[class*="language-"], 45 | pre[class*="language-"] { 46 | text-shadow: none; 47 | } 48 | } 49 | 50 | /* Code blocks */ 51 | pre[class*="language-"] { 52 | padding: 1em; 53 | margin: .5em 0; 54 | overflow: auto; 55 | } 56 | 57 | :not(pre) > code[class*="language-"], 58 | pre[class*="language-"] { 59 | background: #f5f2f0; 60 | } 61 | 62 | /* Inline code */ 63 | :not(pre) > code[class*="language-"] { 64 | padding: .1em; 65 | border-radius: .3em; 66 | white-space: normal; 67 | } 68 | 69 | .token.comment, 70 | .token.prolog, 71 | .token.doctype, 72 | .token.cdata { 73 | color: slategray; 74 | } 75 | 76 | .token.punctuation { 77 | color: #999; 78 | } 79 | 80 | .namespace { 81 | opacity: .7; 82 | } 83 | 84 | .token.property, 85 | .token.tag, 86 | .token.boolean, 87 | .token.number, 88 | .token.constant, 89 | .token.symbol, 90 | .token.deleted { 91 | color: #905; 92 | } 93 | 94 | .token.selector, 95 | .token.attr-name, 96 | .token.string, 97 | .token.char, 98 | .token.builtin, 99 | .token.inserted { 100 | color: #690; 101 | } 102 | 103 | .token.operator, 104 | .token.entity, 105 | .token.url, 106 | .language-css .token.string, 107 | .style .token.string { 108 | color: #9a6e3a; 109 | background: hsla(0, 0%, 100%, .5); 110 | } 111 | 112 | .token.atrule, 113 | .token.attr-value, 114 | .token.keyword { 115 | color: #07a; 116 | } 117 | 118 | .token.function, 119 | .token.class-name { 120 | color: #DD4A68; 121 | } 122 | 123 | .token.regex, 124 | .token.important, 125 | .token.variable { 126 | color: #e90; 127 | } 128 | 129 | .token.important, 130 | .token.bold { 131 | font-weight: bold; 132 | } 133 | .token.italic { 134 | font-style: italic; 135 | } 136 | 137 | .token.entity { 138 | cursor: help; 139 | } 140 | -------------------------------------------------------------------------------- /docs/assets/fonts/icomoon.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/fonts/icomoon.eot -------------------------------------------------------------------------------- /docs/assets/fonts/icomoon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/fonts/icomoon.ttf -------------------------------------------------------------------------------- /docs/assets/fonts/icomoon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/fonts/icomoon.woff -------------------------------------------------------------------------------- /docs/assets/images/changelog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/changelog.png -------------------------------------------------------------------------------- /docs/assets/images/helpcenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/helpcenter.png -------------------------------------------------------------------------------- /docs/assets/images/image-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/image-1.jpg -------------------------------------------------------------------------------- /docs/assets/images/image-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/image-2.jpg -------------------------------------------------------------------------------- /docs/assets/images/image-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/image-3.jpg -------------------------------------------------------------------------------- /docs/assets/images/image-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/image-4.jpg -------------------------------------------------------------------------------- /docs/assets/images/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/image.jpg -------------------------------------------------------------------------------- /docs/assets/images/layout-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/layout-1.png -------------------------------------------------------------------------------- /docs/assets/images/layout-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/layout-2.png -------------------------------------------------------------------------------- /docs/assets/images/layout-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/layout-3.png -------------------------------------------------------------------------------- /docs/assets/images/layout-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/layout-4.png -------------------------------------------------------------------------------- /docs/assets/images/logo-white.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | layers 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/assets/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/logo.png -------------------------------------------------------------------------------- /docs/assets/images/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | layers 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /docs/assets/images/logo_bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/logo_bw.png -------------------------------------------------------------------------------- /docs/assets/images/office-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/office-1.jpg -------------------------------------------------------------------------------- /docs/assets/images/office-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/office-2.jpg -------------------------------------------------------------------------------- /docs/assets/images/office-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Beapi-io/beapi-bench/863665724750410f61da2560d0a6851e5604f602/docs/assets/images/office-3.jpg -------------------------------------------------------------------------------- /docs/assets/images/pic-1.svg: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /docs/assets/js/app.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | "use strict"; 3 | 4 | var fn = { 5 | 6 | // Launch Functions 7 | Launch: function () { 8 | fn.Header(); 9 | fn.Masonry(); 10 | fn.Overlay(); 11 | fn.Filetree(); 12 | fn.Clipboard(); 13 | fn.OwlCarousel(); 14 | fn.ImageView(); 15 | fn.Apps(); 16 | }, 17 | 18 | 19 | Header: function (){ 20 | $(document.body).headroom({ 21 | tolerance : 10 22 | }); 23 | }, 24 | 25 | 26 | Masonry: function() { 27 | var $grid = $('.masonry').masonry({ 28 | itemSelector: '.masonry > *', 29 | }); 30 | }, 31 | 32 | 33 | // Owl Carousel 34 | OwlCarousel: function() { 35 | 36 | $('.owl-carousel').each(function() { 37 | var a = $(this), 38 | items = a.data('items') || [1,1,1,1], 39 | margin = a.data('margin'), 40 | loop = a.data('loop'), 41 | nav = a.data('nav'), 42 | dots = a.data('dots'), 43 | center = a.data('center'), 44 | autoplay = a.data('autoplay'), 45 | autoplaySpeed = a.data('autoplay-speed'), 46 | rtl = a.data('rtl'), 47 | autoheight = a.data('autoheight'); 48 | 49 | var options = { 50 | nav: nav || false, 51 | loop: loop || false, 52 | dots: dots || false, 53 | center: center || false, 54 | autoplay: autoplay || false, 55 | autoHeight: autoheight || false, 56 | rtl: rtl || false, 57 | margin: margin || 0, 58 | autoplayTimeout: autoplaySpeed || 3000, 59 | autoplaySpeed: 400, 60 | autoplayHoverPause: true, 61 | responsive: { 62 | 0: { items: items[3] || 1 }, 63 | 992: { items: items[2] || 1 }, 64 | 1200: { items: items[1] || 1 }, 65 | 1600: { items: items[0] || 1} 66 | } 67 | }; 68 | 69 | a.owlCarousel(options); 70 | 71 | // Custom Navigation Events 72 | $(document).on('click', '.owl-item>div', function() { 73 | $owl.trigger('to.owl.carousel', $(this).data( 'position' ) ); 74 | }); 75 | }); 76 | }, 77 | 78 | // Overlay Menu 79 | Overlay: function() { 80 | $(document).ready(function(){ 81 | $('.overlay-menu-open').click(function(){ 82 | $(this).toggleClass('active'); 83 | $('html').toggleClass('active'); 84 | $('.overlay-menu').toggleClass('active'); 85 | }); 86 | }); 87 | }, 88 | 89 | 90 | // File Tree 91 | Filetree: function() { 92 | var folder = $('.file-tree li.file-tree-folder'), 93 | file = $('.file-tree li'); 94 | 95 | folder.on("click", function(a) { 96 | $(this).children('ul').slideToggle(400, function() { 97 | $(this).parent("li").toggleClass("open") 98 | }), a.stopPropagation() 99 | }) 100 | 101 | file.on('click', function(b){ 102 | b.stopPropagation(); 103 | }) 104 | }, 105 | 106 | 107 | // Clipboard 108 | Clipboard: function() { 109 | var a = new ClipboardJS('.anchor', { 110 | text: function(b) { 111 | return window.location.host + window.location.pathname + $(b).attr("href") 112 | } 113 | }); 114 | 115 | a.on('success', function(e) { 116 | e.clearSelection(), $(e.trigger).addClass("copied"), setTimeout(function() { 117 | $(e.trigger).removeClass("copied") 118 | }, 2000) 119 | }); 120 | }, 121 | 122 | ImageView: function() { 123 | $('.lightbox').magnificPopup({ 124 | type: 'image', 125 | closeOnContentClick: true, 126 | closeBtnInside: false, 127 | fixedContentPos: true, 128 | mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side 129 | image: { 130 | verticalFit: true 131 | } 132 | }); 133 | 134 | $('.gallery').each(function() { // the containers for all your galleries 135 | $(this).magnificPopup({ 136 | delegate: '.photo > a', // the selector for gallery item 137 | type: 'image', 138 | mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side 139 | gallery: { 140 | enabled:true 141 | } 142 | }); 143 | }); 144 | 145 | $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 146 | disableOn: 700, 147 | type: 'iframe', 148 | mainClass: 'mfp-fade', 149 | removalDelay: 160, 150 | preloader: false, 151 | 152 | fixedContentPos: false 153 | }); 154 | }, 155 | 156 | 157 | // Apps 158 | Apps: function () { 159 | 160 | // accordion 161 | $(document).ready(function() { 162 | 163 | $('.collapse').on('show.bs.collapse', function () { 164 | $(this).parent().addClass('active'); 165 | }); 166 | 167 | $('.collapse').on('hide.bs.collapse', function () { 168 | $(this).parent().removeClass('active'); 169 | }); 170 | 171 | }); 172 | 173 | 174 | // tooltips 175 | $('[data-toggle="tooltip"]').tooltip() 176 | 177 | 178 | 179 | // skrollr 180 | skrollr.init({ 181 | forceHeight: false, 182 | mobileCheck: function() { 183 | //hack - forces mobile version to be off 184 | return false; 185 | } 186 | }); 187 | 188 | 189 | // Smooth Scroll 190 | $(function () { 191 | var scroll = new SmoothScroll('[data-scroll]'); 192 | }); 193 | 194 | 195 | // Lavalamp 196 | $('.lavalamp').lavalamp({ 197 | setOnClick: true, 198 | enableHover: false, 199 | margins: false, 200 | autoUpdate: true, 201 | duration: 200 202 | }); 203 | 204 | 205 | $(document).ready(function(){ 206 | var window_width = jQuery( window ).width(); 207 | 208 | if (window_width < 768) { 209 | $(".sticky").trigger("sticky_kit:detach"); 210 | } else { 211 | make_sticky(); 212 | } 213 | 214 | 215 | $( window ).resize(function() { 216 | 217 | window_width = jQuery( window ).width(); 218 | 219 | if (window_width < 768) { 220 | $(".sticky").trigger("sticky_kit:detach"); 221 | } else { 222 | make_sticky(); 223 | } 224 | 225 | }); 226 | 227 | 228 | // recalc on collapse 229 | $('.nav-item .collapse').on('shown.bs.collapse hidden.bs.collapse', function () { 230 | $(".sticky").trigger("sticky_kit:recalc"); 231 | }); 232 | 233 | function make_sticky() { 234 | $(".sticky").stick_in_parent(); 235 | } 236 | 237 | }); 238 | 239 | 240 | // prism 241 | (function(){ 242 | if (typeof self === 'undefined' || !self.Prism || !self.document) { 243 | return; 244 | } 245 | 246 | if (!Prism.plugins.toolbar) { 247 | console.warn('Copy to Clipboard plugin loaded before Toolbar plugin.'); 248 | 249 | return; 250 | } 251 | 252 | var ClipboardJS = window.ClipboardJS || undefined; 253 | 254 | if (!ClipboardJS && typeof require === 'function') { 255 | ClipboardJS = require('clipboard'); 256 | } 257 | 258 | var callbacks = []; 259 | 260 | if (!ClipboardJS) { 261 | var script = document.createElement('script'); 262 | var head = document.querySelector('head'); 263 | 264 | script.onload = function() { 265 | ClipboardJS = window.ClipboardJS; 266 | 267 | if (ClipboardJS) { 268 | while (callbacks.length) { 269 | callbacks.pop()(); 270 | } 271 | } 272 | }; 273 | 274 | script.src = 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js'; 275 | head.appendChild(script); 276 | } 277 | 278 | Prism.plugins.toolbar.registerButton('copy-to-clipboard', function (env) { 279 | var linkCopy = document.createElement('a'); 280 | linkCopy.textContent = 'Copy'; 281 | 282 | if (!ClipboardJS) { 283 | callbacks.push(registerClipboard); 284 | } else { 285 | registerClipboard(); 286 | } 287 | 288 | return linkCopy; 289 | 290 | function registerClipboard() { 291 | var clip = new ClipboardJS(linkCopy, { 292 | 'text': function () { 293 | return env.code; 294 | } 295 | }); 296 | 297 | clip.on('success', function() { 298 | linkCopy.textContent = 'Copied!'; 299 | 300 | resetText(); 301 | }); 302 | clip.on('error', function () { 303 | linkCopy.textContent = 'Press Ctrl+C to copy'; 304 | 305 | resetText(); 306 | }); 307 | } 308 | 309 | function resetText() { 310 | setTimeout(function () { 311 | linkCopy.textContent = 'Copy'; 312 | }, 5000); 313 | } 314 | }); 315 | })(); 316 | } 317 | }; 318 | 319 | $(document).ready(function () { 320 | fn.Launch(); 321 | }); 322 | 323 | })(jQuery); -------------------------------------------------------------------------------- /docs/assets/js/modernizr.js: -------------------------------------------------------------------------------- 1 | /*! modernizr 3.6.0 (Custom Build) | MIT * 2 | * https://modernizr.com/download/?-cssmask-setclasses !*/ 3 | !function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,s,i,l;for(var a in S)if(S.hasOwnProperty(a)){if(e=[],n=S[a],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;tc;c++)if(y=e[c],v=N.style[y],l(y,"-")&&(y=d(y)),N.style[y]!==t){if(s||r(o,"undefined"))return a(),"pfx"==n?y:!0;try{N.style[y]=o}catch(h){}if(N.style[y]!=v)return a(),"pfx"==n?y:!0}return a(),!1}function y(e,n){return function(){return e.apply(n,arguments)}}function v(e,n,t){var o;for(var s in e)if(e[s]in n)return t===!1?e[s]:(o=n[e[s]],r(o,"function")?y(o,t||n):o);return!1}function g(e,n,t,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),l=(e+" "+P.join(i+" ")+i).split(" ");return r(n,"string")||r(n,"undefined")?m(l,n,o,s):(l=(e+" "+z.join(i+" ")+i).split(" "),v(l,n,t))}function h(e,n,r){return g(e,t,t,n,r)}var C=[],S=[],w={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){S.push({name:e,fn:n,options:t})},addAsyncTest:function(e){S.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=w,Modernizr=new Modernizr;var _=n.documentElement,x="svg"===_.nodeName.toLowerCase(),b="Moz O ms Webkit",P=w._config.usePrefixes?b.split(" "):[];w._cssomPrefixes=P;var z=w._config.usePrefixes?b.toLowerCase().split(" "):[];w._domPrefixes=z;var E={elem:i("modernizr")};Modernizr._q.push(function(){delete E.elem});var N={style:E.elem.style};Modernizr._q.unshift(function(){delete N.style}),w.testAllProps=g,w.testAllProps=h,Modernizr.addTest("cssmask",h("maskRepeat","repeat-x",!0)),o(),s(C),delete w.addTest,delete w.addAsyncTest;for(var k=0;k * { 18 | font-family: $font-family-sans-serif; 19 | font-weight: $font-weight-normal; 20 | } 21 | 22 | button { 23 | @include transition; 24 | position: relative; 25 | width: 100%; 26 | padding: $card-spacer-y $card-spacer-x; 27 | text-align: left; 28 | text-transform: none; 29 | font-weight: $font-weight-normal; 30 | font-size: 1rem; 31 | letter-spacing: 0; 32 | color: inherit; 33 | white-space: normal; 34 | 35 | &:hover { 36 | text-decoration: none; 37 | } 38 | 39 | &::before { 40 | position: absolute; 41 | content: "\ebfa"; 42 | width: 1em; 43 | line-height: 1em; 44 | right: $card-spacer-x; 45 | top: 50%; 46 | font-family: 'icomoon' !important; 47 | font-size: 1.5rem; 48 | margin-top: -0.5em; 49 | color: $secondary; 50 | @include transition(0.2s); 51 | } 52 | 53 | &[aria-expanded="true"] { 54 | &::before { 55 | @include rotate(180deg); 56 | } 57 | } 58 | } 59 | } 60 | 61 | .card-body { 62 | padding-top: 0; 63 | } 64 | } 65 | 66 | } 67 | 68 | 69 | .accordion-boxed { 70 | @include shadow; 71 | 72 | .card { 73 | @include no-shadow; 74 | 75 | .card-header { 76 | button { 77 | padding: $card-spacer-y ($card-spacer-x * 2) $card-spacer-y $card-spacer-x; 78 | } 79 | } 80 | } 81 | } 82 | 83 | .accordion-bordered { 84 | @include no-shadow; 85 | background: transparent; 86 | 87 | .card { 88 | @include no-shadow; 89 | background: transparent; 90 | 91 | .card-header { 92 | button { 93 | padding: $card-spacer-y ($card-spacer-x * 2) $card-spacer-y $card-spacer-x; 94 | } 95 | } 96 | } 97 | } 98 | 99 | 100 | // fluid 101 | .accordion-fluid { 102 | 103 | .card { 104 | @include no-shadow; 105 | @include transition; 106 | border-color: transparent; 107 | background: transparent; 108 | 109 | &::before, 110 | &::after { 111 | @include transition; 112 | content: ""; 113 | position: absolute; 114 | display: block; 115 | top: -1px; 116 | bottom: -$border-width; 117 | width: 100vw; 118 | } 119 | 120 | &::before { right: 100%; } 121 | &::after { left: 100%; } 122 | 123 | &:not(:first-of-type):not(:last-of-type), &:first-of-type { 124 | border-bottom: $border-width solid $border-color; 125 | 126 | &::before, 127 | &::after { 128 | border-bottom: $border-width solid $border-color; 129 | } 130 | } 131 | 132 | .card-header { 133 | button { 134 | padding: ($section-padding / 2) ($card-spacer-x * 2) ($section-padding / 2) 0; 135 | font-size: 1.25rem; 136 | } 137 | } 138 | 139 | .card-body { 140 | padding: 0 0 ($card-spacer-x * 2) 0; 141 | } 142 | 143 | &.active { 144 | background: $white; 145 | 146 | &::before, 147 | &::after { 148 | background: $white; 149 | } 150 | } 151 | } 152 | 153 | } 154 | 155 | 156 | // stacks 157 | .accordion-stack { 158 | @include no-shadow; 159 | background: transparent; 160 | 161 | .card { 162 | @extend %stacked; 163 | 164 | &.active { 165 | &::before { 166 | bottom: 0; 167 | } 168 | } 169 | 170 | &:not(:first-of-type):not(:last-of-type), 171 | &:first-of-type { 172 | @include border-radius; 173 | border-bottom: $border-width solid $border-color; 174 | } 175 | 176 | &:last-of-type { 177 | @include border-radius; 178 | } 179 | 180 | .card-header { 181 | 182 | button { 183 | position: relative; 184 | width: 100%; 185 | text-align: left; 186 | font-size: $font-size-lg; 187 | 188 | &::before { 189 | position: static; 190 | content: "\ec7d"; 191 | display: inline-flex; 192 | align-items: center; 193 | justify-content: center; 194 | vertical-align: middle; 195 | width: 2.5rem; 196 | height: 2.5rem; 197 | margin-right: $card-spacer-y; 198 | border-radius: 50%; 199 | font-family: 'icomoon' !important; 200 | margin-top: 0; 201 | background: $primary; 202 | color: $white; 203 | } 204 | 205 | &[aria-expanded="true"] { 206 | &::before { 207 | content: "\ec62"; 208 | @include rotate(0deg); 209 | } 210 | } 211 | } 212 | } 213 | 214 | + .card { 215 | margin-top: ($card-spacer-x / 2); 216 | } 217 | } 218 | } 219 | 220 | 221 | // changelog 222 | .accordion-changelog { 223 | .card { 224 | .card-header { 225 | button { 226 | padding: $card-spacer-x ($card-spacer-x * 2 + 10px); 227 | } 228 | } 229 | 230 | &:hover { 231 | .label { 232 | @include scale(1.5); 233 | } 234 | } 235 | 236 | &:last-of-type { 237 | border-bottom: $border-width solid $border-color; 238 | border-bottom-left-radius: $border-radius; 239 | border-bottom-right-radius: $border-radius; 240 | } 241 | } 242 | 243 | .label { 244 | @include transition; 245 | position: absolute; 246 | top: 50%; 247 | left: $card-spacer-x; 248 | display: block; 249 | width: 10px; 250 | height: 10px; 251 | margin-top: -5px; 252 | border-radius: 50%; 253 | background: $gray-100; 254 | } 255 | 256 | } 257 | 258 | 259 | 260 | .accordion-list { 261 | background: transparent; 262 | 263 | .card { 264 | @include transition; 265 | box-shadow: none; 266 | border-radius: $border-radius; 267 | padding-left: 3.125rem; 268 | background: transparent; 269 | border-color: transparent; 270 | counter-increment: accordion; 271 | 272 | &:not(:first-of-type):not(:last-of-type), 273 | &:first-of-type { 274 | border-bottom: $border-width solid transparent; 275 | border-radius: $border-radius; 276 | } 277 | 278 | &:not(:first-child) { 279 | margin-top: 10px; 280 | } 281 | 282 | &:hover { 283 | @extend %boxed; 284 | 285 | &:not(:first-of-type):not(:last-of-type), 286 | &:first-of-type { 287 | border-bottom-color: $border-color; 288 | } 289 | } 290 | 291 | &::before { 292 | @include translate(0,-50%); 293 | @include transition; 294 | content: counter(accordion, decimal); 295 | position: absolute; 296 | display: block; 297 | top: 50%; 298 | left: 10px; 299 | width: 3.125rem; 300 | height: 3.125rem; 301 | color: $white; 302 | line-height: 3.125rem; 303 | text-align: center; 304 | z-index: 20; 305 | border-radius: $border-radius; 306 | background: $secondary; 307 | font-size: $font-size-base; 308 | font-weight: 600; 309 | } 310 | 311 | &.active { 312 | @extend %boxed; 313 | 314 | &:not(:first-of-type):not(:last-of-type), 315 | &:first-of-type { 316 | border-bottom-color: $border-color; 317 | } 318 | 319 | &::before { 320 | @include translate(-20px,-50%); 321 | background: $primary; 322 | color: $white; 323 | } 324 | } 325 | 326 | .card-header { 327 | button { 328 | line-height: 30px; 329 | padding-top: 20px; 330 | padding-bottom: 20px; 331 | 332 | &::before { 333 | display: none; 334 | } 335 | } 336 | } 337 | } 338 | } 339 | -------------------------------------------------------------------------------- /docs/assets/scss/components/_alert.scss: -------------------------------------------------------------------------------- 1 | // 2 | // alert 3 | // 4 | // 5 | 6 | .alert { 7 | overflow: hidden; 8 | 9 | [class*="icon-"] { 10 | position: absolute; 11 | top: -2rem; 12 | left: -2rem; 13 | font-size: 10rem; 14 | color: rgba($black, .05); 15 | } 16 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_articles.scss: -------------------------------------------------------------------------------- 1 | // 2 | // articles 3 | // 4 | // 5 | 6 | .topic { 7 | @include transition; 8 | position: relative; 9 | display: block; 10 | padding: $card-spacer-y $card-spacer-x $card-spacer-y ($card-spacer-x * 2); 11 | color: #222; 12 | 13 | &:hover { 14 | color: inherit; 15 | background: $gray-100; 16 | } 17 | 18 | &:not(.topic-vertical) { 19 | &:hover { 20 | .topic-label { 21 | @include scale(1.5); 22 | } 23 | } 24 | } 25 | 26 | + .topic { 27 | margin-top: .5rem; 28 | } 29 | 30 | > .row { 31 | min-height: 2.5rem; 32 | } 33 | } 34 | 35 | .topic-label { 36 | @include transition; 37 | position: absolute; 38 | top: 50%; 39 | left: $card-spacer-x; 40 | display: block; 41 | width: 10px; 42 | height: 10px; 43 | margin-top: -5px; 44 | border-radius: 50%; 45 | background: $gray-100; 46 | } 47 | 48 | .topic-title { 49 | font-family: $font-family-base; 50 | font-size: $font-size-base; 51 | font-weight: $font-weight-normal; 52 | } 53 | 54 | .topic-vertical { 55 | padding: $card-spacer-x $card-spacer-x $card-spacer-x ($card-spacer-x + 8px); 56 | 57 | .topic-title { 58 | margin-bottom: $card-spacer-x; 59 | font-size: $font-size-lg; 60 | } 61 | 62 | .topic-label { 63 | top: 4px; 64 | bottom: 4px; 65 | left: 4px; 66 | width: 8px; 67 | height: auto; 68 | margin-top: 0; 69 | border-radius: $border-radius; 70 | } 71 | } 72 | 73 | 74 | // topic inside a card 75 | .card { 76 | .topic { 77 | margin-right: -$card-spacer-x; 78 | margin-left: -$card-spacer-x; 79 | padding-left: $card-spacer-x; 80 | 81 | + .topic { 82 | margin-top: 0; 83 | border-top: $border-width solid $border-color; 84 | } 85 | } 86 | } 87 | 88 | 89 | 90 | // activity 91 | .activity { 92 | @include transition; 93 | position: relative; 94 | display: block; 95 | color: $body-color; 96 | margin-left: -$card-spacer-x; 97 | margin-right: -$card-spacer-x; 98 | padding: ($card-spacer-x / 2) $card-spacer-x; 99 | 100 | + .activity { 101 | border-top: $border-width solid $border-color; 102 | } 103 | 104 | &:hover { 105 | color: inherit; 106 | background: $gray-100; 107 | } 108 | 109 | > .row { 110 | min-height: 3.125rem; 111 | } 112 | } 113 | 114 | .activity-label { 115 | display: block; 116 | width: .625rem; 117 | height: .625rem; 118 | border-radius: 50%; 119 | } 120 | 121 | 122 | 123 | // intersite 124 | .interpost { 125 | font-size: $font-size-lg; 126 | font-family: $font-family-base; 127 | font-weight: 400; 128 | 129 | a { 130 | position: relative; 131 | @include transition; 132 | display: block; 133 | color: $white; 134 | padding: ($section-padding / 2) 0; 135 | 136 | &:hover { 137 | background: rgba($white, .1); 138 | 139 | &::before { background: rgba($white, .1); } 140 | } 141 | 142 | &::before { 143 | @include transition; 144 | content: ""; 145 | position: absolute; 146 | top: 0; 147 | display: block; 148 | width: 50vw; 149 | height: 100%; 150 | } 151 | } 152 | 153 | // previous button 154 | &[class*="-prev"] { 155 | border-right: $border-width solid rgba($white, .1); 156 | 157 | a { 158 | padding-left: ($card-spacer-x * 2); 159 | padding-right: $card-spacer-x; 160 | 161 | &::before { right: 100%; } 162 | 163 | &::after { 164 | position: absolute; 165 | left: 0; 166 | content: "\ebdc"; 167 | width: 1em; 168 | line-height: 1em; 169 | top: 50%; 170 | font-family: 'icomoon' !important; 171 | font-size: 1.5rem; 172 | margin-top: -0.5em; 173 | } 174 | } 175 | } 176 | 177 | // next button 178 | &[class*="-next"] { 179 | a { 180 | padding-left: $card-spacer-x; 181 | padding-right: ($card-spacer-x * 2); 182 | 183 | &::before { left: 100%; } 184 | 185 | &::after { 186 | position: absolute; 187 | right: 0; 188 | content: "\ebde"; 189 | width: 1em; 190 | line-height: 1em; 191 | top: 50%; 192 | font-family: 'icomoon' !important; 193 | font-size: 1.5rem; 194 | margin-top: -0.5em; 195 | } 196 | } 197 | } 198 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_badge.scss: -------------------------------------------------------------------------------- 1 | // 2 | // badge 3 | // 4 | // 5 | 6 | .badge { 7 | text-transform: uppercase; 8 | font-size: .75rem; 9 | font-weight: 600; 10 | padding: .5rem 1rem; 11 | letter-spacing: $letter-spacing; 12 | 13 | &[class*="-lg"] { 14 | min-width: 80px; 15 | } 16 | } 17 | 18 | 19 | // badges 20 | @each $color, $value in $colors { 21 | .badge-#{$color} { 22 | @include badge-variant($value); 23 | } 24 | } 25 | 26 | @each $color, $value in $socials { 27 | .badge-#{$color} { 28 | @include badge-variant($value); 29 | } 30 | } 31 | 32 | @each $color, $value in $grays { 33 | .badge-#{$color} { 34 | @include badge-variant($value); 35 | } 36 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_boxes.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Boxes 3 | // 4 | // 5 | 6 | %boxed { 7 | @include shadow; 8 | border-radius: $border-radius; 9 | border: $border-width solid $border-color; 10 | background: white; 11 | } 12 | 13 | %bordered { 14 | @include border-radius; 15 | border: $border-width solid $border-color; 16 | } 17 | 18 | 19 | .no-border { 20 | border-color: transparent; 21 | } 22 | 23 | 24 | // boxed 25 | .boxed { 26 | @extend %boxed; 27 | 28 | > .row { 29 | margin-left: 0; 30 | margin-right: 0; 31 | } 32 | } 33 | 34 | .bordered { 35 | @extend %bordered; 36 | } 37 | 38 | %stacked { 39 | @include transition; 40 | position: relative; 41 | background: $white; 42 | 43 | &::before { 44 | @include transition; 45 | @include border-radius; 46 | opacity: .75; 47 | content: ""; 48 | position: absolute; 49 | left: 4px; 50 | right: 4px; 51 | bottom: -8px; 52 | display: block; 53 | height: 100%; 54 | background: $white; 55 | border: $border-width solid $border-color; 56 | z-index: -1; 57 | } 58 | 59 | &:hover { 60 | &::before { 61 | bottom: -12px; 62 | } 63 | } 64 | } 65 | 66 | .stacked { 67 | @extend %stacked; 68 | } 69 | 70 | 71 | // Equal 72 | // 73 | // equalise width and height of a box 74 | %equal { 75 | position: relative; 76 | // overflow: hidden; 77 | 78 | &::before { 79 | display: block; 80 | content: ""; 81 | width: 100%; 82 | padding-top: 100%; 83 | } 84 | 85 | > * { 86 | position: absolute; 87 | top: 0; 88 | right: 0; 89 | bottom: 0; 90 | left: 0; 91 | display: flex; 92 | } 93 | 94 | > a { 95 | color: inherit; 96 | 97 | &:hover { 98 | color: inherit; 99 | } 100 | } 101 | 102 | &[class*="-short"] { 103 | &::before { 104 | padding-top: 75%; 105 | } 106 | } 107 | 108 | &[class*="-long"] { 109 | &::before { 110 | padding-top: 125%; 111 | } 112 | } 113 | } 114 | 115 | 116 | 117 | // lift up 118 | %lift { 119 | @include transition(); 120 | 121 | &:hover { 122 | @include translate(0,-10px); 123 | position: relative; 124 | z-index: 50; 125 | -webkit-box-shadow: 0px 10px 15px 0 rgba($black,0.1); 126 | -moz-box-shadow: 0px 10px 15px 0 rgba($black,0.1); 127 | box-shadow: 0px 10px 15px 0 rgba($black,0.1); 128 | } 129 | } 130 | 131 | .lift { @extend %lift; } 132 | 133 | .scale { 134 | @include transition; 135 | 136 | &:hover { 137 | @include scale; 138 | @include shadow; 139 | background: $white; 140 | } 141 | } 142 | 143 | .equal { 144 | @extend %equal; 145 | 146 | .equal-header, 147 | .equal-footer { 148 | position: absolute; 149 | right: 0; 150 | left: 0; 151 | } 152 | 153 | .equal-header { top: 0; } 154 | .equal-footer { bottom: 0; } 155 | 156 | .image { 157 | z-index: 0; 158 | } 159 | 160 | .row { 161 | height: 100%; 162 | } 163 | } 164 | 165 | %highlight { 166 | @include transition; 167 | 168 | &:hover { 169 | border-color: $primary; 170 | color: $primary; 171 | } 172 | } 173 | 174 | .highlight { 175 | @extend %highlight; 176 | } 177 | 178 | 179 | // 180 | // separated items 181 | // 182 | .separated { 183 | overflow: hidden; 184 | 185 | > * { 186 | @include prefix(box-shadow, -1px -1px 0px 0px $border-color, webkit moz); 187 | 188 | &:not(:last-child) { 189 | margin-bottom: 0!important; 190 | } 191 | } 192 | } 193 | 194 | .text-white { 195 | .separated { 196 | > * { 197 | @include prefix(box-shadow, -1px -1px 0px 0px rgba($white, .1), webkit moz); 198 | } 199 | } 200 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_breadcrumbs.scss: -------------------------------------------------------------------------------- 1 | // Breadcrumbs 2 | // 3 | // 4 | // 5 | 6 | .breadcrumb { 7 | display: inline-flex; 8 | padding: $btn-padding-y; 9 | border: $border-width solid $border-color; 10 | background: transparent; 11 | } 12 | 13 | .breadcrumb-item { 14 | font-size: .75rem; 15 | text-transform: uppercase; 16 | font-weight: 600; 17 | letter-spacing: $letter-spacing; 18 | 19 | a { 20 | @include transition; 21 | color: $black; 22 | } 23 | } 24 | 25 | 26 | .breadcrumb-back { 27 | @include transition; 28 | position: relative; 29 | width: 50px; 30 | height: 50px; 31 | display: inline-block; 32 | vertical-align: middle; 33 | border-radius: 50%; 34 | text-align: center; 35 | border: $border-width solid $border-color; 36 | 37 | &::before { 38 | @include translate(-50%,-50%); 39 | @include transition(0.2s); 40 | position: absolute; 41 | content: "\ebdc"; 42 | top: 50%; 43 | left: 50%; 44 | font-family: 'icomoon' !important; 45 | font-size: $font-size-lg; 46 | color: $black; 47 | } 48 | 49 | &:not(:last-child) { 50 | margin-right: $grid-gutter-width / 2; 51 | } 52 | 53 | &:hover { 54 | @extend %boxed; 55 | border-radius: 50%; 56 | } 57 | } 58 | 59 | 60 | .text-white { 61 | .breadcrumb { 62 | border: 0; 63 | background: rgba($black, .1); 64 | } 65 | 66 | .breadcrumb-item { 67 | color: rgba($white, .5); 68 | 69 | a { 70 | color: $white; 71 | 72 | &:hover { 73 | color: rgba($white, .75); 74 | } 75 | } 76 | } 77 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_buttons.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Buttons 3 | // 4 | 5 | 6 | .btn-rounded { border-radius: 10rem; } 7 | 8 | 9 | // top 10 | .btn-frame { 11 | display: inline-block; 12 | padding: .5rem; 13 | border-radius: 50%; 14 | } 15 | 16 | 17 | .btn { 18 | position: relative; 19 | 20 | .badge { 21 | font-size: 1em; 22 | margin-right: -($card-spacer-x * 1.5); 23 | margin-left: 1em; 24 | } 25 | } 26 | 27 | 28 | // icon 29 | .btn-ico { 30 | position: relative; 31 | box-sizing: content-box; 32 | width: 1.5em; 33 | height: 1.5em; 34 | padding: $btn-padding-y; 35 | 36 | &[class*="-sm"] { 37 | padding: $btn-padding-y-sm; 38 | } 39 | 40 | &[class*="-lg"] { 41 | padding: $btn-padding-y-lg; 42 | } 43 | 44 | &[class*="-rounded"] { 45 | border-radius: 50%!important; 46 | } 47 | 48 | i { 49 | @include translate(-50%,-50%); 50 | position: absolute; 51 | top: 50%; 52 | left: 50%; 53 | } 54 | } 55 | 56 | 57 | // inverted button 58 | .btn-inverted { 59 | background: rgba($white, .1); 60 | color: $white; 61 | 62 | &:hover { 63 | background: rgba($white, .15); 64 | } 65 | } 66 | 67 | 68 | // basic colors 69 | @each $color, $value in $colors { 70 | .btn-#{$color} { 71 | @include button-variant($value, $value); 72 | } 73 | } 74 | 75 | @each $color, $value in $colors { 76 | .btn-outline-#{$color} { 77 | @include button-outline-variant($value); 78 | } 79 | } 80 | 81 | 82 | // social colors 83 | @each $color, $value in $socials { 84 | .btn-#{$color} { 85 | @include button-variant($value, $value); 86 | } 87 | } 88 | 89 | @each $color, $value in $socials { 90 | .btn-outline-#{$color} { 91 | @include button-outline-variant($value); 92 | } 93 | } 94 | 95 | 96 | // gray colors 97 | @each $color, $value in $grays { 98 | .btn-#{$color} { 99 | @include button-variant($value, $value); 100 | } 101 | } 102 | 103 | @each $color, $value in $grays { 104 | .btn-outline-#{$color} { 105 | @include button-outline-variant($value); 106 | } 107 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_card.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Cards 3 | // 4 | // 5 | 6 | .card { 7 | @extend %boxed; 8 | 9 | .card-body { 10 | position: relative; 11 | overflow: hidden; 12 | } 13 | 14 | .card-header, 15 | .card-footer { 16 | padding: $card-spacer-x; 17 | } 18 | 19 | &.bordered { 20 | box-shadow: none; 21 | background: transparent; 22 | 23 | .card-header { border-bottom: $border-width solid $border-color; } 24 | 25 | .card-footer { border-top: $border-width solid $border-color; } 26 | 27 | &.lift { @extend %lift; } 28 | } 29 | } 30 | 31 | 32 | .card-body, 33 | .card-header, 34 | .card-footer { 35 | &.action { 36 | display: block; 37 | padding-right: ($card-spacer-x * 2); 38 | 39 | &::after { 40 | @include transition; 41 | @include translate(0,-50%); 42 | position: absolute; 43 | right: $card-spacer-x * 1.5; 44 | top: 50%; 45 | content: "\ebde"; 46 | display: block; 47 | font-family: 'icomoon' !important; 48 | font-size: 1em; 49 | width: 10px; 50 | line-height: 1em; 51 | } 52 | 53 | &:hover { 54 | &::after { 55 | right: $card-spacer-x; 56 | } 57 | } 58 | } 59 | } 60 | 61 | 62 | 63 | // footer link 64 | .card { 65 | a.card-footer { 66 | @include transition; 67 | padding: $card-spacer-y $card-spacer-x; 68 | text-transform: uppercase; 69 | text-align: center; 70 | font-size: $font-size-sm; 71 | letter-spacing: $letter-spacing; 72 | color: $body-color; 73 | 74 | &:hover { 75 | background: $border-color; 76 | } 77 | } 78 | } 79 | 80 | 81 | // card link 82 | a.card { 83 | display: block; 84 | } 85 | 86 | 87 | 88 | 89 | // card with background 90 | .card-background { 91 | overflow: hidden; 92 | 93 | &:hover { 94 | .image::after { 95 | background: rgba($primary, .75); 96 | } 97 | } 98 | 99 | > * { 100 | z-index: 10; 101 | } 102 | 103 | .image { 104 | z-index: 5; 105 | 106 | &::after { 107 | @include transition; 108 | position: absolute; 109 | top: 0; 110 | right: 0; 111 | bottom: 0; 112 | left: 0; 113 | content: ""; 114 | background: rgba($black, .5); 115 | } 116 | } 117 | 118 | .card-title { 119 | color: $white; 120 | } 121 | 122 | .card-text { 123 | color: rgba($white, .75); 124 | } 125 | 126 | .card-footer { 127 | background: transparent; 128 | color: $white; 129 | border-color: rgba($white, .25); 130 | 131 | &:hover { 132 | background: rgba($white, .25); 133 | border-color: transparent; 134 | } 135 | } 136 | } 137 | 138 | 139 | // card price 140 | .card-price { 141 | @extend %boxed; 142 | @include transition; 143 | color: $black; 144 | display: block; 145 | width: 6.25rem; 146 | height: 6.25rem; 147 | margin-top: -$card-spacer-x; 148 | border-radius: $border-radius; 149 | text-align: center; 150 | line-height: 6.25rem; 151 | font-size: 1.875rem; 152 | } 153 | 154 | .card:hover { 155 | .card-price { 156 | @include translate(0, -10px); 157 | } 158 | } 159 | 160 | 161 | 162 | // card entry 163 | .card-entry { 164 | @include no-shadow; 165 | background: transparent; 166 | border-color: transparent; 167 | 168 | .card-img-top { 169 | @include shadow; 170 | border-radius: $border-radius; 171 | } 172 | 173 | .card-body { 174 | padding: $card-spacer-y 0 0 0; 175 | } 176 | 177 | .card-video { 178 | position: relative; 179 | 180 | &::after { 181 | position: absolute; 182 | content: ""; 183 | top: 0; 184 | right: 0; 185 | bottom: 0; 186 | left: 0; 187 | display: block; 188 | background: rgba($black,.2); 189 | border-radius: $border-radius; 190 | } 191 | 192 | &::before { 193 | @include transition; 194 | @include shadow; 195 | position: absolute; 196 | content: "\f04b"; 197 | display: block; 198 | width: 5rem; 199 | height: 5rem; 200 | margin-top: -2.5rem; 201 | margin-left: -2.5rem; 202 | line-height: 5rem; 203 | border-radius: 50%; 204 | top: 50%; 205 | left: 50%; 206 | background: $white; 207 | font-family: 'icomoon' !important; 208 | font-size: $font-size-lg; 209 | text-align: center; 210 | color: $black; 211 | z-index: 5; 212 | } 213 | 214 | &:hover { 215 | &::before { 216 | @include scale(1.2); 217 | } 218 | } 219 | } 220 | 221 | .card-title { 222 | font-family: $font-family-sans-serif; 223 | font-size: $font-size-lg; 224 | 225 | a { 226 | color: $black; 227 | } 228 | } 229 | } 230 | 231 | 232 | // showcase 233 | .card-showcase { 234 | @include shadow; 235 | display: block; 236 | background: transparent; 237 | border: 0; 238 | 239 | a { 240 | display: block; 241 | } 242 | 243 | img { 244 | border-radius: $border-radius; 245 | } 246 | } 247 | 248 | 249 | // card component 250 | .card-component { 251 | background: transparent; 252 | box-shadow: none; 253 | 254 | .card-footer { 255 | @include shadow; 256 | border: 0; 257 | background: $white; 258 | border-radius: $border-radius; 259 | 260 | pre[class*="language-"] { 261 | @include no-shadow; 262 | background: transparent; 263 | margin: 0; 264 | } 265 | } 266 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_carousel.scss: -------------------------------------------------------------------------------- 1 | // Carousel 2 | // 3 | // 4 | // 5 | 6 | .owl-carousel { 7 | &[data-dots="true"] { 8 | margin-bottom: 60px; 9 | } 10 | 11 | // Navigation 12 | .owl-nav { 13 | 14 | button.owl-prev, 15 | button.owl-next { 16 | @extend %boxed; 17 | @include transition; 18 | position: absolute; 19 | border-radius: 50%; 20 | top: 50%; 21 | width: 4rem; 22 | height: 4rem; 23 | text-align: center; 24 | z-index: 20; 25 | 26 | &::before { 27 | display: block; 28 | position: absolute; 29 | top: 0; 30 | right: 0; 31 | bottom: 0; 32 | left: 0; 33 | line-height: 4rem; 34 | font-family: 'icomoon'; 35 | font-size: 1.5rem; 36 | color: $black; 37 | } 38 | 39 | span { 40 | display: none; 41 | } 42 | 43 | &:hover { 44 | border-color: $primary; 45 | 46 | &::before { 47 | color: $primary; 48 | } 49 | } 50 | } 51 | 52 | 53 | .owl-prev { 54 | @include translate(0,-50%); 55 | left: -2rem; 56 | 57 | &::before { content: "\ebfb" } 58 | 59 | &[class*="disabled"] { 60 | @include translate(-100%, -50%); 61 | opacity: 0; 62 | visibility: hidden; 63 | z-index: 10; 64 | } 65 | } 66 | 67 | 68 | .owl-next { 69 | @include translate(0,-50%); 70 | right: -2rem; 71 | 72 | &::before { content: "\ebfc" } 73 | 74 | &[class*="disabled"] { 75 | @include translate(100%, -50%); 76 | opacity: 0; 77 | visibility: hidden; 78 | z-index: 10; 79 | } 80 | } 81 | 82 | } 83 | 84 | } 85 | 86 | 87 | 88 | // Dots 89 | .owl-dots { 90 | @include translate(0,50%); 91 | position: absolute; 92 | bottom: -30px; 93 | width: 100%; 94 | text-align: center; 95 | 96 | &.disabled { 97 | display: none; 98 | } 99 | 100 | .owl-dot { 101 | display: inline-block; 102 | vertical-align: top; 103 | 104 | span { 105 | display: block; 106 | width: 8px; 107 | height: 8px; 108 | margin: 10px; 109 | border-radius: 50%; 110 | background: rgba($black,0.2); 111 | @include transition(); 112 | } 113 | 114 | &:hover { 115 | span { 116 | background: rgba($black, 0.4); 117 | } 118 | } 119 | 120 | &.active { 121 | span { 122 | background: $black; 123 | } 124 | } 125 | 126 | } 127 | } 128 | 129 | // library 130 | .owl-carousel-library { 131 | 132 | .owl-stage-outer { 133 | padding-top: $card-spacer-y; 134 | padding-bottom: $card-spacer-y; 135 | } 136 | 137 | 138 | // Navigation 139 | .owl-nav { 140 | text-align: center; 141 | 142 | button.owl-prev, 143 | button.owl-next { 144 | @include translate(0,0); 145 | position: static; 146 | 147 | &:last-child { 148 | margin-left: .5rem; 149 | } 150 | } 151 | 152 | 153 | .owl-prev, 154 | .owl-next { 155 | &[class*="disabled"] { 156 | @include translate(0, 0); 157 | @include no-shadow; 158 | opacity: 1; 159 | visibility: visible; 160 | border-color: transparent; 161 | background: transparent; 162 | z-index: 10; 163 | 164 | &::before { 165 | color: $border-color; 166 | } 167 | 168 | &:hover { 169 | border-color: transparent; 170 | 171 | &::before { 172 | color: $border-color; 173 | } 174 | } 175 | } 176 | } 177 | 178 | } 179 | } 180 | 181 | .owl-carousel-fluid { 182 | 183 | .owl-stage-outer { overflow: visible; } 184 | 185 | &:hover { 186 | .owl-nav { 187 | .owl-prev { 188 | @include translate(0,-50%); 189 | left: -($grid-gutter-width / 2); 190 | } 191 | 192 | 193 | .owl-next { 194 | @include translate(0,-50%); 195 | right: -($grid-gutter-width / 2); 196 | } 197 | } 198 | } 199 | 200 | .owl-nav { 201 | button.owl-prev, 202 | button.owl-next { 203 | background: rgba($black, .25); 204 | border-radius: 0; 205 | border-color: transparent!important; 206 | width: 2.75rem; 207 | height: 5.5rem; 208 | 209 | &::before { 210 | line-height: 5.5rem; 211 | color: $white!important; 212 | } 213 | 214 | &:hover { 215 | width: 5.5rem; 216 | background: rgba($black, .5); 217 | } 218 | } 219 | 220 | 221 | .owl-prev { 222 | @include translate(-100%,-50%); 223 | left: -($grid-gutter-width / 2); 224 | border-top-right-radius: $border-radius!important; 225 | border-bottom-right-radius: $border-radius!important; 226 | } 227 | 228 | 229 | .owl-next { 230 | @include translate(100%,-50%); 231 | right: -($grid-gutter-width / 2); 232 | border-top-left-radius: $border-radius!important; 233 | border-bottom-left-radius: $border-radius!important; 234 | } 235 | } 236 | } 237 | 238 | 239 | 240 | // General 241 | .owl-carousel { 242 | 243 | .owl-stage-outer { 244 | 245 | .owl-stage { 246 | 247 | .owl-item { 248 | @include transition(); 249 | counter-increment: owlItem; 250 | 251 | img { 252 | width: auto; 253 | max-width: 100%; 254 | } 255 | } 256 | } 257 | } 258 | 259 | &.visible { 260 | .owl-stage-outer { overflow: visible; } 261 | } 262 | 263 | &.accent { 264 | .owl-item { 265 | opacity: .25; 266 | 267 | &.active { 268 | opacity: 1; 269 | } 270 | } 271 | } 272 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_code.scss: -------------------------------------------------------------------------------- 1 | // 2 | // code 3 | // 4 | // 5 | 6 | 7 | // code highlight 8 | code[class*="language-"], 9 | pre[class*="language-"] { 10 | font-family: $font-family-monospace; 11 | text-shadow: none; 12 | } 13 | 14 | 15 | div.code-toolbar { 16 | 17 | &:hover { 18 | .toolbar { 19 | opacity: 1; 20 | } 21 | } 22 | 23 | > .toolbar { 24 | opacity: 0; 25 | top: 0; 26 | right: 0; 27 | 28 | .toolbar-item { 29 | display: block; 30 | } 31 | 32 | a { 33 | @include transition; 34 | @include no-shadow; 35 | @include border-radius; 36 | background: $primary; 37 | color: $white; 38 | display: block; 39 | margin: 10px -10px 0 0; 40 | padding: .5rem 1rem; 41 | font-size: .75rem; 42 | text-transform: uppercase; 43 | font-weight: 600; 44 | 45 | &:hover { 46 | color: $white; 47 | background: darken($primary, 7.5%); 48 | } 49 | } 50 | } 51 | } 52 | 53 | pre[class*="language-"] { 54 | border-radius: $border-radius; 55 | margin: 0 0 1rem 0; 56 | padding: $card-spacer-x; 57 | @extend %boxed; 58 | } 59 | 60 | .text-white { 61 | pre[class*="language-"] { 62 | @include no-shadow; 63 | background: rgba($black, .2); 64 | border-color: rgba($white, .1); 65 | } 66 | } 67 | 68 | 69 | // card 70 | .card { 71 | pre[class*="language-"] { 72 | @include no-shadow; 73 | padding: 0; 74 | border: 0; 75 | } 76 | } 77 | 78 | 79 | 80 | // component 81 | .component { 82 | > .tab-content { 83 | margin-top: $card-spacer-y; 84 | 85 | > .tab-pane:last-child { 86 | pre[class*="language-"] { 87 | @include no-shadow; 88 | background: $border-color; 89 | max-height: 50vh; 90 | } 91 | } 92 | } 93 | 94 | } 95 | 96 | .component-info { 97 | margin-top: $card-spacer-y; 98 | background: $gray-300; 99 | border-radius: $border-radius; 100 | overflow: hidden; 101 | 102 | p { 103 | padding: $card-spacer-x; 104 | font-size: $font-size-sm; 105 | } 106 | 107 | table { 108 | margin: 0; 109 | } 110 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_cover.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Cover 3 | // 4 | // 5 | 6 | .image { 7 | position: absolute; 8 | top: 0; 9 | right: 0; 10 | bottom: 0; 11 | left: 0; 12 | background-size: cover; 13 | background-position: center; 14 | z-index: -1; 15 | 16 | &[class*="-gradient-vertical"] { 17 | -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, 18 | from(rgba(0,0,0,.2)), to(rgba(0,0,0,0))); 19 | } 20 | 21 | &[class*="-gradient-vertical-invert"] { 22 | -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, 23 | from(rgba(0,0,0,0)), to(rgba(0,0,0,0.2))); 24 | } 25 | 26 | &[class*="-overlay"] { 27 | &::after { 28 | position: absolute; 29 | top: 0; 30 | right: 0; 31 | bottom: 0; 32 | left: 0; 33 | content: ""; 34 | background: rgba($black, .55); 35 | } 36 | } 37 | } 38 | 39 | .no-cssmask { 40 | .image { 41 | &[class*="-gradient-vertical"], 42 | &[class*="-gradient-vertical-invert"] { 43 | display: none; 44 | } 45 | } 46 | } 47 | 48 | .scroll-spy { 49 | height: 100vh; 50 | overflow-y: scroll; 51 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_doc.scss: -------------------------------------------------------------------------------- 1 | // 2 | // doc 3 | // 4 | // 5 | 6 | .doc-sidebar { 7 | padding: $card-spacer-x; 8 | border-right: $border-width solid $border-color; 9 | } 10 | 11 | .doc-content-header { 12 | margin-left: -($card-spacer-x / 2); 13 | margin-right: -($card-spacer-x / 2); 14 | margin-bottom: $grid-gutter-width; 15 | padding: $grid-gutter-width / 2; 16 | border-bottom: $border-width solid $border-color; 17 | 18 | @include media-breakpoint-up(lg) { 19 | margin-bottom: 0; 20 | padding: $card-spacer-x 3.125rem; 21 | } 22 | 23 | @include media-breakpoint-down(md) { 24 | border-top: $border-width solid $border-color; 25 | background: $white; 26 | } 27 | 28 | .breadcrumb { 29 | margin: 0; 30 | padding: 0; 31 | border: 0; 32 | } 33 | } 34 | 35 | 36 | .doc-content-body { 37 | margin-top: 0!important; 38 | 39 | > article { 40 | padding: $grid-gutter-width / 2; 41 | } 42 | 43 | > aside { 44 | padding: $grid-gutter-width / 2; 45 | border-left: $border-width solid $border-color; 46 | } 47 | 48 | @include media-breakpoint-up(lg) { 49 | > article { 50 | padding: 3.125rem; 51 | } 52 | 53 | > aside { 54 | padding: 3.125rem $card-spacer-x; 55 | } 56 | } 57 | 58 | .toc { 59 | margin-left: -$card-spacer-x; 60 | margin-right: -$card-spacer-x; 61 | } 62 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_dropdowns.scss: -------------------------------------------------------------------------------- 1 | // 2 | // dropdowns 3 | // 4 | // 5 | 6 | .dropdown { 7 | 8 | .nav-link { 9 | outline: 0; 10 | } 11 | 12 | .dropdown-menu { 13 | @include shadow(30px,0px,rgba($black, .2)); 14 | background: $white; 15 | border-radius: $border-radius; 16 | overflow: hidden; 17 | margin: 0; 18 | padding: 0; 19 | border: 0; 20 | 21 | .dropdown-item { 22 | @include transition; 23 | position: relative; 24 | padding: .5rem 1rem; 25 | font-size: $font-size-sm; 26 | color: $body-color; 27 | 28 | &:hover { 29 | background-color: rgba($black, .1); 30 | color: $black; 31 | } 32 | 33 | &.active { 34 | color: $white; 35 | background: $secondary; 36 | 37 | &:hover { 38 | background-color: $secondary; 39 | } 40 | } 41 | } 42 | } 43 | } 44 | 45 | 46 | // navbar dropdown - animation 47 | .navbar { 48 | @include media-breakpoint-up(lg) { 49 | .dropdown-menu { 50 | &.show { 51 | animation: dropdown .2s ease forwards; 52 | } 53 | } 54 | } 55 | } 56 | 57 | @keyframes dropdown { 58 | 0%{ opacity: 0; transform: translateY(1rem); } 59 | 100%{ opacity: 1; transform: translateY(0); } 60 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_gallery.scss: -------------------------------------------------------------------------------- 1 | // 2 | // gallery 3 | // 4 | // 5 | 6 | .photo { 7 | @include transition; 8 | @include border-radius; 9 | position: relative; 10 | overflow: hidden; 11 | -webkit-mask-image: -webkit-radial-gradient(white, black); 12 | 13 | img { 14 | width: 100%; 15 | } 16 | 17 | a { 18 | display: block; 19 | margin: 0; 20 | background-size: cover; 21 | background-position: center; 22 | 23 | &::before { 24 | @include border-radius; 25 | @include transition; 26 | opacity: 0; 27 | content: ""; 28 | position: absolute; 29 | top: 0; 30 | right: 0; 31 | bottom: 0; 32 | left: 0; 33 | background: rgba($black, .2); 34 | } 35 | } 36 | 37 | &:hover { 38 | a { 39 | &:before { 40 | opacity: 0.75; 41 | } 42 | } 43 | 44 | .photo-caption { 45 | @include translate(0,0); 46 | opacity: 1; 47 | } 48 | } 49 | 50 | } 51 | 52 | .photo-caption { 53 | @include translate(0,100%); 54 | @include transition; 55 | @include text-shadow(); 56 | position: absolute; 57 | bottom: .625rem; 58 | left: .625rem; 59 | padding: .5rem; 60 | opacity: 0; 61 | color: $white; 62 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_icons.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Icons 3 | // 4 | // 5 | 6 | .icon-boxed { 7 | display: inline-flex; 8 | align-items: center; 9 | justify-content: center; 10 | vertical-align: top; 11 | width: 3.125rem; 12 | height: 3.125rem; 13 | background: $gray-200; 14 | color: #222; 15 | border-radius: 50%; 16 | font-size: $font-size-lg; 17 | 18 | &[class*="-sm"] { 19 | width: 2.5rem; 20 | height: 2.5rem; 21 | } 22 | 23 | &[class*="-lg"] { 24 | width: 5rem; 25 | height: 5rem; 26 | font-size: 1.75rem; 27 | } 28 | 29 | } 30 | 31 | .icon-background { 32 | position: absolute; 33 | top: -15%; 34 | right: -10%; 35 | opacity: .1; 36 | font-size: 12.5rem; 37 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_list-group.scss: -------------------------------------------------------------------------------- 1 | // 2 | // List Group 3 | // 4 | // 5 | 6 | 7 | // minimal 8 | .list-group-minimal { 9 | .list-group-item { 10 | margin-bottom: ($card-spacer-x / 2); 11 | padding: 0; 12 | background: transparent; 13 | border: 0; 14 | 15 | a { 16 | color: inherit; 17 | } 18 | } 19 | } 20 | 21 | 22 | // lines 23 | .list-group-lines { 24 | .list-group-item { 25 | @include border-radius; 26 | background: transparent; 27 | padding: $card-spacer-y; 28 | margin-bottom: ($card-spacer-x / 2); 29 | 30 | &.boxed { 31 | background: $white; 32 | } 33 | 34 | .badge { 35 | @include translate(0,-50%); 36 | position: absolute; 37 | top: 50%; 38 | right: -($card-spacer-x / 2); 39 | } 40 | } 41 | } 42 | 43 | 44 | 45 | // contacts { 46 | .list-group-contacts { 47 | .list-group-item { 48 | background: transparent; 49 | padding: 0; 50 | border: 0; 51 | font-size: $font-size-sm; 52 | color: $gray-600; 53 | 54 | + .list-group-item { 55 | margin-top: 1rem; 56 | } 57 | 58 | span { 59 | display: block; 60 | margin-top: .25em; 61 | font-size: $font-size-lg; 62 | color: $black; 63 | } 64 | } 65 | } 66 | 67 | // related 68 | .list-group-related { 69 | margin-left: -$card-spacer-x; 70 | margin-right: -$card-spacer-x; 71 | 72 | .list-group-item { 73 | @include transition; 74 | background: transparent; 75 | border: 0; 76 | border-radius: 0; 77 | padding: ($card-spacer-x / 2) $card-spacer-x; 78 | color: #999; 79 | font-size: $font-size-sm; 80 | 81 | &:hover { 82 | background: rgba($black, .05); 83 | } 84 | 85 | &.active { 86 | color: $body-color; 87 | 88 | &::before, 89 | &:hover::before { 90 | opacity: 1; 91 | } 92 | } 93 | 94 | &:hover { 95 | &::before { 96 | opacity: .25; 97 | } 98 | } 99 | } 100 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_logs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Logs 3 | // 4 | // 5 | 6 | .log-list { 7 | list-style: none; 8 | padding: 0; 9 | } 10 | 11 | .log-info { 12 | @include transition; 13 | position: relative; 14 | display: inline-block; 15 | border: $border-width solid $border-color; 16 | border-radius: $border-radius; 17 | background: $gray-100; 18 | margin-bottom: $grid-gutter-width; 19 | padding: ($card-spacer-x / 2) $card-spacer-x; 20 | 21 | time { 22 | display: inline-block; 23 | vertical-align: middle; 24 | } 25 | 26 | .badge { 27 | margin-right: -($card-spacer-x * 1.5); 28 | margin-left: $card-spacer-y; 29 | } 30 | } 31 | 32 | .log { 33 | position: relative; 34 | text-align: center; 35 | 36 | &::before { 37 | position: absolute; 38 | content: ""; 39 | display: block; 40 | width: $border-width; 41 | height: 100%; 42 | left: 50%; 43 | background: $border-color; 44 | z-index: -1; 45 | } 46 | 47 | &:not(:first-child) { 48 | margin-top: $grid-gutter-width; 49 | 50 | &::before { 51 | height: calc(100% + $grid-gutter-width); 52 | top: -$grid-gutter-width; 53 | } 54 | } 55 | 56 | .accordion { 57 | text-align: left; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /docs/assets/scss/components/_maps.scss: -------------------------------------------------------------------------------- 1 | // Maps 2 | // 3 | // 4 | // 5 | 6 | .map { 7 | > [class*="container"] { 8 | position: static; 9 | visibility: hidden; 10 | 11 | [class*="col"] { 12 | visibility: visible; 13 | position: relative; 14 | z-index: 20; 15 | } 16 | } 17 | } 18 | 19 | .map-area { 20 | position: absolute; 21 | top: 0; 22 | right: 0; 23 | bottom: 0; 24 | left: 0; 25 | z-index: 10; 26 | } 27 | 28 | .map-box { 29 | @extend %boxed; 30 | @extend %equal; 31 | position: relative; 32 | } 33 | 34 | 35 | // Responsive 36 | // 37 | // 38 | // responsive styles for maps 39 | @include media-breakpoint-down(md) { 40 | .map { 41 | padding-bottom: 50vh; 42 | } 43 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_masonry.scss: -------------------------------------------------------------------------------- 1 | // 2 | // masonry 3 | // 4 | // 5 | 6 | 7 | .masonry { 8 | padding: 0; 9 | list-style: none; 10 | 11 | > li { 12 | position: relative; 13 | } 14 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_nav.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Nav 3 | // 4 | // 5 | 6 | .nav { 7 | position: relative; 8 | 9 | .nav-item { 10 | display: inline-block; 11 | } 12 | 13 | .nav-link { 14 | @include transition; 15 | display: inline-block; 16 | color: $gray-600; 17 | 18 | &.active { 19 | color: $gray-900; 20 | } 21 | } 22 | 23 | .lavalamp-object { 24 | display: none; 25 | z-index: 1; 26 | } 27 | } 28 | 29 | 30 | 31 | // pills 32 | .nav-pills { 33 | display: inline-flex; 34 | background: $border-color; 35 | border-radius: $border-radius; 36 | padding: 2px; 37 | 38 | .nav-link { 39 | text-transform: uppercase; 40 | font-size: $font-size-sm; 41 | font-weight: 600; 42 | color: #999; 43 | 44 | &.active { 45 | background: transparent; 46 | } 47 | } 48 | 49 | .lavalamp-object { 50 | display: block; 51 | position: absolute; 52 | top: 0; 53 | left: 0; 54 | background: $white; 55 | border-radius: $border-radius; 56 | } 57 | } 58 | 59 | // tabs 60 | .nav-tabs { 61 | .nav-link { 62 | border: 0; 63 | } 64 | 65 | .nav-link.active, 66 | .nav-item.show .nav-link { 67 | background-color: transparent; 68 | } 69 | 70 | .lavalamp-object { 71 | display: block; 72 | position: absolute; 73 | top: 0; 74 | left: 0; 75 | background: transparent; 76 | border-bottom: 2px solid $primary; 77 | border-radius: 0; 78 | } 79 | } 80 | 81 | 82 | 83 | // card variations 84 | // 85 | 86 | .card-header-tabs { 87 | margin: -$card-spacer-x; 88 | margin-bottom: -$card-spacer-x!important; 89 | 90 | &:not(.nav-justified) { 91 | margin-left: 0; 92 | margin-right: 0; 93 | } 94 | 95 | .nav-item a { 96 | display: block; 97 | line-height: 1.875rem; 98 | padding-top: $card-spacer-y; 99 | padding-bottom: $card-spacer-y; 100 | } 101 | } 102 | 103 | .card-header-pills { 104 | margin-top: 10px; 105 | margin-right: 0; 106 | margin-left: 0; 107 | } 108 | 109 | 110 | // toc page 111 | .nav-toc-page { 112 | position: relative; 113 | margin-top: 40px; 114 | padding: ($card-spacer-x / 2); 115 | border: $border-width solid $border-color; 116 | border-radius: $border-radius; 117 | border-top-left-radius: 0; 118 | 119 | &::before { 120 | @extend %eyebrow; 121 | position: absolute; 122 | top: -40px; 123 | left: -$border-width; 124 | content: "Table of Contents"; 125 | padding: 0 $card-spacer-x; 126 | line-height: 40px; 127 | color: $gray-500; 128 | font-size: .75rem; 129 | background: $border-color; 130 | border-top-left-radius: $border-radius; 131 | border-top-right-radius: $border-radius; 132 | } 133 | 134 | &.boxed { 135 | &::before { 136 | background: $white; 137 | border-top: $border-width solid $border-color; 138 | border-right: $border-width solid $border-color; 139 | border-left: $border-width solid $border-color; 140 | } 141 | } 142 | 143 | .nav-item { 144 | counter-increment: item; 145 | } 146 | 147 | .nav-link { 148 | position: relative; 149 | width: 100%; 150 | font-size: .9375rem; 151 | color: $gray-700; 152 | border-radius: $border-radius; 153 | padding: ($card-spacer-x / 2); 154 | 155 | &::before { 156 | position: absolute; 157 | right: $card-spacer-x / 2; 158 | color: $gray-600; 159 | content: "0" counter(item); 160 | } 161 | 162 | &::after { 163 | @include transition; 164 | opacity: 0; 165 | margin-left: 1rem; 166 | content: "view now"; 167 | text-transform: uppercase; 168 | letter-spacing: $letter-spacing; 169 | font-size: 12px; 170 | color: #999; 171 | } 172 | 173 | &:hover { 174 | background: $border-color; 175 | color: $black; 176 | 177 | &::after { 178 | opacity: 1; 179 | } 180 | } 181 | } 182 | } 183 | 184 | 185 | // vertical nav 186 | .nav-vertical { 187 | width: 100%; 188 | border-radius: $border-radius; 189 | padding: .625rem; 190 | 191 | .nav-item { 192 | &:not(:first-child) { margin-top: 2px; } 193 | } 194 | 195 | .nav-link { 196 | border-radius: $border-radius; 197 | display: block; 198 | padding: 1.25rem; 199 | 200 | &:hover, 201 | &.active { 202 | color: $body-color; 203 | background: rgba($black, .05); 204 | } 205 | 206 | &[aria-expanded] { 207 | position: relative; 208 | 209 | &::after { 210 | position: absolute; 211 | content: "\ebfa"; 212 | width: 1em; 213 | line-height: 1em; 214 | right: 1rem; 215 | top: 50%; 216 | font-family: 'icomoon' !important; 217 | font-size: 1.2rem; 218 | margin-top: -0.5em; 219 | color: $secondary; 220 | @include transition(0.2s); 221 | } 222 | } 223 | 224 | &[aria-expanded="true"] { 225 | &::after { 226 | @include rotate(180deg); 227 | } 228 | } 229 | } 230 | 231 | .nav { 232 | margin-top: 2px; 233 | 234 | .nav-link { 235 | padding: .5rem 1.25rem .5rem 1.875rem; 236 | font-size: $font-size-sm; 237 | } 238 | } 239 | } 240 | 241 | // vertical nav 2 242 | .nav-vertical-2 { 243 | width: 100%; 244 | 245 | .nav-item { 246 | @include transition; 247 | 248 | &.active { 249 | padding-bottom: ($card-spacer-x / 2); 250 | } 251 | } 252 | 253 | .nav-link { 254 | color: $black; 255 | display: block; 256 | border-right: 2px solid transparent; 257 | padding: ($card-spacer-x / 2) $card-spacer-x; 258 | 259 | &:hover { 260 | background: rgba($black, .05); 261 | } 262 | 263 | &.active { 264 | color: $primary; 265 | border-color: $primary; 266 | } 267 | 268 | &[aria-expanded] { 269 | position: relative; 270 | 271 | &::after { 272 | position: absolute; 273 | content: "\ebfa"; 274 | width: 1em; 275 | line-height: 1em; 276 | right: $card-spacer-x; 277 | top: 50%; 278 | font-family: 'icomoon' !important; 279 | font-size: 1.2rem; 280 | margin-top: -0.5em; 281 | color: $secondary; 282 | @include transition(0.2s); 283 | } 284 | } 285 | 286 | &[aria-expanded="true"] { 287 | &::after { 288 | @include rotate(180deg); 289 | } 290 | } 291 | } 292 | 293 | .nav { 294 | margin-top: 2px; 295 | 296 | .nav-link { 297 | padding: .5rem 1.25rem .5rem 1.875rem; 298 | font-size: $font-size-sm; 299 | color: $gray-700; 300 | 301 | &.active { 302 | color: $primary; 303 | } 304 | } 305 | } 306 | } 307 | 308 | 309 | // dots 310 | .nav-dots { 311 | @include translate(0,-50%); 312 | position: fixed; 313 | top: 50%; 314 | right: ($grid-gutter-width * 2); 315 | z-index: 50; 316 | width: .75rem; 317 | 318 | @include media-breakpoint-down(sm) { 319 | display: none; 320 | } 321 | 322 | .nav-item { 323 | display: block; 324 | 325 | + .nav-item { 326 | margin-top: 1rem; 327 | } 328 | } 329 | 330 | .nav-link { 331 | position: relative; 332 | display: block; 333 | width: .75rem; 334 | height: .75rem; 335 | border-radius: 50%; 336 | padding: 0; 337 | text-align: center; 338 | line-height: 50px; 339 | color: $white; 340 | box-shadow: inset 0 0 0 10px rgba($black, .25); 341 | 342 | &:hover { 343 | box-shadow: inset 0 0 0 10px rgba($black, .5); 344 | } 345 | 346 | &.active { 347 | @include scale(1.4); 348 | box-shadow: inset 0 0 0 2px rgba($black, .5); 349 | } 350 | } 351 | } 352 | 353 | 354 | 355 | // inverted colors 356 | .text-white { 357 | .nav { 358 | .nav-link { 359 | color: rgba($white, .5); 360 | 361 | &:hover, 362 | &.active { 363 | color: $white; 364 | background: rgba($white, .1); 365 | } 366 | 367 | &[aria-expanded] { 368 | position: relative; 369 | 370 | &::after { 371 | color: rgba($white, .5); 372 | } 373 | } 374 | } 375 | } 376 | } 377 | 378 | 379 | 380 | // scroll 381 | .scroll { 382 | max-height: 100vh; 383 | overflow-y: scroll; 384 | } 385 | 386 | 387 | 388 | // overlay menu for layout-1 on mobile 389 | html.active, 390 | html.active > body { 391 | overflow: hidden; 392 | } 393 | 394 | .overlay-menu-open { display: none; } 395 | 396 | @include media-breakpoint-down(md) { 397 | .overlay-menu-open { 398 | @include transition; 399 | position: fixed; 400 | bottom: ($grid-gutter-width / 2); 401 | left: ($grid-gutter-width / 2); 402 | right: ($grid-gutter-width / 2); 403 | display: block; 404 | height: 60px; 405 | text-align: center; 406 | line-height: 60px; 407 | background: $primary; 408 | color: $white; 409 | border-radius: $border-radius; 410 | cursor: pointer; 411 | z-index: 120; 412 | 413 | &:focus { 414 | background: darken($primary, 7.5%); 415 | } 416 | 417 | &:before { 418 | content: "Table of Contents"; 419 | position: absolute; 420 | top: 0; 421 | left: 0; 422 | right: 0; 423 | text-align: center; 424 | line-height: 60px; 425 | text-transform: uppercase; 426 | font-size: $font-size-sm; 427 | letter-spacing: $letter-spacing; 428 | font-weight: 600; 429 | } 430 | 431 | &.active { 432 | bottom: ($grid-gutter-width / 2)!important; 433 | 434 | &::before { 435 | content: "Close"; 436 | } 437 | } 438 | } 439 | 440 | .overlay-menu { 441 | @include transition; 442 | position: fixed; 443 | top: 100%; 444 | left: 0; 445 | bottom: 0; 446 | right: 0; 447 | z-index: 100; 448 | margin: 0!important; 449 | padding: 0; 450 | border: 0; 451 | border-radius: 0; 452 | overflow-x: scroll; 453 | 454 | .nav-vertical { 455 | margin-bottom: 80px; 456 | } 457 | 458 | &.active { 459 | top: 0; 460 | } 461 | } 462 | 463 | .headroom--unpinned { 464 | .overlay-menu-open { 465 | top: auto; 466 | bottom: -($grid-gutter-width / 2 + 60px); 467 | } 468 | } 469 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_navbar.scss: -------------------------------------------------------------------------------- 1 | // 2 | // navbar 3 | // 4 | // 5 | 6 | .navbar { 7 | @include media-breakpoint-up(lg) { 8 | padding-top: 0; 9 | padding-bottom: 0; 10 | } 11 | } 12 | 13 | .navbar-nav { 14 | 15 | .nav-item { 16 | @include media-breakpoint-up(lg) { 17 | + .nav-item { 18 | margin-left: .5rem; 19 | } 20 | } 21 | } 22 | 23 | .nav-link { 24 | @include transition; 25 | font-size: $font-size-sm; 26 | text-transform: uppercase; 27 | 28 | @include media-breakpoint-up(lg) { 29 | padding: .9375rem; 30 | line-height: 2.375rem; 31 | border-top: $border-width solid transparent; 32 | 33 | &:hover { 34 | border-color: $border-color; 35 | } 36 | 37 | &.active { 38 | border-color: $white; 39 | } 40 | } 41 | } 42 | 43 | @include media-breakpoint-down(md) { 44 | margin-top: $grid-gutter-width; 45 | } 46 | } 47 | 48 | .navbar-brand { 49 | margin-right: $grid-gutter-width; 50 | padding: 0; 51 | 52 | img { 53 | max-height: 2.375rem; 54 | } 55 | } 56 | 57 | .navbar-toggler { 58 | padding: 0; 59 | border: 0; 60 | } 61 | 62 | 63 | 64 | 65 | // vertical 66 | .navbar-vertical { 67 | display: block; 68 | padding: 0; 69 | 70 | 71 | .navbar-collapse { 72 | margin-top: $card-spacer-x; 73 | margin-right: -$card-spacer-x; 74 | margin-left: -$card-spacer-x; 75 | } 76 | 77 | .nav-vertical { 78 | padding: 0; 79 | } 80 | } 81 | 82 | 83 | // Vendor prefixes 84 | $sass-burger-add-vendor-prefixes: true !default; 85 | 86 | // Burger 87 | @mixin burger($width: 30px, $height: 5px, $gutter: 3px, $color: $white, $border-radius: 0, $transition-duration: .3s) { 88 | $burger-height: $height !global; 89 | $burger-gutter: $gutter !global; 90 | 91 | position: relative; 92 | margin-top: $height + $gutter; 93 | margin-bottom: $height + $gutter; 94 | 95 | @if $sass-burger-add-vendor-prefixes { 96 | @include prefix(user-select, none, webkit moz ms); 97 | } 98 | user-select: none; 99 | 100 | // 1. Fixes jagged edges in Firefox, see issue #10. 101 | &, &::before, &::after { 102 | display: block; 103 | width: $width; 104 | height: $height; 105 | background-color: $white; 106 | outline: 1px solid transparent; // 1 107 | @if $border-radius != 0 { 108 | border-radius: $border-radius; 109 | } 110 | 111 | @if $sass-burger-add-vendor-prefixes { 112 | @include prefix(transition-property, background-color, webkit moz o); 113 | } 114 | transition-property: background-color, transform; 115 | 116 | @if $sass-burger-add-vendor-prefixes { 117 | @include prefix(transition-duration, $transition-duration, webkit moz o); 118 | } 119 | transition-duration: $transition-duration; 120 | } 121 | 122 | &::before, &::after { 123 | position: absolute; 124 | content: ""; 125 | } 126 | 127 | &::before { 128 | top: -($height + $gutter); 129 | } 130 | 131 | &::after { 132 | top: $height + $gutter; 133 | } 134 | } 135 | 136 | 137 | // Burger animations 138 | @mixin burger-to-cross($color: auto) { 139 | & { 140 | background-color: transparent; 141 | } 142 | @if ($color != auto) { 143 | &::before, &::after { 144 | background-color: $color; 145 | } 146 | } 147 | &::before { 148 | @if $sass-burger-add-vendor-prefixes { 149 | @include prefix(transform, translateY($burger-gutter + $burger-height) rotate(45deg), webkit moz ms o); 150 | } 151 | transform: translateY($burger-gutter + $burger-height) rotate(45deg); 152 | } 153 | &::after { 154 | @if $sass-burger-add-vendor-prefixes { 155 | @include prefix(transform, translateY(-($burger-gutter + $burger-height)) rotate(-45deg), webkit moz ms o); 156 | } 157 | transform: translateY(-($burger-gutter + $burger-height)) rotate(-45deg); 158 | } 159 | } 160 | 161 | .burger { 162 | display: inline-block; 163 | position: relative; 164 | width: 2.375rem; 165 | height: 2.375rem; 166 | z-index: 100; 167 | 168 | span { 169 | @include burger(20px, 2px, 4px, $black); 170 | position: absolute; 171 | top: 50%; 172 | left: 50%; 173 | margin-left: -10px; 174 | margin-top: -1.5px; 175 | } 176 | 177 | &:hover { 178 | cursor: pointer; 179 | } 180 | } 181 | 182 | .navbar.active { 183 | .burger { 184 | span { 185 | @include burger-to-cross(); 186 | } 187 | } 188 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_pagination.scss: -------------------------------------------------------------------------------- 1 | // 2 | // pagination 3 | // 4 | // 5 | 6 | .pagination { 7 | .page-item { 8 | + .page-item { 9 | margin-left: .5rem; 10 | } 11 | } 12 | 13 | .page-link { 14 | @include transition; 15 | @include shadow(0, $border-width, $gray-300); 16 | box-sizing: content-box; 17 | width: $pagination-line-height; 18 | line-height: $pagination-line-height; 19 | text-align: center; 20 | border-radius: 50%!important; 21 | font-size: $font-size-sm; 22 | font-weight: 600; 23 | 24 | &:not(.active) { 25 | &:hover { 26 | @extend %boxed; 27 | border: 0; 28 | } 29 | } 30 | 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /docs/assets/scss/components/_tables.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Tables 3 | // 4 | // 5 | 6 | .table { 7 | border-radius: $border-radius; 8 | 9 | th { 10 | font-weight: 400; 11 | color: $gray-600; 12 | } 13 | 14 | th, 15 | td { 16 | padding: $table-cell-padding-sm $table-cell-padding; 17 | } 18 | 19 | thead { 20 | th { 21 | border-bottom: 0; 22 | border-top: 0; 23 | } 24 | } 25 | 26 | &.boxed { 27 | th, 28 | td { 29 | border-top: 0; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_tabs.scss: -------------------------------------------------------------------------------- 1 | // 2 | // tabs 3 | // 4 | // 5 | 6 | .section-tabs { 7 | margin-top: -$section-padding; 8 | margin-bottom: ($section-padding / 2); 9 | border-bottom: $border-width solid $border-color; 10 | 11 | .nav { 12 | margin-bottom: -$border-width; 13 | } 14 | 15 | .nav-item a { 16 | padding: $card-spacer-x ($card-spacer-x * 2); 17 | } 18 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_users.scss: -------------------------------------------------------------------------------- 1 | // 2 | // users 3 | // 4 | // 5 | 6 | .user { 7 | display: inline-block; 8 | position: relative; 9 | 10 | &.status { 11 | &::after { 12 | content: ""; 13 | position: absolute; 14 | right: 1px; 15 | bottom: 1px; 16 | display: block; 17 | width: 12px; 18 | height: 12px; 19 | border-radius: 50%; 20 | background: $gray-200; 21 | } 22 | 23 | &.online::after { 24 | background: $green; 25 | } 26 | } 27 | } 28 | 29 | .avatar { 30 | position: relative; 31 | display: inline-flex; 32 | align-items: center; 33 | justify-content: center; 34 | vertical-align: top; 35 | width: 3.75rem; 36 | height: 3.75rem; 37 | border-radius: 50%; 38 | font-size: $font-size-sm; 39 | text-transform: uppercase; 40 | letter-spacing: $letter-spacing; 41 | font-weight: $font-weight-bold; 42 | 43 | > i { 44 | font-size: $font-size-lg; 45 | } 46 | 47 | &[class*="-sm"] { 48 | width: 2.5rem; 49 | height: 2.5rem; 50 | font-size: 0.875rem; 51 | 52 | > i { 53 | font-size: 1rem; 54 | } 55 | } 56 | 57 | &[class*="-lg"] { 58 | width: 5rem; 59 | height: 5rem; 60 | font-size: 1.125rem; 61 | 62 | > i { 63 | font-size: 1.375rem; 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /docs/assets/scss/components/_video.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Video 3 | // 4 | 5 | .video-js { 6 | @include shadow; 7 | position: absolute; 8 | width: 100% !important; 9 | height: 100% !important; 10 | left: 0; 11 | top: 0; 12 | z-index: 50; 13 | background: transparent; 14 | 15 | .vjs-poster { 16 | border-radius: $border-radius; 17 | } 18 | 19 | iframe { 20 | border-radius: $border-radius; 21 | } 22 | } 23 | 24 | .video-3-4 { 25 | position: relative; 26 | width: 100%; 27 | height: 0; 28 | padding-bottom: 42.6%; 29 | } 30 | 31 | .video-16-9 { 32 | position: relative; 33 | width: 100%; 34 | height: 0; 35 | padding-bottom: 56.25%; 36 | } 37 | 38 | .youtube { 39 | .vjs-control-bar { 40 | display: none; 41 | } 42 | } 43 | 44 | 45 | 46 | // play button 47 | .video-js { 48 | 49 | &.vjs-waiting { 50 | .vjs-big-play-button { 51 | @include transition; 52 | @include scale(2); 53 | opacity: 0; 54 | } 55 | } 56 | 57 | .vjs-big-play-button { 58 | @include transition; 59 | @include shadow; 60 | top: 50%; 61 | left: 50%; 62 | background: $white; 63 | opacity: 1; 64 | width: 5rem; 65 | height: 5rem; 66 | margin-top: -2.5rem; 67 | margin-left: -2.5rem; 68 | border-radius: 50%; 69 | border: 0; 70 | 71 | .vjs-icon-placeholder:before { 72 | @include transition; 73 | @include translate(-50%,-50%); 74 | position: absolute; 75 | top: 50%; 76 | left: 50%; 77 | color: $black; 78 | } 79 | } 80 | 81 | &:hover { 82 | .vjs-big-play-button { 83 | background: $primary; 84 | 85 | .vjs-icon-placeholder:before { 86 | color: $white; 87 | } 88 | } 89 | } 90 | } 91 | 92 | // .video-js .vjs-big-play-button { 93 | // top: 50%; 94 | // left: 50%; 95 | // width: 80px; 96 | // height: 80px; 97 | // margin: -40px 0 0 -40px; 98 | // line-height: 80px; 99 | // font-size: 40px; 100 | // background: none; 101 | // color: $white; 102 | // border: 0; 103 | // z-index: 5; 104 | // @include transition(); 105 | 106 | // &::before { 107 | // @include transition(); 108 | // position: absolute; 109 | // top: 50%; 110 | // left: 50%; 111 | // margin-top: -40px; 112 | // margin-left: -40px; 113 | // display: block; 114 | // width: 80px; 115 | // height: 80px; 116 | // line-height: 80px; 117 | // text-align: center; 118 | // cursor: pointer; 119 | // border: 2px solid $white; 120 | // content: ""; 121 | // font-size: 20px; 122 | // color: $black; 123 | // border-radius: 50%; 124 | // } 125 | // } 126 | 127 | // .video-js:hover .vjs-big-play-button { 128 | // background: none; 129 | 130 | // &::before { 131 | // @include scale(1.2); 132 | // } 133 | // } -------------------------------------------------------------------------------- /docs/assets/scss/components/_widgets.scss: -------------------------------------------------------------------------------- 1 | // 2 | // widgets 3 | // 4 | // 5 | 6 | 7 | 8 | // tags 9 | .tags { 10 | margin: -.25rem; 11 | overflow: hidden; 12 | 13 | a { 14 | @include transition; 15 | @include shadow(0, $border-width, $border-color); 16 | float: left; 17 | display: block; 18 | margin: .25rem; 19 | padding: .5rem .75rem; 20 | font-size: $font-size-sm; 21 | color: $gray-700; 22 | border-radius: $border-radius; 23 | 24 | &:hover { 25 | @extend %boxed; 26 | border: 0; 27 | } 28 | } 29 | } 30 | 31 | 32 | // numbers 33 | .number { 34 | text-align: center; 35 | 36 | span { 37 | font-size: 3rem; 38 | text-transform: uppercase; 39 | color: $black; 40 | } 41 | 42 | p { 43 | font-size: $font-size-sm; 44 | } 45 | 46 | @include media-breakpoint-down(sm) { 47 | padding-top: $card-spacer-x; 48 | padding-bottom: $card-spacer-x; 49 | } 50 | } 51 | 52 | 53 | // type component 54 | .type { 55 | @extend %equal; 56 | 57 | > * { 58 | padding: $card-spacer-x; 59 | 60 | @include media-breakpoint-down(sm) { 61 | padding: $card-spacer-y; 62 | } 63 | } 64 | 65 | .badge { 66 | position: absolute; 67 | top: $card-spacer-y; 68 | right: -$card-spacer-y; 69 | } 70 | } 71 | 72 | .type-title { 73 | font-family: $font-family-sans-serif; 74 | font-weight: $font-weight-normal; 75 | font-size: $font-size-sm; 76 | color: $body-color; 77 | } 78 | 79 | .type-example { 80 | position: absolute; 81 | left: $card-spacer-x; 82 | bottom: $card-spacer-x; 83 | 84 | @include media-breakpoint-down(sm) { 85 | left: $card-spacer-y; 86 | bottom: $card-spacer-y; 87 | } 88 | 89 | span { 90 | font-size: 3.125rem; 91 | line-height: 1em; 92 | color: $black; 93 | } 94 | } 95 | 96 | 97 | // color component 98 | .color { 99 | display: flex; 100 | align-items: center; 101 | padding: 10px; 102 | border-radius: 10rem; 103 | 104 | .color-example { 105 | width: 80px; 106 | height: 80px; 107 | margin-right: 20px; 108 | border-radius: 50%; 109 | } 110 | 111 | .color-info { 112 | flex: 1; 113 | 114 | span { 115 | font-size: $font-size-sm; 116 | color: $gray-600; 117 | text-transform: uppercase; 118 | } 119 | } 120 | 121 | .color-title { 122 | font-family: $font-family-sans-serif; 123 | font-size: $font-size-lg; 124 | font-weight: 500; 125 | margin-bottom: 0; 126 | } 127 | } 128 | 129 | 130 | // page meta 131 | .page-meta-stat { 132 | display: flex; 133 | justify-content: center; 134 | align-items: center; 135 | 136 | b { 137 | color: $white; 138 | margin-right: .625rem; 139 | font-weight: 700; 140 | } 141 | 142 | span { 143 | font-size: $font-size-sm; 144 | text-transform: uppercase; 145 | letter-spacing: $letter-spacing; 146 | color: rgba($white, .75); 147 | } 148 | } 149 | 150 | 151 | // file tree 152 | .file-tree { 153 | margin-bottom: 0; 154 | padding-left: 20px; 155 | list-style: none; 156 | overflow: hidden; 157 | 158 | ul { 159 | list-style: none; 160 | display: none; 161 | padding-left: $card-spacer-x; 162 | } 163 | 164 | li { 165 | position: relative; 166 | padding: 5px 0; 167 | border-radius: $border-radius; 168 | cursor: auto; 169 | white-space: nowrap; 170 | font-size: $font-size-sm; 171 | font-weight: 600; 172 | 173 | &::before { 174 | content: "\f15b"; 175 | display: inline-block; 176 | text-align: center; 177 | width: $card-spacer-x; 178 | margin-right: .25rem; 179 | vertical-align: middle; 180 | font-family: 'icomoon' !important; 181 | font-size: 1rem; 182 | color: $secondary; 183 | } 184 | 185 | span { 186 | color: $gray-600; 187 | font-weight: $font-weight-normal; 188 | font-size: .75rem; 189 | } 190 | } 191 | 192 | .file-tree-folder { 193 | @include transition; 194 | cursor: pointer; 195 | 196 | &::before { 197 | content: "\f07b"; 198 | font-size: 1.25rem; 199 | } 200 | 201 | &.open { 202 | &::after { 203 | @include rotate(180deg); 204 | } 205 | 206 | > ul { 207 | display: block; 208 | } 209 | } 210 | 211 | &::after { 212 | @include transition; 213 | position: absolute; 214 | top: .8rem; 215 | left: -1em; 216 | content: "\ebfa"; 217 | display: block; 218 | text-align: center; 219 | width: 1em; 220 | line-height: 1em; 221 | font-family: 'icomoon' !important; 222 | font-size: 1rem; 223 | color: $secondary; 224 | } 225 | 226 | &.open { 227 | &::before { content: "\f07c"; } 228 | } 229 | 230 | &.empty { 231 | &::after { 232 | display: none; 233 | } 234 | } 235 | } 236 | } 237 | 238 | 239 | // toc 240 | .toc { 241 | 242 | .nav-link { 243 | @include transition; 244 | position: relative; 245 | width: 100%; 246 | color: $gray-600; 247 | font-size: $font-size-sm; 248 | border-left: 2px solid transparent; 249 | padding: .5rem $card-spacer-x; 250 | 251 | &:hover { 252 | color: $black; 253 | border-color: $gray-500; 254 | } 255 | 256 | &.active { 257 | color: $primary; 258 | border-color: $primary; 259 | 260 | + ul { 261 | display: block; 262 | } 263 | } 264 | } 265 | 266 | ul { 267 | border-left: 2px solid $primary; 268 | display: none; 269 | padding-left: $card-spacer-x; 270 | 271 | .nav-link { 272 | font-size: $font-size-sm; 273 | border-color: $border-color; 274 | } 275 | } 276 | 277 | } 278 | 279 | 280 | 281 | .step-list { 282 | list-style: none; 283 | margin-top: 40px; 284 | margin-bottom: 40px; 285 | padding-left: 55px; 286 | 287 | li { 288 | position: relative; 289 | min-height: 40px; 290 | counter-increment: item; 291 | 292 | &:not(:first-child) { 293 | margin-top: 20px; 294 | } 295 | 296 | &::before { 297 | @include translate(0,-50%); 298 | position: absolute; 299 | top: .9em; 300 | left: -55px; 301 | content: counter(item); 302 | color: $white; 303 | font-weight: 600; 304 | line-height: 36px; 305 | text-align: center; 306 | display: block; 307 | width: 40px; 308 | height: 40px; 309 | background: $secondary; 310 | border-radius: 50%; 311 | border: 2px solid $secondary; 312 | } 313 | 314 | li { 315 | 316 | &::before { 317 | color: $secondary; 318 | background: transparent; 319 | border-color: $secondary; 320 | } 321 | 322 | &:not(:first-child) { 323 | margin-top: .5rem; 324 | } 325 | } 326 | } 327 | 328 | ul, ol { 329 | padding-left: 45px; 330 | margin-top: 20px; 331 | margin-bottom: 20px; 332 | list-style: none; 333 | counter-reset: item; 334 | } 335 | 336 | // p { 337 | // &:not(:last-child) { 338 | // margin-bottom: 10px; 339 | // } 340 | // } 341 | } 342 | 343 | 344 | 345 | // figure 346 | .figure { 347 | position: relative; 348 | 349 | .figure-img { 350 | margin-bottom: 0; 351 | } 352 | 353 | .figure-caption { 354 | @extend %boxed; 355 | @include translate(0,50%); 356 | position: absolute; 357 | left: ($card-spacer-x / 2); 358 | bottom: 0; 359 | max-width: 90%; 360 | padding: 5px 15px; 361 | font-size: $font-size-sm; 362 | 363 | &.text-right { 364 | left: auto; 365 | right: ($card-spacer-x / 2); 366 | } 367 | } 368 | } 369 | 370 | 371 | 372 | // cta 373 | .cta { 374 | position: relative; 375 | overflow: hidden; 376 | 377 | .icon-background { 378 | top: -2.5%; 379 | right: -2.5%; 380 | opacity: .25; 381 | z-index: 5; 382 | } 383 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/__layout.scss: -------------------------------------------------------------------------------- 1 | @import 'mixins'; 2 | @import 'helpers'; 3 | @import 'colors'; 4 | @import 'typography'; 5 | @import 'forms'; 6 | @import 'custom-forms'; 7 | @import 'spacing'; 8 | @import 'sizing'; 9 | @import 'hero'; 10 | @import 'header'; 11 | @import 'content'; 12 | @import 'icons'; 13 | @import 'sidebar'; -------------------------------------------------------------------------------- /docs/assets/scss/layout/_colors.scss: -------------------------------------------------------------------------------- 1 | // 2 | // colors 3 | // 4 | // 5 | 6 | // background 7 | @each $color, $value in $colors { 8 | @include bg-variant(".bg-#{$color}", $value); 9 | } 10 | 11 | @each $color, $value in $grays { 12 | @include bg-variant(".bg-#{$color}", $value); 13 | } 14 | 15 | // text 16 | @each $color, $value in $colors { 17 | @include text-emphasis-variant(".text-#{$color}", $value); 18 | } 19 | 20 | @each $color, $value in $socials { 21 | @include text-emphasis-variant(".text-#{$color}", $value); 22 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_content.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Content 3 | // 4 | 5 | body { 6 | position: relative; 7 | -webkit-font-smoothing: antialiased; 8 | -moz-osx-font-smoothing: grayscale; 9 | } 10 | 11 | 12 | // page 13 | body { 14 | > section, 15 | > footer { 16 | position: relative; 17 | margin: 0 auto; 18 | padding: 6.25rem 0; 19 | overflow: hidden; 20 | } 21 | } 22 | 23 | .row { 24 | + .row { 25 | margin-top: 2.5rem; 26 | } 27 | } 28 | 29 | .container-fluid { max-width: 1600px; } 30 | .container-full { 31 | padding-right: ($grid-gutter-width / 2); 32 | padding-left: ($grid-gutter-width / 2); 33 | } 34 | 35 | 36 | // article 37 | article { 38 | > section { 39 | &:not(:first-child) { 40 | margin-top: ($section-padding / 2); 41 | } 42 | 43 | > .row { 44 | margin-top: $grid-gutter-width; 45 | margin-bottom: $grid-gutter-width; 46 | } 47 | } 48 | } 49 | 50 | 51 | // text white 52 | .text-white { 53 | 54 | [class*="separator"], 55 | &[class*="separator"] { 56 | border-color: rgba($white, .1); 57 | } 58 | } 59 | 60 | // page Progress 61 | .page-progress { 62 | display: inline-block; 63 | height: 100px; 64 | width: 4px; 65 | background: $gray-300; 66 | border-radius: 2px; 67 | 68 | div { 69 | width: 4px; 70 | border-radius: 2px; 71 | background: $gray-800; 72 | } 73 | } 74 | 75 | 76 | // content 77 | .content-body { 78 | padding: ($grid-gutter-width * 1.5); 79 | 80 | @include media-breakpoint-down(md) { 81 | padding: $card-spacer-y; 82 | } 83 | 84 | > section { 85 | &:not(:first-of-type) { 86 | margin-top: ($section-padding / 2); 87 | } 88 | } 89 | } 90 | 91 | .content-aside { 92 | padding: 0; 93 | } 94 | 95 | .content-header { 96 | margin: -($card-spacer-x * 1.5); 97 | margin-bottom: ($card-spacer-x * 1.5); 98 | padding: ($card-spacer-x * 1.5); 99 | border-bottom: $border-width solid $border-color; 100 | } 101 | 102 | .content-footer { 103 | margin: -($card-spacer-x * 1.5); 104 | margin-top: ($card-spacer-x * 1.5); 105 | padding: ($card-spacer-x * 1.5); 106 | border-top: $border-width solid $border-color; 107 | } 108 | 109 | 110 | // 111 | // separator 112 | // 113 | [class*="separator"] { 114 | border-width: 0; 115 | border-color: $border-color; 116 | border-style: solid; 117 | 118 | &[class*="-top"] { border-top-width: $border-width; } 119 | &[class*="-right"] { border-right-width: $border-width; } 120 | &[class*="-bottom"] { border-bottom-width: $border-width; } 121 | &[class*="-left"] { border-left-width: $border-width; } 122 | } 123 | 124 | 125 | // half 126 | .half { 127 | position: relative; 128 | padding: 10px 0; 129 | 130 | .half-bg { 131 | position: absolute; 132 | content: ""; 133 | top: 50%; 134 | width: 100%; 135 | height: 50%; 136 | 137 | .image { 138 | z-index: 1; 139 | } 140 | } 141 | } 142 | 143 | 144 | 145 | // sticky 146 | .sticky { 147 | @include transition(.4s); 148 | 149 | &.is_stuck { 150 | @include translate(0,($card-spacer-x / 2)); 151 | } 152 | } 153 | 154 | .headroom--pinned { 155 | .sticky-with-header.is_stuck { 156 | @include translate(0, $section-padding); // header height 157 | } 158 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_custom-forms.scss: -------------------------------------------------------------------------------- 1 | // forms 2 | // 3 | // 4 | // 5 | 6 | 7 | // select 8 | .bootstrap-select { 9 | position: relative; 10 | 11 | .btn { 12 | @include shadow(5px, $border-width, rgba($border-color, .5)); 13 | background: $white; 14 | 15 | &:focus { 16 | outline: none!important; 17 | box-shadow: none; 18 | } 19 | } 20 | 21 | &.form-control { 22 | .btn { padding: $btn-padding-y; } 23 | } 24 | 25 | &.form-control-sm { 26 | .btn { padding: $btn-padding-y-sm; } 27 | } 28 | 29 | &.form-control-lg { 30 | .btn { padding: $btn-padding-y-lg; } 31 | } 32 | 33 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_forms.scss: -------------------------------------------------------------------------------- 1 | // 2 | // forms 3 | // 4 | // 5 | 6 | .form-group { 7 | 8 | label { 9 | margin-bottom: .25rem; 10 | font-size: 12px; 11 | text-transform: uppercase; 12 | font-weight: 600; 13 | letter-spacing: $letter-spacing; 14 | } 15 | } 16 | 17 | .form-control { 18 | @include shadow(5px, $border-width, rgba($border-color, .5)); 19 | } 20 | 21 | 22 | // inverted 23 | .form-control-inverted { 24 | @include transition; 25 | border-color: transparent; 26 | box-shadow: none; 27 | background: rgba($black, .25); 28 | color: $white; 29 | 30 | &:focus { 31 | border-color: transparent; 32 | background: rgba($black, .5); 33 | } 34 | } 35 | 36 | 37 | 38 | // input groups 39 | .input-group-text { 40 | @include transition; 41 | } 42 | 43 | .input-group { 44 | @include shadow; 45 | 46 | > .form-control { 47 | @include no-shadow; 48 | border-left-width: 0; 49 | border-right-width: 0; 50 | 51 | &:first-child { border-left-width: $border-width; } 52 | &:last-child { border-right-width: $border-width; } 53 | } 54 | 55 | &:focus-within { 56 | .input-group-text { 57 | border-color: $input-focus-border-color; 58 | } 59 | } 60 | } 61 | 62 | 63 | // minimal 64 | .form-control-minimal { 65 | @include no-shadow; 66 | border: 0; 67 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_header.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Header 3 | // 4 | 5 | .header { 6 | @include selection(none); 7 | position: static; 8 | width: 100%; 9 | z-index: 100; 10 | 11 | + section { 12 | padding-top: ($section-padding * 2); 13 | } 14 | 15 | nav { 16 | width: 100%; 17 | } 18 | } 19 | 20 | 21 | .header-sticky { 22 | @include translate(0,0); 23 | @include transition(.4s); 24 | position: fixed; 25 | top: 0; 26 | right: 0; 27 | bottom: auto; 28 | left: 0; 29 | } 30 | 31 | .headroom--unpinned { 32 | .header-sticky { 33 | @include translate(0,-100%); 34 | opacity: 0; 35 | } 36 | } 37 | 38 | 39 | // header types 40 | .header-transparent { background: rgba($black, .25); } 41 | .header-white { 42 | @include shadow; 43 | background: $white; 44 | } 45 | 46 | .header-transparent, 47 | .header-minimal-dark { 48 | @include media-breakpoint-down(md) { 49 | background: $dark; 50 | } 51 | } 52 | 53 | .header-minimal-light, 54 | .header-white { 55 | .nav-link.active { 56 | border-color: $primary!important; 57 | } 58 | 59 | @include media-breakpoint-down(md) { 60 | background: $white; 61 | 62 | .burger span { 63 | background-color: $black; 64 | 65 | &::before, 66 | &::after { 67 | background-color: $black; 68 | } 69 | } 70 | } 71 | } 72 | 73 | .headroom--not-top.headroom--pinned { 74 | .header-transparent { background: $dark; } 75 | 76 | .header-minimal-dark { background: $dark; } 77 | 78 | .header-minimal-light { 79 | @include shadow; 80 | background: $white; 81 | } 82 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_helpers.scss: -------------------------------------------------------------------------------- 1 | // 2 | // helpers 3 | // 4 | // 5 | 6 | 7 | // boxes 8 | [class*="circle"] { 9 | border-radius: 50%; 10 | } 11 | 12 | 13 | // typography 14 | .font-weight-semibold { 15 | font-weight: 600; 16 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_hero.scss: -------------------------------------------------------------------------------- 1 | // 2 | // hero 3 | // 4 | // 5 | 6 | .overlay { 7 | overflow: visible; 8 | 9 | 10 | .overlay-item-bottom { 11 | margin-bottom: -($section-padding * 2); 12 | } 13 | 14 | .overlay-item-top { 15 | margin-top: -($section-padding * 2); 16 | } 17 | 18 | } 19 | 20 | 21 | @include media-breakpoint-up(lg) { 22 | .overlay-content { 23 | margin-top: -($section-padding - 1.875rem); 24 | } 25 | 26 | .overlay-hero { 27 | margin-bottom: -($section-padding - 1.875rem); 28 | } 29 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_mixins.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Mixins & Functions 3 | // 4 | 5 | 6 | // 7 | // Rem Calculator 8 | // 9 | @function rem($size) { 10 | $rem: $size / 16; 11 | @return #{$rem}rem; 12 | } 13 | 14 | @function px($size) { 15 | $px: strip-units($size) * 16; 16 | @return #{$px}px; 17 | } 18 | 19 | // removing "px" or "rem" from variable 20 | @function strip-units($number) { 21 | @return $number / ($number * 0 + 1); 22 | } 23 | 24 | 25 | // 26 | // vendor prefixes 27 | // 28 | @mixin prefix($property, $value, $prefixes: ()) { 29 | @each $prefix in $prefixes { 30 | #{'-' + $prefix + '-' + $property}: $value; 31 | } 32 | 33 | // Output standard non-prefixed declaration 34 | #{$property}: $value; 35 | } 36 | 37 | 38 | 39 | // 40 | // Font Size 41 | // 42 | @each $size in $font-size-list { 43 | .fs-#{$size} { 44 | font-size: rem($size)!important; 45 | line-height: 1.4em; 46 | } 47 | } 48 | 49 | 50 | 51 | // Helpers 52 | @mixin text-shadow($size: 25px) { 53 | text-shadow: 0px 0px $size rgba($black, 0.4); 54 | } 55 | 56 | @mixin translate($vertical, $horizontal) { 57 | @include prefix(transform, translate($vertical, $horizontal), webkit moz); 58 | } 59 | 60 | @mixin transition($time: 0.2s, $type: all, $delay: 0s) { 61 | @include prefix(transition, $type $time, webkit moz); 62 | @include prefix(transition-delay, $delay, webkit moz); 63 | } 64 | 65 | @mixin selection($type) { 66 | @include prefix(user-select, $type, webkit moz ms); 67 | } 68 | 69 | @mixin shadow($size: 15px, $size-2: 0px, $color: rgba($black,0.05)) { 70 | @include prefix(box-shadow , 0px 0px $size $size-2 $color, webkit moz); 71 | } 72 | 73 | @mixin scale($ratio: 1.05) { 74 | @include prefix(transform , scale($ratio), webkit moz); 75 | } 76 | 77 | @mixin rotate($grade: 90deg) { 78 | @include prefix(transform , rotate($grade), webkit moz); 79 | } 80 | 81 | 82 | // remove ? 83 | @mixin no-shadow() { 84 | @include prefix(box-shadow , none!important, webkit moz); 85 | } 86 | 87 | 88 | @mixin animation($duration, $mode) { 89 | @include prefix(animation-duration , $duration, webkit moz); 90 | @include prefix(animation-fill-mode , $mode, webkit moz); 91 | } 92 | 93 | 94 | // placeholder 95 | @mixin placeholder { 96 | &::-webkit-input-placeholder {@content} 97 | &:-moz-placeholder {@content} 98 | &::-moz-placeholder {@content} 99 | &:-ms-input-placeholder {@content} 100 | } 101 | 102 | 103 | @mixin input-hover { 104 | &:hover, 105 | &:focus, 106 | &:active {@content} 107 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_sidebar.scss: -------------------------------------------------------------------------------- 1 | // 2 | // sidebar 3 | // 4 | // 5 | 6 | .widget { 7 | padding: $card-spacer-x; 8 | 9 | &:not(:first-child) { 10 | margin-top: ($grid-gutter-width / 2); 11 | } 12 | } 13 | 14 | .widget-title { 15 | margin-bottom: $card-spacer-y; 16 | font-size: $font-size-sm; 17 | text-transform: uppercase; 18 | letter-spacing: $letter-spacing; 19 | font-weight: 600; 20 | color: $body-color; 21 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_sizing.scss: -------------------------------------------------------------------------------- 1 | // 2 | // sizing 3 | // 4 | // 5 | 6 | 7 | // Vertical Height 8 | $height-list: ( 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 100); 9 | 10 | @each $value in $height-list { 11 | .vh-#{$value} { 12 | height: #{$value}vh; 13 | min-height: #{$value}vh; 14 | } 15 | } 16 | 17 | @each $value in $height-list { 18 | .vh-max-#{$value} { 19 | max-height: #{$value}vh; 20 | } 21 | } 22 | 23 | @include media-breakpoint-down(sm) { 24 | [class*="vh-"] { 25 | height: auto; 26 | } 27 | } 28 | 29 | 30 | // Flex Width 31 | @each $size, $length in $sizes { 32 | .fw-#{$size} { 33 | flex: 0 0 $length!important; 34 | width: $length!important; 35 | } 36 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_spacing.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Spacing 3 | // 4 | 5 | 6 | // Gutter 7 | $gutter-list: (); 8 | $gutter-list: map-merge(( 9 | 1: 10, 10 | 2: 20, 11 | 3: 30, 12 | 4: 40, 13 | 5: 50, 14 | ), $gutter-list); 15 | 16 | @each $breakpoint in map-keys($grid-breakpoints) { 17 | @include media-breakpoint-up($breakpoint) { 18 | $infix: breakpoint-infix($breakpoint, $grid-breakpoints); 19 | 20 | @each $name, $value in $gutter-list { 21 | .gutter#{$infix}-#{$name} { 22 | margin: -#{$value/2}px; 23 | 24 | > * { 25 | margin-bottom: 0!important; 26 | padding: #{$value/2}px; 27 | } 28 | } 29 | } 30 | 31 | } 32 | } 33 | 34 | .gutter-0 { 35 | padding: 1px 1px 0 0; 36 | margin-left: 0; 37 | margin-right: 0; 38 | 39 | > * { 40 | padding: 0; 41 | margin: -1px -1px 0 0!important; 42 | } 43 | } -------------------------------------------------------------------------------- /docs/assets/scss/layout/_typography.scss: -------------------------------------------------------------------------------- 1 | // 2 | // Typography 3 | // 4 | // 5 | 6 | 7 | 8 | 9 | // 10 | // Spacing 11 | // 12 | h1, h2, h3, h4, h5, 13 | .h1, .h2, .h3, .h4, .h5 { 14 | margin-bottom: .25em; 15 | 16 | &:last-child { margin-bottom: 0; } 17 | } 18 | 19 | p, blockquote, .alert, ul, ol { 20 | margin-bottom: $card-spacer-y; 21 | 22 | &:last-child { margin-bottom: 0; } 23 | } 24 | 25 | 26 | 27 | // custom inlines 28 | .external, 29 | .code, 30 | .kbd, 31 | .scroll, 32 | .folder, 33 | .file { 34 | @include transition; 35 | @extend %boxed; 36 | position: relative; 37 | display: inline-block; 38 | margin: .2rem; 39 | padding: 0 .5rem 0 2.5rem; 40 | font-size: inherit; 41 | font-family: $font-family-sans-serif; 42 | border-radius: $border-radius; 43 | color: $body-color; 44 | 45 | &::before { 46 | @include transition; 47 | @include translate(0,-50%); 48 | position: absolute; 49 | left: 0; 50 | top: 50%; 51 | display: inline-block; 52 | width: 2rem; 53 | height: 100%; 54 | text-align: center; 55 | background: $gray-200; 56 | content: "\ebfa"; 57 | color: $black; 58 | font-family: 'icomoon' !important; 59 | border-radius: $border-radius; 60 | border-right: $border-width solid $border-color; 61 | border-top-right-radius: 0; 62 | border-bottom-right-radius: 0; 63 | } 64 | } 65 | 66 | .text-white { 67 | .external, 68 | .code, 69 | .kbd, 70 | .scroll, 71 | .folder, 72 | .file { 73 | border-color: rgba($white, .1); 74 | background: rgba($black, .2); 75 | color: $white; 76 | 77 | &:before { 78 | background: rgba($white, .1); 79 | color: rgba($white, .5); 80 | border-color: transparent; 81 | } 82 | } 83 | } 84 | 85 | .component-info { 86 | .external, 87 | .code, 88 | .kbd, 89 | .scroll, 90 | .folder, 91 | .file { 92 | @include no-shadow; 93 | border: 0; 94 | background: rgba($black, .1); 95 | color: $black; 96 | 97 | &:before { 98 | background: transparent; 99 | color: $body-color; 100 | border-color: $border-color; 101 | } 102 | } 103 | } 104 | 105 | .external { 106 | &::before { 107 | content: "\ec27"; 108 | } 109 | 110 | &:hover { 111 | background: $primary; 112 | color: $white; 113 | border-color: $primary; 114 | 115 | &::before { 116 | background: rgba($black, .1); 117 | color: $white; 118 | border-color: rgba($black, .1); 119 | } 120 | } 121 | } 122 | 123 | .scroll { 124 | &::before { 125 | content: "\ec69"; 126 | } 127 | 128 | &:hover { 129 | background: $primary; 130 | color: $white; 131 | } 132 | } 133 | 134 | .code { 135 | &::before { 136 | content: "\eca9"; 137 | } 138 | } 139 | 140 | .folder { 141 | &::before { 142 | content: "\ec34"; 143 | } 144 | } 145 | 146 | .file { 147 | &::before { 148 | content: "\ec2d"; 149 | } 150 | } 151 | 152 | .kbd { 153 | &::before { 154 | content: "\f11c"; 155 | } 156 | } 157 | 158 | 159 | 160 | .lead { 161 | font-weight: $font-weight-normal; 162 | font-size: $font-size-base; 163 | } 164 | 165 | 166 | // 167 | // Global 168 | // 169 | strong, b { 170 | font-weight: $font-weight-bold; 171 | } 172 | 173 | p { 174 | line-height: 1.8; 175 | } 176 | 177 | img { 178 | max-width: 100%; 179 | } 180 | 181 | 182 | a { 183 | &:hover { 184 | text-decoration: none; 185 | } 186 | } 187 | 188 | 189 | %eyebrow { 190 | font-size: $font-size-sm; 191 | text-transform: uppercase; 192 | letter-spacing: $letter-spacing; 193 | font-weight: 600; 194 | 195 | &[class*="-sm"] { 196 | font-size: .75rem; 197 | } 198 | } 199 | 200 | .eyebrow { 201 | @extend %eyebrow; 202 | } 203 | 204 | 205 | 206 | // blockquote 207 | .blockquote { 208 | position: relative; 209 | padding-left: $section-padding; 210 | 211 | p { 212 | font-size: $font-size-lg; 213 | color: $black; 214 | line-height: 1.5; 215 | } 216 | 217 | &::before { 218 | position: absolute; 219 | top: 0; 220 | left: 0; 221 | content: "\201C"; 222 | display: block; 223 | width: 1em; 224 | line-height: 1em; 225 | font-size: 6.25rem; 226 | font-family: $headings-font-family; 227 | color: $secondary; 228 | } 229 | } 230 | 231 | 232 | // link 233 | %link { 234 | display: inline-block; 235 | position: relative; 236 | 237 | @include hover-focus { 238 | &::before { 239 | @include transition(); 240 | top: calc(100% + 2px); 241 | opacity: 1; 242 | } 243 | } 244 | 245 | &::before { 246 | @include transition(); 247 | content: ""; 248 | position: absolute; 249 | top: 100%; 250 | display: block; 251 | width: calc(100% - 2px); 252 | height: $border-width; 253 | background: currentColor; 254 | opacity: 0; 255 | } 256 | } 257 | 258 | .link { 259 | @extend %link; 260 | } 261 | 262 | 263 | %action { 264 | @include transition; 265 | display: inline-block; 266 | position: relative; 267 | padding-right: 2em; 268 | 269 | &::after { 270 | @include transition; 271 | @include translate(0,-50%); 272 | position: absolute; 273 | right: .5em; 274 | top: 50%; 275 | content: "\ebde"; 276 | display: block; 277 | font-family: 'icomoon' !important; 278 | font-size: 1em; 279 | width: 1em; 280 | line-height: 1em; 281 | } 282 | 283 | &:hover { 284 | &::after { 285 | right: 0; 286 | } 287 | } 288 | } 289 | 290 | .action { 291 | @extend %action; 292 | } 293 | 294 | 295 | // section title 296 | .section-title { 297 | position: relative; 298 | display: flex; 299 | align-items: center; 300 | justify-content: space-between; 301 | font-size: 1.5rem; 302 | line-height: 3.75rem; 303 | flex: 0; 304 | width: 100%; 305 | margin-bottom: ($grid-gutter-width / 2); 306 | padding-right: 3.75rem; 307 | 308 | > * { 309 | display: inline-flex; 310 | } 311 | 312 | &::after { 313 | content: ''; 314 | flex-grow: 1; 315 | margin-left: .625rem; 316 | border-top: 1px solid $border-color; 317 | } 318 | 319 | .anchor { 320 | @include transition; 321 | @include translate(0, -50%); 322 | position: absolute; 323 | right: 0; 324 | top: 50%; 325 | display: block; 326 | width: 3.125rem; 327 | height: 3.125rem; 328 | border-radius: 50%; 329 | border: $border-width solid $border-color; 330 | outline: none; 331 | 332 | &::after { 333 | @include transition; 334 | @include translate(-50%,-50%); 335 | position: absolute; 336 | top: 50%; 337 | left: 50%; 338 | content: "\ec41"; 339 | font-family: 'icomoon' !important; 340 | font-size: $font-size-lg; 341 | color: $black; 342 | } 343 | 344 | &:hover { 345 | border-color: $primary; 346 | 347 | &::after { 348 | color: $primary; 349 | } 350 | } 351 | 352 | &.copied { 353 | border-color: $primary; 354 | background: $primary; 355 | 356 | &::after { 357 | color: $white; 358 | content: "\ebf7"; 359 | } 360 | } 361 | } 362 | } 363 | 364 | .section-title-2 { 365 | padding-right: 0; 366 | font-size: 1.875rem; 367 | 368 | .anchor { 369 | @include transition; 370 | opacity: 0; 371 | color: $gray-500; 372 | outline: none; 373 | 374 | &:hover { 375 | color: $primary; 376 | } 377 | 378 | &.copied { 379 | opacity: 1; 380 | color: $green; 381 | } 382 | } 383 | 384 | &:hover { 385 | .anchor { 386 | opacity: 1; 387 | } 388 | } 389 | } 390 | 391 | 392 | 393 | // inverted 394 | .text-white { 395 | h1, h2, h3, h4, h5, h6 396 | .h1, .h2, .h3, .h4, .h5, .h6 { 397 | color: $white; 398 | } 399 | 400 | p { 401 | color: rgba($white, .55); 402 | } 403 | 404 | a { 405 | color: rgba($white, .75); 406 | 407 | &:hover { 408 | color: $white; 409 | } 410 | } 411 | } 412 | 413 | 414 | // responsive 415 | // 416 | 417 | @include media-breakpoint-down(md) { 418 | .display-1 { font-size: ($display1-size * .75) } 419 | .display-2 { font-size: ($display2-size * .75) } 420 | .display-3 { font-size: ($display3-size * .75) } 421 | .display-4 { font-size: ($display4-size * .75) } 422 | h1, .h1 { font-size: ($h1-font-size * .75) } 423 | h2, .h2 { font-size: ($h2-font-size * .75) } 424 | h3, .h3 { font-size: ($h3-font-size * .75) } 425 | h4, .h4 { font-size: ($h4-font-size * .75) } 426 | h5, .h5 { font-size: ($h5-font-size * .75) } 427 | } -------------------------------------------------------------------------------- /docs/assets/scss/style.scss: -------------------------------------------------------------------------------- 1 | @charset 'UTF-8'; 2 | 3 | // Fonts 4 | @import url('https://fonts.googleapis.com/css?family=Muli:300,400,700|Open+Sans:300,400,600,700|Roboto+Mono'); 5 | 6 | 7 | // Bootstrap & Variables 8 | @import "../../../node_modules/bootstrap/scss/functions"; 9 | @import "variables"; 10 | @import "variables-custom"; 11 | @import "../../../node_modules/bootstrap/scss/bootstrap"; 12 | 13 | 14 | // Components 15 | @import "layout/_layout"; 16 | @import "components/_components"; -------------------------------------------------------------------------------- /docs/bootstrap.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 | 17 | 18 | BeAPI API Framework - Documentation / Bootstrap 19 | 20 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 184 | 185 | 186 | 187 | 188 |
189 | 190 |
191 |
192 |
193 |
194 |
195 | 201 |
202 |
203 | 204 |
205 |
206 |
207 |
208 |
209 | 210 |
211 |
212 | 213 |

Bootstrapping Your Application

214 |

The Beapi API Framework has several built-in tools to help you get started that will automate most of the development/build for you. Below is an explaination of those tools and how to use them.

215 | 216 |
217 | 218 | 219 |
220 |

The 'Generate API Controllers' Command

221 |

Once you have your projects domains built, you can then 'autogenerate' your controllers using the following command from the root of the project:

222 |
223 |
224 |
225 |
226 |
./gradlew GenerateController
227 |
228 |
229 |
230 |
231 |

This will generate a BASIC set of controllers for all your domain classes. There is no need to add annotations or anything to them as this is all handled by the BeAPI framework. These controllers are all set and ready to go and provide an example structure for you to use and work from.

232 |
233 |
234 | 254 |
255 |
256 | 257 |
258 | 259 | 260 |
261 | 262 | 263 |
264 |

The 'Generate IO State' Command

265 |

After you have built your domains AND controllers, you can then 'autogenerate your IO State files using the following command from the root of your project:

266 |
267 |
268 |
269 |
270 |
./gradlew GenerateIostate
271 |
272 |
273 |
274 |

275 |

This will then create all the necessary state files for your endpoints used by the framework.

276 |
277 |
278 | 298 |
299 |

300 | 301 | 302 | 303 |
304 | 305 | 306 | 307 |
308 | 309 | 310 |
311 |

Troubleshooting

312 |

313 |
314 |
315 | 321 |
322 |
323 |
324 | 325 | 326 |
327 | 328 | 329 | 344 | 345 | 346 |
347 | 348 |
349 | 350 | 351 |
352 |
353 |
354 | 355 | 356 | 357 |
358 |
359 |
360 |
361 | Logo 362 |
363 |
364 |

Copyright © 2014-2019 - All Rights Reserved

365 |
366 |
367 | 368 |
369 |
370 |
371 |
372 | 373 | 374 | 375 | 376 | 377 | 378 | -------------------------------------------------------------------------------- /docs/build.gradle.4.x: -------------------------------------------------------------------------------- 1 | 2 | 3 | buildscript { 4 | ext { 5 | grailsVersion = project.grailsVersion 6 | gradleWrapperVersion = project.gradleWrapperVersion 7 | } 8 | repositories { 9 | flatDir { 10 | dirs 'lib' 11 | } 12 | mavenLocal() 13 | mavenCentral() 14 | maven { url "https://repo.grails.org/grails/core" } 15 | maven { url "${System.getProperty('user.home')}/.m2/repository" } 16 | jcenter { 17 | url "http://jcenter.bintray.com/" 18 | } 19 | } 20 | dependencies { 21 | classpath group: 'org.codehaus.gpars', name: 'gpars', version: '1.2.1' 22 | classpath "org.grails:grails-gradle-plugin:$grailsVersion" 23 | classpath "org.grails.plugins:hibernate5:${gormVersion-".RELEASE"}" 24 | classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' 25 | } 26 | } 27 | 28 | plugins { 29 | id "io.spring.dependency-management" version "1.0.8.RELEASE" 30 | //id "io.spring.dependency-management" version "0.6.0.RELEASE" 31 | id "com.jfrog.bintray" version "1.2" 32 | } 33 | 34 | 35 | def appVersion = project.buildVersion 36 | def patch = (System.getenv('BUILD_NUMBER'))?System.getenv('BUILD_NUMBER'):project.patchVersion 37 | version = "${appVersion}.${patch}" 38 | group "org.grails.plugins" 39 | 40 | apply plugin: 'java' 41 | apply plugin: 'groovy' 42 | apply plugin: 'maven-publish' 43 | apply plugin: 'org.springframework.boot' 44 | apply plugin: "com.jfrog.bintray" 45 | 46 | // Used for publishing to central repository, remove if not needed 47 | apply plugin: "org.grails.grails-plugin-publish" 48 | apply plugin: "org.grails.grails-plugin" 49 | apply plugin: "org.grails.grails-doc" 50 | 51 | 52 | grailsPublish { 53 | user = System.getenv('BINTRAY_USER') 54 | key = System.getenv('BINTRAY_KEY') 55 | githubSlug = 'orubel/Beapi-API-Framework' 56 | license { name = 'MPL-2.0' } 57 | title = "BeAPI API Framework" 58 | desc = "BeAPI API Framework is a fully reactive plug-n-play API Framework for Distributed Architectures providing api abstraction, cached IO state, automated batching and more. It is meant to autmoate alot of the issues behind setting up and maintaining API's in distributed architectures as well as handling and simplifying automation." 59 | developers = [orubel:"Owen Rubel"] 60 | } 61 | 62 | //ext { 63 | // grailsVersion = project.grailsVersion 64 | // gradleWrapperVersion = project.gradleWrapperVersion 65 | //} 66 | 67 | sourceCompatibility = 1.8 68 | targetCompatibility = 1.8 69 | 70 | 71 | repositories { 72 | mavenLocal() 73 | mavenCentral() 74 | maven { url "https://repo.grails.org/grails/core" } 75 | maven { url "${System.getProperty('user.home')}/.m2/repository" } 76 | jcenter { 77 | url "http://jcenter.bintray.com/" 78 | } 79 | } 80 | 81 | //dependencyManagement { 82 | // imports { 83 | // mavenBom "org.grails:grails-bom:$grailsVersion" 84 | // } 85 | // applyMavenExclusions false 86 | //} 87 | 88 | configurations { 89 | developmentOnly 90 | runtimeClasspath { 91 | extendsFrom developmentOnly 92 | } 93 | } 94 | 95 | dependencies { 96 | developmentOnly("org.springframework.boot:spring-boot-devtools") 97 | compile 'org.grails.plugins:cache:5.0.0.RC1' 98 | //compile 'org.grails.plugins:cache:3.0.2' 99 | //compile 'org.springframework.boot:spring-boot-starter-logging' 100 | compile 'org.springframework.boot:spring-boot-autoconfigure' 101 | provided 'org.springframework.boot:spring-boot-starter-tomcat' 102 | 103 | 104 | compile "org.grails:grails-logging" 105 | compile "org.grails:grails-plugin-i18n" 106 | compile "org.grails:grails-plugin-services" 107 | compile "org.grails:grails-plugin-interceptors" 108 | compile 'org.grails.plugins:converters:3.3.1' 109 | compile "org.grails.plugins:events" 110 | 111 | compile('org.grails.plugins:spring-security-core:4.0.0.RC2') { 112 | exclude(module: 'org.springframework.security:spring-security-web') 113 | exclude(module: 'org.grails.plugins:cors') 114 | } 115 | compile group: 'com.google.guava', name: 'guava', version: '14.0' 116 | 117 | compile('org.grails.plugins:spring-security-rest:2.0.0.M2') { 118 | exclude(module: 'com.google.guava:guava-io') 119 | exclude(module: 'org.springframework.security:spring-security-web') 120 | exclude(module: 'org.grails.plugins:spring-security-core') 121 | exclude(module: 'org.grails.plugins:cors') 122 | } 123 | 124 | /** 125 | * These are not excluded because spring-security-rest 126 | * has GSP dependencies; may rewrite that plugin in future 127 | */ 128 | runtime('org.grails:grails-web') { 129 | //exclude(module: 'org.grails:grails-web-jsp') 130 | //exclude(module: 'org.grails:grails-web-sitemesh') 131 | //exclude(module: 'org.grails:grails-web-gsp') 132 | //exclude(module: 'org.grails:grails-web-databinding:5.0.1') 133 | } 134 | 135 | // UNCOMMENT NOSQL DB AS NEEDED FOR LIBRARIES 136 | //compile 'org.grails.plugins:mongodb:5.0.2' 137 | 138 | 139 | compile 'org.codehaus.gpars:gpars:1.2.1', { 140 | exclude group:'org.multiverse', module:'multiverse-core' 141 | exclude group:'org.codehaus.groovy', module: 'groovy-all' 142 | } 143 | 144 | //compile('org.grails:grails-logging:3.1.1') 145 | compile("org.codehaus.groovy:groovy-ant:$groovyVersion") 146 | 147 | compile "org.grails.plugins:hibernate5" 148 | compile "org.hibernate:hibernate-core:5.4.0.Final" 149 | compile "org.hibernate:hibernate-ehcache:5.4.0.Final" 150 | } 151 | 152 | wrapper { 153 | gradleVersion = '5.1.1' 154 | } 155 | 156 | bootRun { 157 | systemProperties = System.properties 158 | } 159 | 160 | test { 161 | systemProperties = System.properties 162 | } -------------------------------------------------------------------------------- /docs/chain.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docs/gradle.properties.4.x: -------------------------------------------------------------------------------- 1 | grailsVersion=3.2.1 2 | gradleWrapperVersion=5.1.1 3 | gormVersion=7.0.0.RC1 4 | groovyVersion=2.5.6 5 | buildVersion=1.4 6 | patchVersion=0 7 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 | 17 | 18 | BeAPI API Framework - Documentation / Installation 19 | 20 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 97 | 98 | 99 | 100 |
101 | 102 |
103 |
104 |
105 |
106 |
107 | 112 |
113 |
114 | 115 |
116 |
117 |
118 |
119 |
120 | 121 |
122 |
123 |
124 |

BeAPI Bench API Benchmarks

125 |

To provide examples of API Framework benchmarks, we plan to do testing of various API's over time and post them hear as we get them. The plan is to test with the same set of tests but under different conditions and on different systems so users and developers can see what TRULY affects API scalability.

126 |

We will also post other peoples benchmarks provided they follow the format and provide details of their system they are testing on (and that they will let us validate the benchmarks remotely). Details for submissions can be found to the side.

127 |
128 | 129 | 130 | 131 |
132 | 133 | 134 | 138 | 139 | 140 |
141 | 142 |
143 | 144 | 145 |
146 |
147 |
148 | 149 | 150 | 151 |
152 |
153 |
154 |
155 | Logo 156 |
157 |
158 |

Copyright © 2014-2019 - All Rights Reserved

159 |
160 | 161 |
162 |
163 |
164 |
165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /docs/mvc.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 | 17 | 18 | BeAPI API Framework - Documentation / MVC 19 | 20 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 184 | 185 | 186 | 187 | 188 |
189 | 190 |
191 |
192 |
193 |
194 |
195 | 201 |
202 |
203 | 204 |
205 |
206 |
207 |
208 |
209 | 210 |
211 |
212 | 213 |

MVC of the Application

214 |

The Beapi API Framework has several built-in tools to help you get started that will automate most of the development/build for you. Below is an explaination of those tools and how to use them.

215 | 216 |
217 | 218 | 219 |
220 |

The Domains

221 |
222 |
223 | 226 |
227 |
228 |

Your Model requires no additional annotations added to it to make the api's function. You merely need to map the database tables like a normal model. Included in the project are several domain classes to show you how one should look. There is nothing complex; just follow GORM principles for creating a basic domain object.

229 |
230 | 231 | 232 |
233 | 234 | 235 |
236 |

The Controllers

237 |
238 |
239 | 243 |
244 |
245 |

Your controllers requires no additional annotations (or ROLE checks) added to it to make the api's function. Included in the project are several controllers to show you how one should look.

246 |

There ARE two caveats to your controller methods however:

247 |
    248 |
  • Every API method in the controller has to be declared as returning 'LinkedHashMap'. For example: 249 |
    250 |
    251 |
    252 |
    253 |
    LinkedHashMap show(){ ... }
    254 |
    255 |
    256 |
    257 |
    258 |
  • 259 |
  • The return value KEY has to be the class name in camelCase. For example, in the above link provided where the controller class in 'PersonController', we would need the key to be 'person': 260 |
    261 |
    262 |
    263 |
    264 |
    return [person: someValue]
    265 |
    266 |
    267 |
    268 |
    269 |
  • 270 |
271 |
272 | 273 | 274 | 275 |
276 | 277 | 278 |
279 |

Troubleshooting

280 |

281 |
282 |
283 | 289 |
290 |
291 |
292 | 293 | 294 |
295 | 296 | 297 | 312 | 313 | 314 |
315 | 316 |
317 | 318 | 319 |
320 |
321 |
322 | 323 | 324 | 325 |
326 |
327 |
328 |
329 | Logo 330 |
331 |
332 |

Copyright © 2014-2019 - All Rights Reserved

333 |
334 | 335 |
336 |
337 |
338 |
339 | 340 | 341 | 342 | 343 | 344 | 345 | -------------------------------------------------------------------------------- /docs/security.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 13 | 14 | 15 | 16 | 17 | 18 | BeAPI API Framework - Documentation / Security 19 | 20 | 21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 184 | 185 | 186 | 187 | 188 |
189 | 190 |
191 |
192 |
193 |
194 |
195 | 201 |
202 |
203 | 204 |
205 |
206 |
207 |
208 |
209 | 210 |
211 |
212 | 213 |

Security

214 |

When adding security to your endpoints, there are two levels that we take into consideration: CORS for securing application access and an OAUTH implementation that uses ROLES for securing user access. Below we will go over how you can better configure these two in your implementation.

215 | 216 |
217 | 218 | 219 |
220 |

CORS / NetworkGroups

221 |

At the top of your '~/.beapi/beapi_api.yml' config file, you will see a group of lines that look like this:

222 |
223 |
224 |
225 |
226 |
apitoolkit:
227 |     apiName: api
228 |     attempts: 5
229 |     procCores: 8
230 |     networkGroups: ['private','public']
231 |     ...
232 |
233 |
234 |
235 |
236 |

Right now we are only interested in networkGroups. The 'networkGroups' defines 'allowedOrigins' groups for CORS (Cross Origin Resource Sharing) which we can then associate with each group of endpoints in our IO state files. We associate the 'allowedOrigins' further down in the 'beapi_api.yml' file under corsInterceptor:

237 |
238 |
239 |
240 |
241 |
    corsInterceptor:
242 |         includeEnvironments: ['development','test','production']
243 |         excludeEnvironments: []
244 |         networkGroups:
245 |             public: ['http://localhost','http://localhost:8080','http://127.0.0.1','http://test.nosegrind.net']
246 |             private: ['http://localhost','http://localhost:8080','http://127.0.0.1']
247 |     ...
248 |
249 |
250 |
251 |
252 |

Once we have the Network groups named and defined, we can then assign them in our IO State. Below is the top of our 'Person' IO State file as an example of how we do the assignment:

253 |
254 |
255 |
256 |
257 |
{
258 |     "NAME":"person",
259 |     "NETWORKGRP": "public",
260 |     "VALUES": {
261 |         ...
262 |
263 |
264 |
265 |
266 |

You can see an example of this at the top of anyone of the pregenerated IO State files in your project.

267 |

As you can see, we use the 'public' networkGrp so it upon lookup of the endpoint, we immediately know which 'allowedOrigins' to use. Others might use 'private so that we can use INTERNAL networks rather than EXTERNAL networks. This makes it easier for us to use one backend for internal and external endpoints.

268 |
269 | 270 | 271 |
272 | 273 | 274 | 275 |
276 |

Roles / NetworkRoles

277 |

The 'networkRoles' are very similar to 'networkGroups' in that you are assigning ROLES to your 'networkGroups' as a set of ROLES to be pulled from for assignment:

278 |
279 |
280 |
281 |
282 | 283 |
apitoolkit:
284 |     apiName: api
285 |     attempts: 5
286 |     procCores: 8
287 |     networkGroups: ['private','public']
288 |     networkRoles:
289 |         public: ['ROLE_USER','ROLE_ADMIN']
290 |         private: ['ROLE_ADMIN']
291 | 292 |
293 |
294 |
295 |
296 |
297 |

So above in 'public', those are the ok'd roles to use for making API calls and they will be checked against all incoming calls using 'public'

298 |

So if your IO State is declared as public, you will want your users to have ROLES listed in networkRoles.public. Pretty easy!

299 |
300 | 301 | 302 |
303 | 304 | 305 |
306 |

Troubleshooting

307 |

308 |
309 |
310 | 316 |
317 |
318 |
319 | 320 | 321 |
322 | 323 | 324 | 339 | 340 | 341 |
342 | 343 |
344 | 345 | 346 |
347 |
348 |
349 | 350 | 351 | 352 |
353 |
354 |
355 |
356 | Logo 357 |
358 |
359 |

Copyright © 2014-2019 - All Rights Reserved

360 |
361 | 362 |
363 |
364 |
365 |
366 | 367 | 368 | 369 | 370 | 371 | 372 | --------------------------------------------------------------------------------