вот такая тема
новая тема 1
Сообщений 1 страница 8 из 8
Поделиться32023-11-27 03:39:49
[hideprofile]
[html]
<style>
.tabs-wrapper {
width: 100%;
margin: 0 auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Component Needs */
.tabs-container>input,
.tabs-content>div {
display: none;
}
#tab1:checked~.tabs-content .tab1,
#tab2:checked~section .tab2,
#tab3:checked~.tabs-content .tab3 {
display: block;
}
.tabs-container {
width: 100%;
max-width: 800px;
margin: 0 auto;
}
.tabs-labels-list {
list-style: none;
margin: 0;
padding: 0;
}
.tabs-labels-name {
font-family: 'Noto Serif', serif;
font-size: 1.2rem;
float: left;
padding: 15px 25px;
border: 1px solid #ddd;
border-bottom: 0;
background: #eeeeee;
color: #444;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.tabs-labels-name:hover {
background: #dddddd;
}
.tabs-labels-name:active {
background: #ffffff;
}
.tabs-labels-name:not(:last-child) label {
border-right-width: 0;
}
.tabs-content {
clear: both;
}
.content-block {
padding: 20px;
width: 100%;
border: 1px solid #ddd;
background: #fff;
line-height: 1.5em;
letter-spacing: 0.3px;
color: #444;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}
.tabs_content-title {
margin: 0;
font-family: 'Noto Serif', serif;
font-size: 1.5rem;
letter-spacing: 1px;
color: #34495e;
}
#tab1:checked~nav .tab1 label,
#tab2:checked~nav .tab2 label,
#tab3:checked~nav .tab3 label {
background: white;
color: #111;
position: relative;
}
#tab1:checked~nav .tab1 label:after,
#tab2:checked~nav .tab2 label:after,
#tab3:checked~nav .tab3 label:after {
content: "";
display: block;
position: absolute;
height: 2px;
width: 100%;
background: #ffffff;
left: 0;
bottom: -1px;
}
</style>
<div class="tabs-wrapper">
<div class="tabs-container">
<input checked="checked" id="tab1" type="radio" name="pct" />
<input id="tab2" type="radio" name="pct" />
<input id="tab3" type="radio" name="pct" />
<nav>
<ul class="tabs-labels-list">
<li class="tabs-labels-item tab1">
<label class="tabs-labels-name tab1" for="tab1">Правила</label>
</li>
<li class="tabs-labels-item tab2">
<label class="tabs-labels-name" for="tab2">F.A.Q.</label>
</li>
<li class="tabs-labels-item tab3">
<label class="tabs-labels-name" for="tab3">Третья вкладка</label>
</li>
</ul>
</nav>
<section class="tabs-content">
<div class="content-block tab1">
<div class="tabs_content-title">First</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellendus itaque quidem minus nostrum,
voluptatem accusamus aspernatur quia harum ratione, officia laudantium inventore autem doloribus atque
labore numquam non. Hic, animi.</p>
</div>
<div class="content-block tab2">
<div class="tabs_content-title">Second</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum nesciunt ipsum dolore error repellendus
officiis aliquid a, vitae reprehenderit, accusantium vero, ad. Obcaecati numquam sapiente cupiditate.
Praesentium eaque, quae error!</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis, maiores.</p>
</div>
<div class="content-block tab3">
<div class="tabs_content-title">Third</div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Optio, nobis culpa rem, vitae earum aliquid.</p>
</div>
</section>
</div>
</div>
[/html]
Поделиться42023-11-27 06:46:05
[html]
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<style>
.wrapper {
max-width: 100%;
max-height: 500px;
margin: 0 auto;
position: relative;
}
.tabs-wrapper {
width: 650px;
margin: 0 auto;
box-sizing: border-box;
height: auto;
position: absolute;
}
.content-block {
padding: 20px;
width: 100%;
border: 1px solid #ddd;
background: #fff;
line-height: 1.5em;
letter-spacing: 0.3px;
color: #444;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
overflow-x: auto;
max-height: 500px;
}
.tabs_content-title {
margin: 0;
font-family: 'Noto Serif', serif;
font-size: 1.5rem;
letter-spacing: 1px;
color: #34495e;
}
.tabs-content-subtitle {
font-weight: 500;
font-size: 1.1rem;
display: inline-block;
padding-top: 5px;
color: #34495e;
}
.tabs-content-subtitle::before {
content: '§';
color: #34495e;
margin-right: 5px;
vertical-align: text-bottom;
}
.tabs-content-list {
list-style-type: none;
}
.tabs-content-list>li:before {
content: '✦';
padding-right: 5px;
}
.letter {
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
margin: 26px auto 0;
max-width: 600px;
min-height: 300px;
padding: 24px;
position: absolute;
width: 80%;
top: 0;
}
.letter:before,
.letter:after {
content: "";
height: 98%;
position: absolute;
width: 100%;
z-index: -5;
}
.letter:before {
background: #fafafa;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
left: -5px;
top: 4px;
transform: rotate(-2.5deg);
}
.letter:after {
background: #f6f6f6;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
right: -3px;
top: 1px;
transform: rotate(1.4deg);
}
.up {
z-index: 3;
}
.upper {
z-index: 4;
}
.down {
z-index: 2;
}
.box {
width: 100px;
min-width: 100px;
display: block;
height: 35px;
position: absolute;
border-radius: 5px;
background: linear-gradient(to right, #abbd73 35%, #d6e2ad 100%);
margin-bottom: 40px;
padding: 15px 25px 0 40px;
color: darkslategray;
box-shadow: 1px 2px 1px -1px #777;
transition: background 200ms ease-in-out;
cursor: pointer;
}
.box1 {
top: 60px;
left: 561px;
text-align: end;
}
.box2 {
top: 60px;
left: 563px;
text-align: end;
}
.shadow {
position: relative;
}
.box:hover {
background: linear-gradient(to right, #abbd73 0%, #abbd73 100%);
}
.shadow:hover::before {
transform: rotate(0deg);
bottom: 20px;
z-index: -10;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="tabs-wrapper">
<div class="upper box box1 shadow" id="rools-sticker">Правтые</div>
<div class="upper box box2 shadow" id="regs-sticker">Правила</div>
<div class="letter">
<div class="tabs-content">
<h1 class="tabs_content-title">Правила и регламент</h1>
<p class="tabs-content-subtitle">Правила:</p>
<ul class="tabs-content-list">
<li>Пункт 1</li>
<li>Пункт 2</li>
<li>Пункт 3</li>
</ul>
<p class="tabs-content-subtitle">Регламент:</p>
<ul class="tabs-content-list">
<li>Пункт 1</li>
<li>Пункт 2</li>
<li>Пункт 3</li>
</ul>
</div>
</div>
</div>
</div>
<script>
document.getElementById('rools-sticker').addEventListener("click", function () {
document.querySelector('.box1').classList.toggle('up');
document.querySelector('.box2').classList.toggle('down');
});
document.getElementById('regs-sticker').addEventListener("click", function () {
document.querySelector('.box2').classList.toggle('up');
document.querySelector('.box1').classList.toggle('down');
});
</script>
</body>
</html>
[/html]
Поделиться52023-12-02 23:31:50
[dice]count = 1 | sides = 20 | bonus = 5 | reason = [/dice]
Поделиться62023-12-05 22:02:53
[Dice]{"dices":"1","edges":"20","bonuses":[3,2,4,1],"penalties":[2, 3, 4, 1],"actions":"бег2"}[/Dice]
Поделиться72023-12-05 22:09:37
[Dice]{"dices":"1","edges":"20","bonuses":[3,2,4,1],"penalties":[2, 3, 4, 1],"actions":"бег2"}[/Dice]
Поделиться82023-12-05 22:13:45
[Dice]{"dices":"1","edges":"20","bonuses":[3,2,4,1],"penalties":[2, 3, 4, 1],"actions":"бег2"}[/Dice]