線上書籍

Home

[1061] XOOPS佈景設計

* { padding: 0px; margin: 0px; } body { /*background: #5ca4a9;*/ background: #5ca4a9 url('bg.jpg') center bottom /cover no-repeat fixed; font-family: '微軟正黑體'; /* background: url('bg.png') right top /10% no-repeat fixed , url('bg.png') right bottom /10% no-repeat fixed #123456; */ } .container { width: 90%; margin: 40px auto; box-sizing: border-box; padding: 0px 40px; } header#Home { background: rgba(230, 235, 224, 0.5); border-top-left-radius: 10px; border-top-right-radius: 10px; } hgroup { text-align: center; } h1 { font-weight: bold; font-size: 5em; color: rgb(255, 255, 255); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); padding: 20px 0px 10px; } h2 { font-weight: normal; margin: 10px auto 20px; } h3 { border: 1px solid #ed6a5a; border-left: 8px solid #ed6a5a; background: #fff; padding: 4px 10px; display: inline-block; margin: 30px auto 10px; } h4 { margin: 20px auto 10px; } nav>ul { list-style: none; background: rgba(237, 106, 90, 0.8); overflow: hidden; } nav>ul>li { float: left; } nav>ul>li>a { display: block; padding: 14px 16px; text-decoration: none; color: white; } nav>ul>li>a:hover { background: rgb(147, 78, 72); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); } .row { background: rgba(230, 235, 224, 0.8); display: table; } article { display: table-cell; width: 78%; vertical-align: top; padding: 40px; } aside { display: table-cell; width: 20%; background: rgba(244, 241, 187, 0.5); vertical-align: top; padding: 20px; } p { line-height: 2; text-align: justify; } footer { padding: 60px 0px; text-align: center; color: white; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); background: rgba(92, 164, 169, 0.8); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; } /* .row { background: rgba(230, 235, 224, 0.8); overflow: hidden; } article{ float: left; width: 78%; } aside{ float: right; width: 20%; background: rgb(147, 78, 72); }*/ .top { width: 60px; height: 60px; line-height: 60px; display: inline-block; text-align: center; border-radius: 60px; background: #4b81dd; color: white; text-decoration: none; padding: 2px 6px; font-size: 0.8em; box-shadow: 0px 5px 0px 0px #156785; } .top:active { position: relative; top: 3px; box-shadow: 0px 2px 0px 0px #156785; } .top::before { content: "▲ "; } #float_tool { position: fixed; right: 10px; bottom: 10px; } /*表單*/ form#contact_form { display: table; width: 100%; } div.form-group { display: table-row; } div.form-group>label { width: 20%; display: table-cell; vertical-align: top; padding: 6px 10px; text-align-last: justify; } div.form-group>div { width: 80%; display: table-cell; padding: 6px 0px; } div.form-group>div>input[type=text], div.form-group>div>select, div.form-group>div>textarea { width: 100%; border-radius: 0px; font-size: 1em; padding: 2px 4px; background: white; color: #274a6d; border: 1px solid #FCFCFC; box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.3); } div.form-group>div>textarea { height: 100px; } figure { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.2); } figure:hover { transition: 0.3s; box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); background: rgba(255, 255, 255, 0.5); } div.form-group>div>input[type=text]:hover, div.form-group>div>select:hover, div.form-group>div>textarea:hover { transition: 0.3s; background: white; color: #274a6d; border: 1px solid #FCFCFC; box-shadow: 0px 0px 8px 2px rgba(107, 173, 239, 0.3); } div.form-group>div>input[type=text]::placeholder, div.form-group>div>select::placeholder, div.form-group>div>textarea::placeholder { color: #f22178; font-size: 0.8em; opacity: 0.7; font-family: '微軟正黑體'; } header{ position: relative; overflow: hidden; } .video { position: absolute; bottom: 0px; left: 0px; width: 100%; height: 100%; z-index: -1; } @media (min-aspect-ratio: 16/9) { .video { height: 400%; top: -200%; } } @media (max-aspect-ratio: 16/9) { .video { width: 400%; left: -150%; } }