concoction

Объявление

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » concoction » ХТМЛ и журнал » таблицы


таблицы

Сообщений 1 страница 7 из 7

1

[html]
<style>

      &.portfolio {
         transition: all 0.8s ease;

         .icon {
            background-image: url(https://rafaelalucas91.github.io/assets … n/link.svg);
         }
      }

      &.dribbble {
         transition: all 0.3s ease;
         .icon {
            background-image: url(https://rafaelalucas91.github.io/assets … ibbble.svg);
         }
      }

      &.linkedin {
         transition: all 0.8s ease;
         .icon {
            background-image: url(https://rafaelalucas91.github.io/assets … nkedin.svg);
         }
      }
   }

   &:hover {
      width: 105px;
      height: 105px;
      transition: all $transition;

      .logo {
         opacity: 1;
         transition: all 0.6s ease;
      }

      .social {
         opacity: 1;

         .icon {
            opacity: 0.9;
         }

         &:hover {
            background-size: 28px;
            .icon {
               background-size: 65%;
               opacity: 1;
            }
         }

         &.portfolio {
            right: 0;
            bottom: calc(100% - 40px);
            transition: all 0.3s 0s $cubic;
            .icon {
               &:hover {
                  background-color: #698fb7;
               }
            }
         }

         &.dribbble {
            bottom: 45%;
            right: 45%;
            transition: all 0.3s 0.15s $cubic;
            .icon {
               &:hover {
                  background-color: #ea4c89;
               }
            }
         }

         &.linkedin {
            bottom: 0;
            right: calc(100% - 40px);
            transition: all 0.3s 0.25s $cubic;
            .icon {
               &:hover {
                  background-color: #0077b5;
               }
            }
         }
      }
   }
}

@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,400i|IBM+Plex+Sans+Condensed:400,400i|IBM+Plex+Sans:100,100i,400,400i,700,700i|IBM+Plex+Serif:400,400i");

$text: #686868;
$m01: #667eea; /* main 1*/
$m02: #764ba2; /* main 2*/
$n01: #f5f7fa; /* neutral 1*/
$n02: #c3cfe2; /* neutral 2*/

body {
   background-color: #2e2e2e;
   font-family: "IBM Plex Sans", sans-serif;
   margin:0;
}

#wrapper {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
}

.content {
   max-width: 600px;
   width: 100%;
   min-width: 260px;
   margin: 0 5%;
   margin-top: 10%;
   transition: 0.3s ease;

   @media screen and (max-width: 512px) {
      margin: 0 4%;
      margin-top: 5%;
   }
}

/* Tabs menu */

.tabs {
   margin: 0;
   background-image: linear-gradient(135deg, $n01 0%, $n02 100%);
   display: flex;
   justify-content: space-between;
   align-items: center;
   height: 80px;
   border-radius: 2px 2px 0px 0px;

   @media screen and (max-width: 512px) {
      height: 40px;
   }
}

/* Tab Links */

.tablinks {
   background: transparent;
   background-image: linear-gradient(90deg, transparent 70%, rgba(255, 255, 255, 0.2) 100%);
   border: none;
   outline: none;
   cursor: pointer;
   width: 25%; /*change depending on the number of tabs*/
   height: 80px;
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 16px;
   font-family: "IBM Plex Sans", sans-serif;
   overflow: hidden;
   transition: 0.3s ease;

   @media screen and (max-width: 512px) {
      height: 40px;
      font-size: 12px;
   }
}

.tablinks:before /* Gradient */ {
   background-image: linear-gradient(135deg, $m01 0%, $m02 100%);
   content: "";
   width: 100%;
   height: 0px;
   position: absolute;
   top: 0;
   left: 0;
   transition: 0.3s ease-in-out;
   z-index: 2;
}

/*tab buttons hover*/

.tablinks:hover::before {
   height: 100%;
   z-index: 2;
   bottom: 0;
   
   @media screen and (max-width: 512px) {
      height: 0;
   }
}

/* Tab active */

.tablinks.active {
   background-color: white;
   z-index: 0;
   border-right: 0px;
   border-left: 0px;
   height: 110px;
   bottom: 0px;
   overflow: hidden;
   
   @media screen and (max-width: 512px) {
      height: 60px;
   }
}

