Using v5's CSS to adapt them to the style of the v5.
Signed-off-by: mibi88 <mbcontact50@gmail.com>
This commit is contained in:
parent
fddf5bf9d5
commit
562082d199
17
index.html
17
index.html
|
@ -5,28 +5,31 @@
|
|||
<title>Planète Casio Websocket IRC</title>
|
||||
<script src="v5shoutbox.js"></script>
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<link href="/static/css/themes/default_theme.css" rel="stylesheet">
|
||||
<link href="/static/css/global.css" rel="stylesheet">
|
||||
<link href="/static/css/form.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div id="v5shoutbox">
|
||||
<header>
|
||||
<div class="status"></div>
|
||||
<div class="grow"></div>
|
||||
<div class="channel-buttons"></div>
|
||||
<div class="channel-buttons form"></div>
|
||||
<a class="show-log" role="button">Log</a>
|
||||
</header>
|
||||
<div class="channels">
|
||||
<div data-channel="\login">
|
||||
<form class="login-form">
|
||||
<input type="text" class="login" placeholder="Utilisateur" />
|
||||
<input type="password" class="password" placeholder="Mot de passe" />
|
||||
<input type="submit" class="connect" value="Connect!" />
|
||||
<form class="login-form form">
|
||||
<input type="text" id="username" class="login" placeholder="Utilisateur" />
|
||||
<input type="password" id="password" class="password" placeholder="Mot de passe" />
|
||||
<input type="submit" class="connect bg-ok" value="Connect!" />
|
||||
</form>
|
||||
</div>
|
||||
<pre class="log" data-channel="\log" style="display: none"></pre>
|
||||
</div>
|
||||
<form class="shoutbox-form">
|
||||
<form class="shoutbox-form form">
|
||||
<input type="text" name="message" class="message" />
|
||||
<button type="submit" name="Envoyer" title="Envoyer">Envoyer</button>
|
||||
<button type="submit" name="Envoyer" title="Envoyer" class="bg-ok">Envoyer</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
|
75
style.css
75
style.css
|
@ -3,15 +3,13 @@
|
|||
body {
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
#v5shoutbox {
|
||||
height: 100vh;
|
||||
--shoutbox-color: #333333;
|
||||
--shoutbox-color: var(--text);
|
||||
--shoutbox-border-color: rgba(0, 0, 0, .15);
|
||||
--shoutbox-header-bg: #ececec;
|
||||
--shoutbox-link-color: #ce1919;
|
||||
--shoutbox-link-color: var(--links);
|
||||
--shoutbox-tab-activity-color: #ce1919;
|
||||
--shoutbox-tab-current-color: #097ba1;
|
||||
--shoutbox-message-date-color: #949494;
|
||||
|
@ -31,8 +29,8 @@ body {
|
|||
height: 2em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--shoutbox-header-bg);
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
background: var(--background);
|
||||
border-bottom: var(--border);
|
||||
gap: 4px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
@ -41,13 +39,7 @@ body {
|
|||
}
|
||||
|
||||
#v5shoutbox a {
|
||||
color: var(--shoutbox-link-color);
|
||||
}
|
||||
|
||||
#v5shoutbox a:active, #v5shoutbox a:hover, #v5shoutbox a:focus {
|
||||
color: var(--shoutbox-link-color);
|
||||
text-decoration: underline;
|
||||
outline: 0;
|
||||
color: var(--links);
|
||||
}
|
||||
|
||||
#v5shoutbox pre {
|
||||
|
@ -59,30 +51,48 @@ body {
|
|||
padding: 4px;
|
||||
}
|
||||
|
||||
#v5shoutbox .channel-buttons button {
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
border-radius: 3px;
|
||||
#v5shoutbox .channel-buttons {
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#v5shoutbox .channel-buttons button:nth-child(1) {
|
||||
#v5shoutbox .channel-buttons button {
|
||||
padding: 1px;
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
border-radius: 3px;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--info);
|
||||
color: var(--info-text);
|
||||
border: var(--border);
|
||||
}
|
||||
|
||||
#v5shoutbox .channel-buttons button:first-child {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right: 0:
|
||||
border: 0;
|
||||
}
|
||||
#v5shoutbox .channel-buttons button:nth-child(2) {
|
||||
|
||||
#v5shoutbox .channel-buttons button:not(:first-child):not(:last-child) {
|
||||
border-radius: 0;
|
||||
border-right: 0;
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
#v5shoutbox .channel-buttons button:nth-child(3) {
|
||||
|
||||
#v5shoutbox .channel-buttons button:last-child {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .channel-buttons *.bg-activity {
|
||||
color: var(--shoutbox-tab-activity-color);
|
||||
background-color: var(--warn);
|
||||
color: var(--warn-text);
|
||||
}
|
||||
#v5shoutbox .channel-buttons *.current {
|
||||
color: var(--shoutbox-tab-current-color);
|
||||
background-color: var(--ok);
|
||||
color: var(--ok-text);
|
||||
}
|
||||
|
||||
#v5shoutbox .channels {
|
||||
|
@ -146,20 +156,13 @@ body {
|
|||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form {
|
||||
height: 2.4em;
|
||||
#v5shoutbox .shoutbox-form input[type='text'] {
|
||||
margin-left: 4px;
|
||||
margin-right: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form input[type=text] {
|
||||
width: 95%;
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
border-left: 0;
|
||||
border-right: 0;
|
||||
border-radius: 0;
|
||||
#v5shoutbox .shoutbox-form button[type='submit'] {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
#v5shoutbox .shoutbox-form button[type=submit] {
|
||||
width: 5%;
|
||||
border: 1px solid var(--shoutbox-border-color);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue