wishthis/node_modules/fomantic-ui/dist/components/accordion.css

370 lines
11 KiB
CSS
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*!
2023-08-17 09:47:40 +00:00
* # Fomantic-UI 2.9.2 - Accordion
* https://github.com/fomantic/Fomantic-UI/
2022-01-13 13:00:31 +00:00
*
*
* Released under the MIT license
2023-08-17 09:47:40 +00:00
* https://opensource.org/licenses/MIT
2022-01-13 13:00:31 +00:00
*
*/
/*******************************
Accordion
*******************************/
.ui.accordion,
.ui.accordion .accordion {
max-width: 100%;
}
.ui.accordion .accordion {
margin: 1em 0 0;
padding: 0;
}
/* Title */
2022-06-08 10:36:39 +00:00
.ui.accordion.menu .item > .title,
.ui.accordion > .title,
.ui.accordion .accordion > .title {
2022-01-13 13:00:31 +00:00
cursor: pointer;
padding: 0.5em 0;
2023-08-17 09:47:40 +00:00
font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2022-01-13 13:00:31 +00:00
font-size: 1em;
color: rgba(0, 0, 0, 0.87);
2022-06-08 10:36:39 +00:00
list-style: none;
line-height: 1;
2022-01-13 13:00:31 +00:00
}
/* Default Styling */
2022-06-08 10:36:39 +00:00
.ui.accordion:not(.styled) .title ~ .content,
.ui.accordion:not(.styled) .accordion .title ~ .content {
2023-08-17 09:47:40 +00:00
margin: "";
2022-01-13 13:00:31 +00:00
padding: 0.5em 0 1em;
}
2022-06-08 10:36:39 +00:00
.ui.accordion:not(.styled) .title ~ .content:last-child {
2022-01-13 13:00:31 +00:00
padding-bottom: 0;
}
/* Arrow */
2022-06-08 10:36:39 +00:00
.ui.accordion .ui.header > .dropdown.icon,
.ui.accordion .title > .dropdown.icon,
.ui.accordion .accordion .title > .dropdown.icon {
2022-01-13 13:00:31 +00:00
display: inline-block;
float: none;
opacity: 1;
width: 1.25em;
height: 1em;
margin: 0 0.25rem 0 0;
padding: 0;
font-size: 1em;
transition: transform 0.1s ease, opacity 0.1s ease;
vertical-align: baseline;
2023-08-17 09:47:40 +00:00
transform: none;
2022-01-13 13:00:31 +00:00
}
2022-06-08 10:36:39 +00:00
.ui.accordion .ui.header > .dropdown.icon.right,
.ui.accordion .title > .dropdown.icon.right,
.ui.accordion .accordion .title > .dropdown.icon.right {
float: right;
2023-08-17 09:47:40 +00:00
transform: rotate(180deg);
2022-06-08 10:36:39 +00:00
}
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Coupling
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
/* Menu */
.ui.accordion.menu .item .title {
display: block;
padding: 0;
}
.ui.accordion.menu .item .title > .dropdown.icon {
float: right;
2022-06-08 10:36:39 +00:00
margin: 0 0.25rem 0 0;
2023-08-17 09:47:40 +00:00
transform: rotate(180deg);
2022-01-13 13:00:31 +00:00
}
/* Header */
2022-06-08 10:36:39 +00:00
.ui.accordion .ui.header > .dropdown.icon {
2022-01-13 13:00:31 +00:00
font-size: 1em;
margin: 0 0.25rem 0 0;
}
/*******************************
States
*******************************/
2022-06-08 10:36:39 +00:00
.ui.accordion[open] > .title > .dropdown.icon,
.ui.accordion .accordion[open] > .title > .dropdown.icon,
.ui.accordion .active.title > .dropdown.icon,
.ui.accordion .accordion .active.title > .dropdown.icon {
2023-08-17 09:47:40 +00:00
transform: rotate(90deg);
2022-01-13 13:00:31 +00:00
}
.ui.accordion.menu .item .active.title > .dropdown.icon {
2023-08-17 09:47:40 +00:00
transform: rotate(90deg);
2022-01-13 13:00:31 +00:00
}
/*******************************
Types
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
Styled
--------------- */
2022-01-13 13:00:31 +00:00
.ui.styled.accordion {
width: 600px;
}
.ui.styled.accordion,
.ui.styled.accordion .accordion {
border-radius: 0.28571429rem;
2023-08-17 09:47:40 +00:00
background: #fff;
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15), 0 0 0 1px rgba(34, 36, 38, 0.15);
2022-01-13 13:00:31 +00:00
}
2022-06-08 10:36:39 +00:00
.ui.styled.accordion > .title,
.ui.styled.accordion .accordion > .title {
2022-01-13 13:00:31 +00:00
margin: 0;
padding: 0.75em 1em;
color: rgba(0, 0, 0, 0.4);
font-weight: bold;
border-top: 1px solid rgba(34, 36, 38, 0.15);
transition: background 0.1s ease, color 0.1s ease;
}
.ui.styled.accordion > .title:first-child,
2022-06-08 10:36:39 +00:00
.ui.styled.accordion .accordion > .title:first-child {
2022-01-13 13:00:31 +00:00
border-top: none;
}
/* Content */
2022-06-08 10:36:39 +00:00
.ui.styled.accordion > .content {
2022-01-13 13:00:31 +00:00
margin: 0;
padding: 0.5em 1em 1.5em;
}
2022-06-08 10:36:39 +00:00
.ui.styled.accordion .accordion > .content {
2022-01-13 13:00:31 +00:00
margin: 0;
padding: 0.5em 1em 1.5em;
}
/* Hover */
2022-06-08 10:36:39 +00:00
.ui.styled.accordion > .title:hover {
2022-01-13 13:00:31 +00:00
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
2022-06-08 10:36:39 +00:00
.ui.styled.accordion .accordion > .title:hover {
2022-01-13 13:00:31 +00:00
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
/* Active */
2022-06-08 10:36:39 +00:00
.ui.styled.accordion[open] > .title,
2022-01-13 13:00:31 +00:00
.ui.styled.accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.95);
}
2022-06-08 10:36:39 +00:00
.ui.styled.accordion .accordion[open] > .title,
2022-01-13 13:00:31 +00:00
.ui.styled.accordion .accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.95);
}
2023-08-17 09:47:40 +00:00
/* --------------
Compact
--------------- */
2022-06-08 10:36:39 +00:00
/* Default Styling */
.ui.compact.accordion:not(.styled) > .title,
.ui.compact.accordion:not(.styled) .accordion > .title {
padding: 0.25em 0;
}
.ui.compact.accordion:not(.styled) .title ~ .content,
.ui.compact.accordion:not(.styled) .accordion .title ~ .content {
padding: 0.25em 0 0.5em;
}
/* Styled */
.ui.compact.styled.accordion > .title,
.ui.compact.styled.accordion .accordion > .title {
padding: 0.375em 0.5em;
}
.ui.compact.styled.accordion .title ~ .content,
.ui.compact.styled.accordion .accordion .title ~ .content {
padding: 0.25em 0.5em 0.75em;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-06-08 10:36:39 +00:00
Very Compact
2023-08-17 09:47:40 +00:00
--------------- */
2022-06-08 10:36:39 +00:00
.ui[class*="very compact"].accordion:not(.styled) > .title,
.ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
padding: 0.125em 0;
}
.ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
.ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
padding: 0.125em 0 0.25em;
}
.ui[class*="very compact"].styled.accordion > .title,
.ui[class*="very compact"].styled.accordion .accordion > .title {
padding: 0.1875em 0.25em;
}
.ui[class*="very compact"].styled.accordion .title ~ .content,
.ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
padding: 0.125em 0.25em 0.375em;
}
2022-01-13 13:00:31 +00:00
/*******************************
States
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Not Active
2023-08-17 09:47:40 +00:00
--------------- */
2022-06-08 10:36:39 +00:00
.ui.accordion:not(details) .title ~ .content:not(.active),
.ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
2022-01-13 13:00:31 +00:00
display: none;
}
/*******************************
Variations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
Fluid
--------------- */
2022-01-13 13:00:31 +00:00
.ui.fluid.accordion,
.ui.fluid.accordion .accordion {
width: 100%;
}
2023-08-17 09:47:40 +00:00
/* --------------
Inverted
--------------- */
2022-06-08 10:36:39 +00:00
.ui.inverted.accordion.menu .item > .title,
.ui.inverted.accordion > .title,
.ui.inverted.accordion .accordion > .title {
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.styled.accordion,
.ui.inverted.styled.accordion .accordion {
2023-08-17 09:47:40 +00:00
background: #1b1c1d;
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
2022-06-08 10:36:39 +00:00
}
.ui.inverted.styled.accordion > .title,
.ui.inverted.styled.accordion .accordion > .title {
color: rgba(255, 255, 255, 0.5);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Hover */
.ui.inverted.styled.accordion > .title:hover {
background: transparent;
2022-01-13 13:00:31 +00:00
color: rgba(255, 255, 255, 0.9);
}
2022-06-08 10:36:39 +00:00
.ui.inverted.styled.accordion .accordion > .title:hover {
background: transparent;
color: rgba(255, 255, 255, 0.9);
}
/* Active */
.ui.inverted.styled.accordion[open] > .title,
.ui.inverted.styled.accordion .active.title {
background: transparent;
color: #ffffff;
}
.ui.inverted.styled.accordion .accordion[open] > .title,
.ui.inverted.styled.accordion .accordion .active.title {
background: transparent;
color: #ffffff;
}
.ui.basic.styled.accordion,
.ui.basic.styled.accordion .accordion {
background: transparent;
2023-08-17 09:47:40 +00:00
box-shadow: none;
2022-06-08 10:36:39 +00:00
}
.ui.basic.styled.accordion > .title,
.ui.basic.styled.accordion .accordion > .title {
border: none;
color: rgba(0, 0, 0, 0.6);
}
.ui.basic.styled.accordion > .title:hover,
.ui.basic.styled.accordion .accordion > .title:hover {
background: transparent;
color: rgba(0, 0, 0, 0.87);
}
.ui.basic.styled.accordion[open] > .title,
.ui.basic.styled.accordion .active.title,
.ui.basic.styled.accordion .accordion[open] > .title,
.ui.basic.styled.accordion .accordion .active.title {
background: transparent;
color: rgba(0, 0, 0, 0.95);
}
.ui.inverted.basic.styled.accordion > .title,
.ui.inverted.basic.styled.accordion .accordion > .title {
background: transparent;
color: rgba(255, 255, 255, 0.8);
}
.ui.inverted.basic.styled.accordion > .title:hover,
.ui.inverted.basic.styled.accordion .accordion > .title:hover {
background: transparent;
color: rgba(255, 255, 255, 0.9);
}
.ui.inverted.basic.styled.accordion[open] > .title,
.ui.inverted.basic.styled.accordion .active.title,
.ui.inverted.basic.styled.accordion .accordion[open] > .title,
.ui.inverted.basic.styled.accordion .accordion .active.title {
background: transparent;
color: #ffffff;
}
.ui.tree.accordion:not(.styled) .title ~ .content,
.ui.tree.accordion:not(.styled) .accordion .title ~ .content {
padding: 0;
}
.ui.tree.accordion > .content,
.ui.tree.accordion .accordion > .content {
margin-left: 1.7em;
}
.ui.tree.accordion .accordion {
margin-top: 0;
}
2022-01-13 13:00:31 +00:00
/*******************************
Theme Overrides
*******************************/
@font-face {
2023-08-17 09:47:40 +00:00
font-family: Accordion;
src: url("data:application/font-woff;base64,d09GRk9UVE8AAAREAAsAAAAABkAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAAC7AAAAQoAAAE/j/fxwUZGVE0AAAQUAAAAHAAAAByNqvxQR0RFRgAAA/gAAAAcAAAAIAAnABhPUy8yAAABYAAAAEIAAABgTadW5mNtYXAAAAKMAAAAUQAAAWAFZuKDaGVhZAAAAQgAAAAyAAAANg8zT8toaGVhAAABPAAAABoAAAAkApkA5mhtdHgAAAQwAAAAEwAAABYBtwASbWF4cAAAAVgAAAAGAAAABgAGUABuYW1lAAABpAAAAOYAAAGq/HAhWXBvc3QAAALgAAAADAAAACAAAwAAeJxjYGRgYADi8KWRsvH8Nl8ZuJkYQOD838XvQPT9hGxNIOXJsJ0xD0hzMIClARzsCcoAAHicY2BkYGB88P8BkGQAg+0wBhywAgBgjgOAAAAAAFAAAAYAAHicY2BmOM84gYGVgYHRhzGNgYHBHUp/ZZBkaGFABYwCSJyANNcUBgcGhg+3GB/8fwCUfMCgAFIDV6AAhIwARVcMJwAAeJx1jrFOwzAURU/SNKgFIVgQ6uSRKWolZjaQOnQBqQNb2lpRpMqW3HTowhew8U9I/BU37WOjtmyfd/3utYEbvsn4G7lxRsmtcc4FD8YD6U/GhfjNeMglybjU/DQeM+FHrqwY2QsnzrgSnTjnmnvjgfSpcSF+Nh5yx7txKf3DeMwjX31soqajJdCoqLs26HzFq9yz1WVS6Zv9tk5nmv8Vl0pI7CRHXThmVPofS592bQxuVk3PGF+Ohk6WRhHhGNO3eTbSVhy0z1mra6HV91YyxdC5xgevFL9xq4Obr+MixlDxC/HTOrsAAHicY2BgYGaAYBkGRgYQiALyGMF8FgY7IM3FwMHABISMDAofbv3/+/8/WJXCh5tgNuP/x2A+RC8bUC0DUB8rWIgNiJkY8AJm/NJDHgAALqoOxgAAAHicY2BmwAsAAH0ABHicPY7BSsNAEIZnkk2zlhg1JKAYxOrJi6RepMdC8SKefAJP4kVBzCtkNw7ZjeK1j9C38Rn6CO5CDrppigwMM8P/f/8gMAaIGL4+vD09PwJ6gLCwp2AnaM88e+7bQ0aRTxE7GcPRffJL9D9EIX2bW+sFOXzu5QD7OSwPcuA5Xiew05N8CIDDLiSQuTqGSVmU0/KqKG+Kxaxv8+llMURvHwBAgRJrfEeCEaLns9HdRxzHP/FqaV4yaptWK25SkwZKu4Va0rUSWjYVVbz7CqmqhZBSiNodqGqk5l2vFqrW1PJ4tWbGqZxVKa31htA6gmN2aTBwBobzuYsU1YYkGheyZVBqLjKKxn8cSmvuAAB4nGNgZGBg4AFiAQYJBiYgzQLEIJoRggEFbQBAAAAAAQAAAADeTO04AAAAAM/9o+4AAAAA32BrKXicY2BAAEYQsZ1BiIEBAAPpAMsA") format("woff");
2022-01-13 13:00:31 +00:00
font-weight: normal;
font-style: normal;
}
/* Dropdown Icon */
2022-06-08 10:36:39 +00:00
.ui.accordion .ui.header > .dropdown.icon,
.ui.accordion .title > .dropdown.icon,
.ui.accordion .accordion .title > .dropdown.icon {
2022-01-13 13:00:31 +00:00
font-family: Accordion;
line-height: 1;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
font-weight: normal;
font-style: normal;
text-align: center;
}
2022-06-08 10:36:39 +00:00
.ui.accordion .ui.header > .dropdown.icon::before,
.ui.accordion .title > .dropdown.icon::before,
.ui.accordion .accordion .title > .dropdown.icon::before {
2023-08-17 09:47:40 +00:00
content: "\f0da"
/* rtl: "\f0d9" */;
2022-01-13 13:00:31 +00:00
}
/*******************************
User Overrides
*******************************/