.tablinks.active:before /* Gradient */ {
   content: "";
   width: 100%;
   height: 5px;
   top: 0;
   left: 0;
}

/* Tabs text */

.tablinks.active p,
.tablinks.active:hover p {
   opacity: 1;
   background: -webkit-linear-gradient(135deg, $m01 0%, $m02 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.tablinks p {
   opacity: 0.6;
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 2;
   transition: 0.5s ease;
   padding: 0;
   margin: 0;
   color: $text;
   backface-visibility: hidden;
   font-weight: 400;
}

.tablinks:hover p {
   color: #000;
   opacity: 1;
   
   @media screen and (max-width: 512px) {
      color: $text;
      opacity: 0.6;
   }
}

/* Tabs text bigger */

.tablinks p:before {
   content: attr(data-title);
   position: absolute;
   height: auto;
   width: auto;
   color: #ccc;
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0.1;
   font-size: 40px;
   transition: 1s ease-out;
   z-index: -1;
   font-weight: 600;
   top: 110%;
   
   @media screen and (max-width: 512px) {
      display: none;
   }
}

.tablinks:hover p:before {
   opacity: 0.1;
   font-size: 40px;
   top: -80%;
}

/* tab content */

.wrapper_tabcontent {
   background-color: white;
   margin-top: 0px;
   z-index: -3;
   position: relative;
   opacity: 1;
   padding: 40px 60px;
   overflow: hidden;
   transition: all 1s ease;
   top: 0;
}

.tabcontent {
   display: none;
   min-height: 180px;
   
}

@keyframes tabEffect {
   from {
      top: -40px;
   }
   to {
      top: 0px;
   }
}

.tabcontent.active {

   transition: all 1s ease;
   display: block;
}

/* Tab content line */
.wrapper_tabcontent:after {
   content: "";
   height: 5px;
   width: 100%;
   position: absolute;
   background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   left: 0;
   bottom: 0;
   z-index: -2;
   transition: all 1s ease;
}

/* Title */
.tabcontent h3 {
   font-size: 40px;
   top: 75px;
   transform: rotate(90deg);
   position: absolute;
   left: -90px;
   opacity: 0.1;
   width: 200px;
   height: 60px;
   background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   padding: 0;
   animation: city 1s ease;

   @media screen and (max-width: 512px) {
      top: 65px;
   }
}

@keyframes city {
   from {
      left: -150px;
   }
   to {
      left: -90px;
   }
}

/* Text*/
.tabcontent p {
   color: $text;
   margin: 0;
   padding: 0;
   line-height: 28px;
   font-weight: 100;
   transition: all 1s ease;
   animation: fadeEffect 0.6s ease;
   width: 100%;
   font-size: 16px;
   font-family: "IBM Plex Sans", sans-serif;

   @media screen and (max-width: 512px) {
      font-size: 14px;
      line-height: 26px;
   }
}

@keyframes fadeEffect {
   from {
      opacity: 0;
      margin-left: 30px;
   }
   to {
      opacity: 1;
      margin-left: 0;
   }
}
     
</style>
<script>

// tabs

var tabLinks = document.querySelectorAll(".tablinks");
var tabContent = document.querySelectorAll(".tabcontent");

tabLinks.forEach(function(el) {
   el.addEventListener("click", openTabs);
});

function openTabs(el) {
   var btnTarget = el.currentTarget;
   var country = btnTarget.dataset.country;

   tabContent.forEach(function(el) {
      el.classList.remove("active");
   });

   tabLinks.forEach(function(el) {
      el.classList.remove("active");
   });

   document.querySelector("#" + country).classList.add("active");
   
   btnTarget.classList.add("active");
}

</script>

<section id="wrapper">
   <div class="content">
      <!-- Tab links -->
      <div class="tabs">
         <button class="tablinks active" data-country="London"><p data-title="London">London</p></button>
         <button class="tablinks" data-country="Paris"><p data-title="Paris">Paris</p></button>
         <button class="tablinks" data-country="Barcelona"><p data-title="Barcelona">Barcelona</p></button>
         <button class="tablinks" data-country="Madrid"><p data-title="Madrid">Madrid</p></button>
      </div>

      <!-- Tab content -->
      <div class="wrapper_tabcontent">
         <div id="London" class="tabcontent active">
            <h3>London</h3>
            <p>London is the capital of Great Britain. It is one of the greatest cities in the world. It is an important business and financial centre. It is an intellectual centre, too. Everywhere in London, there are open spaces: Hyde Park and Regent Park are the largest. The City is the oldest part of London. </p>
         </div>

         <div id="Paris" class="tabcontent">
            <h3>Paris</h3>
            <p>Paris is in the Paris department of the Paris-Isle-of-France region The French historic, political and economic capital, with a population of only 2.5 million is located in the northern part of France. One of the most beautiful cities in the world. Home to historical monuments such as Notre Dame, the Eiffel tower (320m), Bastille, Louvre and many more. </p>
         </div>

         <div id="Barcelona" class="tabcontent">
            <h3>Barcelona</h3>
            <p>Barcelona has been an urban laboratory since the high Medieval Ages. A place of diversity, a backdrop for a multiplicity of social and cultural processes on multiple scales that reflect different ways of constructing the future, a city with a long experience of urban life and social innovations. </p>
         </div>

         <div id="Madrid" class="tabcontent">
            <h3>Madrid</h3>
            <p>Madrid is in the middle of Spain, in the Community of Madrid. The Community is a large area that includes the city as well as small towns and villages outside the city. 7 million people live in the Community. More than 3 million live in the city itself.
            </p>
         </div>
      </div>
   </div>
</section>
[/html]

0

2

[html]
<style>

button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none; }

.tabs {
  display: block;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  flex-wrap: wrap;
  background: #fff1e9;
  margin: 0;
  overflow: hidden; }
  .tabs [class^="tab"] label,
  .tabs [class*=" tab"] label {
    color: #000;
    cursor: pointer;
    display: block;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1em;
    padding: 2rem 0;
    text-align: center; }
  .tabs [class^="tab"] [type="radio"],
  .tabs [class*=" tab"] [type="radio"] {
    border-bottom: 1px solid rgba(239, 237, 239, 0.5);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out; }
    .tabs [class^="tab"] [type="radio"]:hover, .tabs [class^="tab"] [type="radio"]:focus,
    .tabs [class*=" tab"] [type="radio"]:hover,
    .tabs [class*=" tab"] [type="radio"]:focus {
      border-bottom: 1px solid #fd264f; }
    .tabs [class^="tab"] [type="radio"]:checked,
    .tabs [class*=" tab"] [type="radio"]:checked {
      border-bottom: 2px solid #fd264f; }
    .tabs [class^="tab"] [type="radio"]:checked + div,
    .tabs [class*=" tab"] [type="radio"]:checked + div {
      opacity: 1; }
    .tabs [class^="tab"] [type="radio"] + div,
    .tabs [class*=" tab"] [type="radio"] + div {
      display: block;
      opacity: 0;
      padding: 2rem 0;
      width: 90%;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out; }
  .tabs .tab-2 {
    width: 50%; }
    .tabs .tab-2 [type="radio"] + div {
      width: 200%;
      margin-left: 200%; }
    .tabs .tab-2 [type="radio"]:checked + div {
      margin-left: 0; }
    .tabs .tab-2:last-child [type="radio"] + div {
      margin-left: 100%; }
    .tabs .tab-2:last-child [type="radio"]:checked + div {
      margin-left: -100%; }

</style>

<div class="tabs">
  <div class="tab-2">
    <label for="tab2-1">Первое</label>
    <input id="tab2-1" name="tabs-two" type="radio" checked="checked">
    <div>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas consequat id velit quis vestibulum. Nam id orci eu urna mollis porttitor. Nunc nisi ante, gravida at velit eu, aliquet sodales dui. Sed laoreet condimentum nisi a egestas.</p><p>Donec interdum ante ut enim consequat, quis varius nulla dapibus. Vivamus mollis fermentum augue a varius. Vestibulum in sapien at lectus gravida lobortis vulputate sed metus. Duis scelerisque justo et maximus efficitur. Donec eu eleifend quam. Curabitur aliquet commodo sapien eget vestibulum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum vel aliquet nunc, finibus posuere lorem. Suspendisse consectetur volutpat est ut ornare.</p>
    </div>
  </div>
  <div class="tab-2">
    <label for="tab2-2">Второе</label>
    <input id="tab2-2" name="tabs-two" type="radio">
    <div>
      <p>Quisque sit amet turpis leo. Maecenas sed dolor mi. Pellentesque varius elit in neque ornare commodo ac non tellus. Mauris id iaculis quam. Donec eu felis quam. Morbi tristique lorem eget iaculis consectetur. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean at tellus eget risus tempus ultrices. Nam condimentum nisi enim, scelerisque faucibus lectus sodales at.</p>
    </div>
  </div>
</div>
[/html]

0

3

[hideprofile][html]
<style>

*{
  margin:0;
  padding:0;
}

.container{  padding-top: 20px;
  padding-bottom: 20px;
    margin-left: -40px;}

.background-img{
  background-image: url("https://i.redd.it/ue05165ttiz31.png");
height: 400px;
  width: 680px;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 5% auto;
  padding:20px;
  border: 1px solid #2a3cad;
  border-radius: 4px;
  box-shadow: 0px 0px 5px #2a3cad;
  position: relative;
}

.content h2{ font-size:19px;}

.box{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  background: #111845a6;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(23, 32, 90);
  border: 2px solid #2a3cad;
  color: white;
  padding: 20px;
}

.box:before{
  content: '';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: rgba(255,255,255,0.1);
  transition:0.5s;
  pointer-events: none;
}

.box:hover:before{
  left:-50%;
  transform: skewX(-5deg);
}

.box .content{
  position:absolute;
  top:15px;
  left:15px;
  right:15px;
  bottom:15px;
  border:1px solid #f0a591;
  padding:20px;
  text-align:center;
  box-shadow: 0 5px 10px rgba(9,0,0,0.5);
overflow: overlay;
 
}

.box span{
  position: absolute;
  top: 0;
  left: -2px;
  width: 700px;
  height: 234%;
  display: block;
  box-sizing: border-box;
 
}

.box span:nth-child(1)
{
  transform:rotate(0deg);
}

.box span:nth-child(2)
{
  transform:rotate(90deg);
    margin-left: 2px;
}

.box span:nth-child(3)
{
    transform: rotate(180deg);
    margin-top: -396px;
}

.box span:nth-child(4)
{
  transform:rotate(270deg);
    margin-left: -2px;
}

.box span:before
{
  content: '';
  position: absolute;
  width:100%;
  height: 2px;
  background: #50dfdb;
  animation: animate 4s linear infinite;
}

@keyframes animate {
  0% {
  transform:scaleX(0);
  transform-origin: left;
  }
  50%
  {
    transform:scaleX(1);
  transform-origin: left;
  }
  50.1%
  {
    transform:scaleX(1);
  transform-origin: right;
   
  }
 
  100%
  {
    transform:scaleX(0);
  transform-origin: right;
   
  }
 
 
}
</style>
<script>

</script>

<section>
  <div class="container">
    <div class="background-img">
      <div class="box">
        <span></span>
        <span></span>
        <span></span>
        <span></span>
        <div class="content">
          <h2>Город Наверху</h2>
          <p><a href="#" style="color:#00ffe9;" target="_blank">Зал Совета директоров много лет не ремонтировали, священные фрески, которыми был расписан потолок, почти выцвели, пошли замысловатыми пятнами сырости, придававшими загадочность батальным сценам.</a>
<br>
Господин директор Спел разглядывал потолок, словно стараясь угадать смысл в изображениях. Он не хотел показывать, что интересуется происходящим.
<br>
Господин директор Мекиль, начальник полиции, уже заканчивал свою разгромную речь, и до слуха Спела долетали лишь отрывки фраз: «... преступно нарушив Порядок, инженер Лемень... опорочив честное имя одного из самых уважаемых семейств, инженер Лемень...»
<br>
Мекиль, по прозвищу Мокрица, имел в виду семейство Спелов. Инженер Лемень вознамерился жениться на дочери Спела.
<br>
Шестнадцать директоров, сидевших в жестких деревянных креслах вокруг массивного, отполированного локтями стола, слушали внимательно, и каждый из них старался понять, какую угрозу для них таит гневная речь Мокрицы. Тощий, мрачный, похожий на летучую мышь, Первый директор Калгар задумчиво крутил пальцами колокольчик. Его не устраивало усиление позиции начальника полиции.
<br>
Калгар покосился на Спела. Тот разглядывал фрески на потолке. Он не посмел пойти против Мокрицы и теперь делает вид, что слова Мекиля его не касаются.</p>
        </div>
       
      </div>
    </div>
  </div>
</section>

[/html]

0

4

[html]
<style>
* {
font-family: Arial, sans;
margin: 0;
padding: 0;
box-sizing: border-box;
-moz-box-sizing: border-box;
}

h1 {
margin: 1em 0;
text-align: center;
}

#container {
    margin: 0 auto;
    width: 50%;  /* Ancho del contenedor */
}

#container input {
height: 2.5em;
visibility: hidden;
}

#container label {
background: #f9f9f9;  /* Fondo de las pestañas */
border-radius: .25em .25em 0 0;
color: #888;  /* Color del texto de las pestañas */
cursor: pointer;
display: block;
float: left;
font-size: 1em;  /* Tamaño del texto de las pestañas */
height: 2.5em;
line-height: 2.5em;
margin-right: .25em;
padding: 0 1.5em;
text-align: center;
}

