| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- /* Remove default bullets */
- ul, #myUL {
- list-style-type: none;
- }
- /* Remove margins and padding from the parent ul */
- #myUL {
- margin: 0;
- padding: 0;
- }
- /* Style the caret/arrow */
- .caret {
- cursor: pointer;
- user-select: none; /* Prevent text selection */
- }
- /* Create the caret/arrow with a unicode, and style it */
- .caret::before {
- content: "\25B6";
- color: black;
- display: inline-block;
- margin-right: 6px;
- }
- /* Rotate the caret/arrow icon when clicked on (using JavaScript) */
- .caret-down::before {
- transform: rotate(90deg);
- }
- /* Hide the nested list */
- .nested {
- display: none;
- }
- /* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
- .active {
- display: block;
- }
- .parent-style {
- border: 1px solid #f37227;
- border-radius: 5px;
- padding: 5px;
- background: #ff6a00;
- color: white;
- max-width: 200px;
- margin-top: 10px;
- margin-bottom: 10px;
- width: fit-content;
- }
- .parent-style:hover {
- filter: brightness(80%);
- color: white;
- }
- .none-parent-style {
- border: 1px solid #f3f7fe;
- border-radius: 5px;
- padding: 5px;
- background: #f3f7fe;
- color: #6c6b6b;
- max-width: 200px;
- margin-top: 10px;
- margin-bottom: 10px;
- width: fit-content;
- }
- .none-parent-style:hover {
- filter: brightness(80%);
- color: black;
- }
- .pointer-style {
- }
- .tree-container {
- background: white;
- /*margin: 25px;*/
- border: 1px solid #eee2e2;
- /*padding: 20px;*/
- /*padding-bottom: 20px;*/
- }
- .title {
- display: inline-block;
- }
- .tree-box {
- margin-bottom: 1.875rem;
- border: none;
- border-radius: 0;
- box-shadow: 0 10px 40px 0 rgba(62,57,107,.07), 0 2px 9px 0 rgba(62,57,107,.06);
- padding: 20px;
- }
- /** * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- background-color: #ccc;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100vh;
- font-family: sans-serif;
- }*/
- #clickable {
- display: block;
- background-color: #efefef;
- height: 300px;
- width: 300px;
- border-radius: 20px;
- box-shadow: 0px 5px 30px -10px grey;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32px;
- color: grey;
- }
- #menu {
- display: block;
- background-color: white;
- padding: 10px 0px;
- border-radius: 5px;
- box-shadow: 2px 2px 30px lightgrey;
- position: absolute;
- transform-origin: center;
- z-index: 2;
- opacity: 0;
- transform: scale(0);
- transition: transform 0.2s, opacity 0.2s;
- width: 200px;
- }
- #menu.show-top {
- opacity: 1;
- transform: scale(1);
- transform-origin: top left;
- }
- #menu.show-bottom {
- opacity: 1;
- transform: scale(1);
- transform-origin: bottom left;
- }
- .menu-item {
- display: block;
- padding: 10px 30px;
- transition: 0.1s;
- color: #666;
- }
- .menu-item:hover {
- background-color: #eee;
- cursor: pointer;
- }
- #out-click {
- height: 100vh;
- width: 100vw;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 1;
- display: none;
- }
|