Style : Lys/widget.css

Fichier CSS
| Mardi 12 Mars 2024, 18:19:36

/**
* Lys
*
* GNU General Public License
*
* Copyright © 2007 - 2024, Yohann Schwan. All rights reserved.
*/

/**
*
* Image/Video Ratio
*
*/
.r9x16, .r16x9, .r3x4, .r4x3, .r1x1 {
position: relative;
height: 0;
width: 100%;
padding-bottom: 100%;
}

.
r9x16 iframe, .r16x9 iframe,
.
r3x4 iframe, .r4x3 iframe, .r1x1 iframe {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
}

.
r4x3 {
padding-bottom: 75%;
}

.
r3x4 {
padding-bottom: 133.33%;
}

.
r9x16 {
padding-bottom: 177.77%;
}

.
r16x9 {
padding-bottom: 56.25%;
}

/**
*
* u[name] classes.
*
*/
.uTwocolumns {
column-count: 2;
}

.
uThreecolumns {
column-count: 3;
}

.
uHuge {
font-size: 1.2em;
}

.
uSmall {
font-size: 0.9em;
}

.
uTiny {
font-size: 0.8em;
}

.
uLeft {
text-align: left !important;
}

.
uCenter {
text-align: center !important;
}

.
uRight {
text-align: right !important;
}

.
uMiddle {
vertical-align: middle !important;
}

.
uBottom {
vertical-align: bottom !important;
}

.
uCode {
background: #ddd;
}

.
uBox {
background: #fff;
border: 1px solid #bbb;
border-radius: 7px;
padding: 9px;
}

.
uDoublebox {
background: #fff;
border: 5px double #000;
padding: 5px;
}

.
uDoublebox b {
font-size: 1.2em;
font-weight: normal;
}

.
uWarning {
background-color: #edd;
border-color: #edd;
color: #b33;
}

.
uWarning a {
border-bottom: 1px dashed #400;
color: #400;
}

.
uAbstract {
font-style: italic;
}

/**
*
* .text
*
*/
.text * + h2 {
margin-top: 0.5em;
}

.
text p {
margin-bottom: 0.5em;
}

.
text table {
margin: 10px auto;
}

.
text td {
padding: 1px 10px;
}

/**
*
* More Tools
*
*/
.box {
display: block;
background: #fff;
color: #000;
border: 2px solid #777;
border-radius: 7px;
padding: 5px 10px;
}

b.box {
background-color: #ddd;
border-color: #ddd;
font-weight: normal;
}

.
box a,
.
box input,
.
box textarea {
background: transparent;
color: inherit;
border: 0;
padding: 0;
margin: 0;
width: 100%;
}

.
box, .box input {
font-size: 1em;
}

.
ok {
background: #444;
color: #ddd;
text-align: center;
}

.
ok a:hover,
.
ok input:hover {
color: #fff !important;
}

/**
*
* More Widgets
*
*/
.one {
height: 1px;
width: 1px;
}

.
hidden, .help, .off, *:target .on {
position: fixed;
left: -2000px;
}

.
help:target, *:target .off, .on {
position: static;
left: 0;
}

.
transparent, .fullscreen:target {
background-color: rgba(255,255,255,0.7) !important;
}

.
on_middle {
position: relative;
height: 5em;
}

.
fullscreen:target, .fullscreen:target > *, .on_middle > * {
display: block !important;
left: 0 !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}

.
fullscreen:target {
position: fixed !important;
top: 0 !important;
height: 100% !important;
min-height: 750px !important;
z-index: 2000 !important;
}

.
fullscreen:target > *, .on_middle > * {
position: absolute !important;
top: 50% !important;
transform: translateY(-50%) !important;
}

.
fullscreen:target > * > * {
background: #fff;
color: #000;
border: 2px solid #ddd;
border-radius: 7px;
}

/**
* @Smartphone
*/
@media screen and (max-width: 680px) {

.
uOnecolumn {
column-count: 1 !important;
}
}

/**
* @Not-Smartphone
*/
@media print, (min-width: 681px) {

form .c2 {
text-align: right;
}
}

/**
* @Desktop
*/
@media screen and (min-width: 1021px) {

form .c2pp {
text-align: right;
}
}

/**
* @Print
*/
@media print {

footer.container, .sidebar, .uAlone, .uBreak {
page-break-before: always;
break-
before: always;
display: block !important;
}

.
uAlone {
page-break-after: always;
break-
after: always;
}

.
uLandscape {
page: rightRotated;
}
}