#container input:hover + label {
background: #ddd;  /* Fondo de las pestañas al pasar el cursor por encima */
color: #666;  /* Color del texto de las pestañas al pasar el cursor por encima */
}

#container input:checked + label {
background: #f1f1f1;  /* Fondo de las pestañas al presionar */
color: #444; /* Color de las pestañas al presionar */
position: relative;
z-index: 6;
/*
-webkit-transition: .1s;
-moz-transition: .1s;
-o-transition: .1s;
-ms-transition: .1s;
*/
}

#content {
background: #f1f1f1;  /* Fondo del contenido */
border-radius: 0 .25em .25em .25em;
min-height: 20em;  /* Alto del contenido */
position: relative;
width: 100%;
z-index: 5;
}

#content div {
opacity: 0;
padding: 1.5em;
position: absolute;
z-index: -100;
/*
transition: all linear 0.1s;
*/
}

#content-1 p {
clear: both;
margin-bottom: 1em;
}
#content-1 p.left img {
float: left;
margin-right: 1em;
}
#content-1 p.last {
margin-bottom: 0;
}

#content-2 p {
float: left;
width: 48.5%;
}
#content-2 p.column-right {
margin-left: 3%;
}
#content-2 p img {
display: block;
margin: 0 auto 1em auto;
}
#content-3 p,
#content-3 ul {
margin-bottom: 1em;
}
#content-3 ul {
margin-left: 2em;
}

