Très bien ton Design.
Pourrais-tu donner le paramètre CSS que tu as passé dans ton virtuel "Ambiance" ?
J'imagine que tu utilises le format tableau.
Je galère un peu pour trouver les bons paramètres pour bien aligner les infos dans mon tableau.
Très bien ton Design.
Non, elle est donné ailleurs dans le fil... la revoilà :
Top merci pour le partage ça donne des idées et des bonnes idéesTheduck38 a écrit :La suite... les températures.
J'étais un peu dans le même cas.Theduck38 a écrit : ↑31 janv. 2018, 11:20Voilà ma config (très simple en fait) :
- Style générale des cases : padding: 1px 3px 1px 3px;
- En-tête de colonnes : rien
- Lignes avec valeurs : float: left;line-height:30px; (pour la première case avec le libellé texte) // rien // rien
- Sauts de lignes : height: 10px; // height: 10px; // height: 10px;
Si ce n'est pas assez clair, dis-moi... je ferai une copie d'écran.
Toute ma problématique est venue du texte des lignes qui s'affichait un peu plus haut que les valeurs sur la même ligne... j'ai mis un coup d'inspecteur et bloqué la hauteur à 30px pour forcer le centrage. Il y a peut-être plus élégant, mais je ne maîtrise pas assez le css.
Chaque commande ayant une valeur temp/hum/etc.. est affichée avec le widget "line(core)".
Code : Tout sélectionner
background: -moz-linear-gradient(top, rgba(52,73,94,1) 63%, rgba(72,103,131,1) 73%, rgba(125,185,232,0) 100%);
background: -webkit-linear-gradient(top, rgba(52,73,94,1) 63%,rgba(72,103,131,1) 73%,rgba(125,185,232,0) 100%);
background: linear-gradient(to bottom, rgba(52,73,94,1) 63%,rgba(72,103,131,1) 73%,rgba(125,185,232,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#34495e', endColorstr='#007db9e8',GradientType=0 );
Code : Tout sélectionner
<!-- PRINCIPALE -->
<div style="
position : relative;
box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.5);
min-height: 100%;
background: -moz-linear-gradient(top, rgba(52,73,94,1) 63%, rgba(72,103,131,1) 73%, rgba(125,185,232,0) 100%);
background: -webkit-linear-gradient(top, rgba(52,73,94,1) 63%,rgba(72,103,131,1) 73%,rgba(125,185,232,0) 100%);
background: linear-gradient(to bottom, rgba(52,73,94,1) 63%,rgba(72,103,131,1) 73%,rgba(125,185,232,0) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#34495e', endColorstr='#007db9e8',GradientType=0 );
border-radius: 10px 0px 10px 0px;
">
<div style="
position : relative;
min-height: 100%;
margin: 0 auto;
padding-bottom: 0;
width: 100%;
">
<div style="
height:30px;
width:30px;
position:absolute;
margin-top:6px;
margin-left:5px;
max-width:100%;
height:auto;
">
<img src="THYER/design/ipad/V2/images/HP_MINI.png" height=30px width=30px></div>
<div style="
padding-top: 10px;
padding-right:20px;
font-size:16px;
height:40px;
font-family:Arial;
font-weight:normal;
text-align:right;
color: #FFF;
background: rgb(69,72,77);
background: -moz-linear-gradient(top, rgba(69,72,77,1) 0%, rgba(0,0,0,1) 100%);
background: -webkit-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%);
background: linear-gradient(to bottom, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 );
border-radius: 10px 0px 0px 0px;
border-bottom: 1px solid #111111;">
NOM DE LA TUILE
</div>
</div>
</div>
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 17 invités