shiro
Version:
Online quiz game engine, inspired by russian tv show 'What? Where? When?' (Million Dollar Mind Game).
151 lines (134 loc) • 2.44 kB
CSS
.formprompt
{
position: fixed;
display: block;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: auto;
height: auto;
text-align: center;
}
.formprompt:before
{
content: "";
display: inline-block;
width: 0px;
height: 100%;
vertical-align: middle;
}
.formprompt_prompt
{
display: inline-block;
padding: 20px 50px;
color: #555555;
border: 1px solid #eeeeee;
border-radius: 4px;
background-color: #ffffff;
background-color: rgba(255, 255, 255, 0.85);
box-shadow: 2px 2px 5px #cccccc;
vertical-align: middle;
}
.formprompt_title
{
margin-bottom: 30px;
line-height: 34px;
font-size: 20px;
vertical-align: baseline;
}
.formprompt_title>i
{
font-family: 'Ubuntu Mono';
}
/* fields */
.formprompt_field
{
display: block;
min-width: 300px;
margin: 5px 0px;
line-height: 34px;
font-size: 16px;
color: #999999;
text-align: right;
}
/* input fields: text, password */
.formprompt_field>input[type=text],
.formprompt_field>input[type=password]
{
width: 200px;
height: 34px;
margin-left: 10px;
font-size: 16px;
border: 1px solid #cccccc;
border-radius: 4px;
text-align: center;
}
.formprompt_field>input[type=text][readonly],
.formprompt_field>input[type=password][readonly]
{
color: #999999;
}
/* input fields: checbox */
.formprompt_field>input[type=checkbox]
{
width: 24px;
height: 24px;
margin: 0px 176px 0px 10px;
font-size: 16px;
border: 1px solid #cccccc;
border-radius: 4px;
text-align: center;
}
/* textarea */
.formprompt_field>textarea
{
width: 500px;
min-height: 34px;
height: 150px;
margin-left: 10px;
padding: 5px;
line-height: 24px;
font-size: 16px;
border: 1px solid #cccccc;
border-radius: 4px;
text-align: left;
resize: vertical;
}
.formprompt_field>textarea
{
color: #999999;
}
/* controls */
.formprompt_controls
{
margin-top: 30px;
}
.formprompt_control
{
margin: 0px 10px;
padding: 8px 15px;
font-family: 'Ubuntu Condensed', sans-serif;
font-size: 16px;
color: #cccccc;
border: 1px solid transparent;
border-radius: 4px;
background-color: #ffffff;
cursor: pointer;
}
.formprompt_control:hover
{
color: #333333;
border-color: #999999;
}
/* default: most right item */
.formprompt_control:last-child
{
color: #999999;
border-color: #dddddd;
}
.formprompt_control:last-child:hover
{
color: #333333;
border-color: #999999;
}