#container input#tab-1:checked ~ #content #content-1,
#container input#tab-2:checked ~ #content #content-2,
#container input#tab-3:checked ~ #content #content-3 {
    opacity: 1;
    z-index: 100;
}

input.visible {
  visibility: visible !important;
}
</style>
<script>

</script>
<body>
<!--Título-->
<h1>Tabs with CSS3 & HTML5 only</h1>
<!--Contenedor-->
<div id="container">
    <!--Pestaña 1 activa por defecto-->
    <input id="tab-1" type="radio" name="tab-group" checked="checked" />
    <label for="tab-1">Tab 1</label>
    <!--Pestaña 2 inactiva por defecto-->
    <input id="tab-2" type="radio" name="tab-group" />
    <label for="tab-2">Tab 2</label>
    <!--Pestaña 3 inactiva por defecto-->
    <input id="tab-3" type="radio" name="tab-group" />
    <label for="tab-3">Tab 3</label>
    <!--Contenido a mostrar/ocultar-->
    <div id="content">
    <!--Contenido de la Pestaña 1-->
        <div id="content-1">
            <p class="left"><img src="http://ximg.es/160x120" alt="">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum sit reprehenderit iusto harum minima. Assumenda, accusamus, perspiciatis inventore tempora qui pariatur quisquam? Deleniti, placeat ea nostrum officiis obcaecati temporibus quod. Ullam, in, adipisci autem at fugit ab tempore enim ratione nesciunt alias corporis vitae quo quod nostrum itaque vero iure?</p>
            <p class="left last"><img src="http://ximg.es/160x120" alt="">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempore, id blanditiis deserunt in molestiae excepturi incidunt molestias dolor sunt dolore obcaecati non repellat mollitia error placeat est exercitationem sit voluptates iure autem saepe voluptas harum unde perferendis modi provident labore voluptatum. Repudiandae, aspernatur sit harum quod vero quos sequi voluptas!</p>
        </div>
        <!--Contenido de la Pestaña 2-->
        <div id="content-2">
            <p class="column-left"><img src="http://ximg.es/200x150" alt="">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illum, est, nisi enim voluptates dicta quibusdam recusandae eveniet provident non at nostrum nesciunt laudantium omnis aliquam debitis magni expedita cumque tempore.</p>
            <p class="column-right"><img src="http://ximg.es/200x150" alt="">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sed, molestiae, officia repellendus quasi cumque dolor eius deserunt possimus aliquid neque nam assumenda veniam soluta enim commodi aperiam reprehenderit quia incidunt.</p>
        </div>
        <!--Contenido de la Pestaña 3-->
        <div id="content-3">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facilis, aperiam, enim odit placeat minus ab vero molestiae ad fugit maiores eaque saepe debitis assumenda ut ipsam eius sit repellendus dolore.</p>
        <ul>
            <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae, in magni illo dolore dicta vero.</li>
            <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti, minus, aspernatur voluptatem doloribus labore modi.</li>
            <li>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora, exercitationem quia id accusamus beatae sunt? Dolorum mollitia sint debitis delectus.</li>
        </ul>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facilis, accusantium, provident ab quo sed blanditiis perspiciatis distinctio aut voluptatibus cum odio quaerat iure vel dolorum fugit explicabo suscipit tenetur. Sed!</p>
        </div>
    </div>
</div>
</body>

[/html]

0

5

[html]
<style>
@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
   font-family: 'Open Sans', sans-serif;
   background-color: #C2EABA;
   padding-top: 50px;
   line-height: 1.4;
   font-size: 1.4em;
}

.tabs {
  clear: both;
  position: relative;   
   max-width: 650px;
   margin: 0 auto;
   /* you can either manually set a min-height here or do it via JS ---> */
}

.tab {
  float: left;
}

.tab label {
  margin-right: 20px;
  position: relative;
  top: 0;
  cursor: pointer;
  color: #333;
   text-transform: uppercase;
}

.tab [type=radio] {
  display: none;   
}

.tab__content {
   position: relative;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity .2s cubic-bezier(.42,0,.34,1.01);
  opacity: 0;
}

[type=radio]:checked ~ label {
  border-bottom: 2px solid #1d1d1d;
  color: #1d1d1d;
  z-index: 2;
}

[type=radio]:checked ~ label ~ .tab__content {
  z-index: 1;
  opacity: 1;
}
</style>
<script>
(function($, document) {
   
      // get tallest tab__content element
      let height = -1;

    $('.tab__content').each(function() {
      height = height > $(this).outerHeight() ? height : $(this).outerHeight();
         $(this).css('position', 'absolute');
    });
     
      // set height of tabs + top offset
    $('[data-tabs]').css('min-height', height + 40 + 'px');
   
}(jQuery, document));
</script>
<div data-tabs class="tabs">   
   <div class="tab">
      <input type="radio" name="tabgroup" id="tab-1" checked>
      <label for="tab-1">Tab 1</label>
      <div class="tab__content">
         <h4>Tab heading 1</h4>
         <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Incidunt libero ipsum, veniam magni modi exercitationem debitis ducimus assumenda ratione corporis, illum eius, laborum tempore cumque amet id perspiciatis nostrum unde?</p>
         <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ipsum, maiores.</p>
      </div>
   </div>
   <div class="tab">
      <input type="radio" name="tabgroup" id="tab-2">
      <label for="tab-2">Tab 2</label>
      <div class="tab__content">
         <h4>Tab heading 2</h4>
         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Consectetur odio cum eveniet excepturi eum provident molestias ad ipsa unde dignissimos illo porro animi earum aliquam perspiciatis id omnis, adipisci incidunt. Qui, beatae. Beatae animi totam obcaecati at quae, iste facere fuga nemo pariatur esse nihil?</p>
         <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Doloremque commodi eos voluptatem numquam pariatur deleniti repellat fugiat eligendi nulla molestiae sunt praesentium vero sequi distinctio error quibusdam maiores natus magnam, explicabo hic sed alias dolores, quis eum! Reprehenderit atque cupiditate dolorum? Saepe, doloribus veniam? Nulla!</p>
      </div>
   </div>
   <div class="tab">
      <input type="radio" name="tabgroup" id="tab-3">
      <label for="tab-3">Tab 3</label>
      <div class="tab__content">
         <h4>Tab heading 3</h4>
         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Laboriosam officiis voluptas maiores deserunt ullam aliquam?</p>
         <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Accusamus, officia accusantium quod fuga porro eius animi earum excepturi omnis! Reprehenderit!</p>
      </div>
   </div>
   <div class="tab">
      <input type="radio" name="tabgroup" id="tab-4">
      <label for="tab-4">Tab 4</label>
      <div class="tab__content">
         <h4>Tab heading 4</h4>
         <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Officia exercitationem veritatis vero eaque. Nam totam dolorem sapiente ullam non sed nostrum praesentium voluptatem, ad quam libero deserunt nemo fuga hic repudiandae veritatis cupiditate, mollitia recusandae!</p>
      </div>
   </div>
</div>

[/html]

0

6

[html]
<style>
/* Tabs */
.tabs {
  width: 600px;
  background-color: #09F;
  border-radius: 5px 5px 5px 5px;
}
ul#tabs-nav {
  list-style: none;
  margin: 0;
  padding: 5px;
  overflow: auto;
}
ul#tabs-nav li {
  float: left;
  font-weight: bold;
  margin-right: 2px;
  padding: 8px 10px;
  border-radius: 5px 5px 5px 5px;
  /*border: 1px solid #d5d5de;
  border-bottom: none;*/
  cursor: pointer;
}
ul#tabs-nav li:hover,
ul#tabs-nav li.active {
  background-color: #08E;
}
#tabs-nav li a {
  text-decoration: none;
  color: #FFF;
}
.tab-content {
  padding: 10px;
  border: 5px solid #09F;
  background-color: #FFF;
}

</style>
<script>
// Show the first tab and hide the rest
$('#tabs-nav li:first-child').addClass('active');
$('.tab-content').hide();
$('.tab-content:first').show();

// Click function
$('#tabs-nav li').click(function(){
  $('#tabs-nav li').removeClass('active');
  $(this).addClass('active');
  $('.tab-content').hide();
 
  var activeTab = $(this).find('a').attr('href');
  $(activeTab).fadeIn();
  return false;
});
</script>

<div class="tabs">
  <ul id="tabs-nav">
    <li><a href="#tab1">Bob</a></li>
    <li><a href="#tab2">Dante</a></li>
    <li><a href="#tab3">Randall</a></li>
    <li><a href="#tab4">Jay</a></li>
  </ul> <!-- END tabs-nav -->
  <div id="tabs-content">
    <div id="tab1" class="tab-content">
      <h2>Silent Bob</h2>
      <p>"You know, there's a million fine looking women in the world, dude. But they don't all bring you lasagna at work. Most of 'em just cheat on you."</p>
    </div>
    <div id="tab2" class="tab-content">
      <h2>Dante Hicks</h2>
      <p>"My friend here's trying to convince me that any independent contractors who were working on the uncompleted Death Star were innocent victims when it was destroyed by the Rebels."</p>
    </div>
    <div id="tab3" class="tab-content">
      <h2>Randall Graves</h2>
      <p>"In light of this lurid tale, I don't even see how you can romanticize your relationship with Caitlin. She broke your heart and inadvertently drove men to deviant lifestyles."</p>
    </div>
    <div id="tab4" class="tab-content">
      <h2>Jay</h2>
      <p>"I don't care if she's my cousin or not, I'm gonna knock those boots again tonight."</p>
    </div>
  </div> <!-- END tabs-content -->
</div> <!-- END tabs -->

[/html]

0

7

[html]
<style>
:root {
--base-color: #453d32;
--second-color: #c9c5b9;
--third-color: #8d8387;
--site: #d2cbc32b;
--light: #fff;
}

.grid {
list-style: none;
margin-left: -40px;
}

.gc {
box-sizing: border-box;
display: inline-block;
margin-right: -.25em;
min-height: 1px;
padding-left: 40px;
vertical-align: top;
}

.gc--1-of-3 {
width: 33.33333%;
}

.gc--2-of-3 {
width: 66.66666%;
}

.naccs {
position: relative;
max-width: 900px;
margin: 100px auto 0;
}

.naccs .menu div {
padding: 15px 20px 15px 40px;
margin-bottom: 10px;
color: var(--base-color);
background: var(--second-color);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
cursor: pointer;
position: relative;
vertical-align: middle;
font-weight: 700;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.naccs .menu div:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.naccs .menu div span.light {
height: 10px;
width: 10px;
position: absolute;
top: 24px;
left: 15px;
background-color: var(--base-color);
border-radius: 100%;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.naccs .menu div.active span.light {
background-color: var(--third-color);
left: 0;
height: 100%;
width: 3px;
top: 0;
border-radius: 0;
}

.naccs .menu div.active {
color: var(--third-color);
padding: 15px 20px 15px 20px;
}

ul.nacc {
position: relative;
height: 0px;
list-style: none;
margin: 0;
padding: 0;
transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

ul.nacc li {
opacity: 0;
transform: translateX(50px);
position: absolute;
list-style: none;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

ul.nacc li.active {
transition-delay: .3s;
z-index: 2;
opacity: 1;
transform: translateX(0px);
}

ul.nacc li p {
margin: 0;
}
</style>
<script>
// Acc
$(document).on("click", ".naccs .menu div", function() {
var numberIndex = $(this).index();

if (!$(this).is("active")) {
    $(".naccs .menu div").removeClass("active");
    $(".naccs ul li").removeClass("active");

    $(this).addClass("active");
    $(".naccs ul").find("li:eq(" + numberIndex + ")").addClass("active");

    var listItemHeight = $(".naccs ul")
    .find("li:eq(" + numberIndex + ")")
    .innerHeight();
    $(".naccs ul").height(listItemHeight + "px");
}
});

</script>

<body>
<div class="naccs">
  <div class="grid">
   <div class="gc gc--1-of-3">
    <div class="menu">
     <div class="active"><span class="light"></span><span>Beer</span></div>
     <div><span class="light"></span><span>Wine</span></div>
     <div><span class="light"></span><span>Lemonade</span></div>
    </div>
   </div>
   <div class="gc gc--2-of-3">
    <ul class="nacc">
     <li class="active">
      <div>
       <p>Beer is the world's oldest[1][2][3] and most widely consumed[4] alcoholic drink; it is the third most popular drink overall, after water and tea.[5] The production of beer is called brewing, which involves the fermentation of sugars, mainly derived
        from cereal grain starches—most commonly from malted barley, although wheat, maize (corn), and rice are widely used.[6] Most beer is flavoured with hops, which add bitterness and act as a natural preservative, though other flavourings such as
        herbs or fruit may occasionally be included. The fermentation process causes a natural carbonation effect, although this is often removed during processing, and replaced with forced carbonation.[7] Some of humanity's earliest known writings refer
        to the production and distribution of beer: the Code of Hammurabi included laws regulating beer and beer parlours,[8] and "The Hymn to Ninkasi", a prayer to the Mesopotamian goddess of beer, served as both a prayer and as a method of remembering
        the recipe for beer in a culture with few literate people.[9][10]</p>
      </div>
     </li>
     <li>
      <div>
       <p>A vine (Latin vīnea "grapevine", "vineyard", from vīnum "wine") in the narrowest sense is the grapevine (Vitis), but more generally it can refer to any plant with a growth habit of trailing or scandent (that is, climbing) stems, lianas or runners.
        The word also can refer to such stems or runners themselves, for instance when used in wicker work.[1][2] In the United Kingdom, the term "vine" applies almost exclusively to the grapevine. The term "climber" is used for all climbing plants.[3]</p>
      </div>
     </li>
     <li>
      <div>
       <p>Lemonade is any of various sweetened beverages found around the world, all characterized by lemon flavor. Most lemonade varieties can be separated into two distinct types: cloudy and clear; each is known simply as "lemonade" (or a cognate) in countries
        where dominant.[1] Cloudy lemonade, generally found in North America and India, is a traditionally homemade drink made with lemon juice, water, and sweetener such as cane sugar or honey.[2] Found in the United Kingdom, Ireland, South Africa, Australia,
        and New Zealand, clear lemonade is a lemon flavoured carbonated soft drink. Not to be confused with Sprite a lemon-lime flavored, soft drink.</p>
      </div>
     </li>
    </ul>
   </div>
  </div>
</div>
</body>

[/html]

0


Вы здесь » concoction » ХТМЛ и журнал » таблицы


Рейтинг форумов | Создать форум бесплатно