Browse Source

Make things more responsive

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/head
falkTX 3 years ago
parent
commit
3b47abd5ca
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
5 changed files with 45 additions and 53 deletions
  1. +3
    -3
      css/base.css
  2. +2
    -7
      css/base.fluid.fix.css
  3. +0
    -1
      css/style.css
  4. +14
    -0
      css/style.fluid.css
  5. +26
    -42
      includes/header.php

+ 3
- 3
css/base.css View File

@@ -75,15 +75,15 @@ blockquote{border-left:5px solid #690;color:#ddd;padding:10px;}
#header{font-size:0.8em;font-weight:bold;margin:0 0 25px;border-bottom:1px solid #222222;}
#header, #global-navigation li.selected{background: url('../images/gradient-dark-nav_mod.png') repeat-x scroll bottom left;} /* background:#666 */
#header, #global-navigation li{height:30px;font-family:sans-serif;}
#header-content{display:inline;}
#header ul#global-navigation{list-style:none inside;width:700px;float:left;}
#header-content{display:flex;justify-content:center;}
#header ul#global-navigation{list-style:none inside;overflow:hidden;height:30px;}
#header ul#global-navigation, #global-navigation li{border-color:#222222;border-style:solid;margin:0;}
#global-navigation li:first-child{border-left-width:1px;}
#global-navigation li{float:left;border-right-width:1px;}
#global-navigation li a{color:#F0F0F0;display:block;height:100%;margin:0 15px;line-height:2em;text-decoration:none;width:100%;font-size:1.2em;font-weight:800;}
#global-navigation li a:hover, #global-navigation li a:focus{color:#6464E6;}
#global-favorites{float:right !important;border-left-width:1px;}
#header-logo{float:left;margin-top:2px;margin-right:25px;}
#header-logo{float:left;margin-top:2px;}
#header-home{float:left;margin:0 0px;color:#F0F0F0;line-height:2em;font-size:1.2em;text-decoration:none;}
#header-home:hover, #header-home:focus{color:#6464E6;}
#header #global-search-form{color:#F0F0F0;float:right;margin-top:4px;position:relative;}


+ 2
- 7
css/base.fluid.fix.css View File

@@ -1,9 +1,4 @@
.box-footer {
/* this does not work with fluid 960gs */
/* position: absolute;*/
/* bottom: 0px;*/
/* left: 0;*/
/* margin-bottom: 0!important;*/
position: relative;
margin-bottom: -15px!important;
}
margin-bottom: -15px !important;
}

+ 0
- 1
css/style.css View File

@@ -1,6 +1,5 @@
body {
color: #000000;
min-width: 1160px;
}

#header ul#global-navigation {


+ 14
- 0
css/style.fluid.css View File

@@ -9,3 +9,17 @@
@import url("grid.css"); /* add fluid 960 Grid System */
@import url("base.css"); /* Basic CSS - Common styles */
@import url("base.fluid.fix.css"); /* Fixes for Bento with fluid 960gs */

@media only screen and (max-width: 870px) {
#content {
width: 96%;
margin-left: 2%;
margin-right: 2%;
}
#header-home {
display: none;
}
#global-navigation {
padding: 0;
}
}

+ 26
- 42
includes/header.php View File

@@ -44,10 +44,10 @@ if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE !=
<title><?php echo $PAGE_TITLE; ?></title>

<link rel="copyright" href="https://creativecommons.org/publicdomain/zero/1.0/" />
<link rel="stylesheet" href="/css/style.fluid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
<link rel="icon" type="image/png" href="/images/ico_kxstudio.png" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.fluid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $ROOT; ?>/css/style.css" type="text/css" media="screen" />
<link rel="icon" type="image/png" href="<?php echo $ROOT; ?>/images/ico_kxstudio.png" />
<link rel="shortcut icon" href="<?php echo $ROOT; ?>/favicon.ico" />
<?php if ($PAGE_TYPE == "DONATIONS") { ?>
<style type="text/css">
html > body .liberapay-btn {
@@ -77,7 +77,7 @@ if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE !=
}
</style>
<?php } else if ($PAGE_TYPE == "PASTE") { ?>
<link rel="stylesheet" href="/paste/kxstudio.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $ROOT; ?>/paste/kxstudio.css" type="text/css" media="screen" />
<!-- Special Paste CSS -->
<style type="text/css">
html, body {
@@ -183,49 +183,33 @@ if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE !=

<!-- Start: Header -->
<div id="header">
<div id="header-content" class="container_12">
<a id="header-logo" href="/">
<img src="/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
<div id="header-content">
<a id="header-logo" href="<?php echo $ROOT; ?>/">
<img src="<?php echo $ROOT; ?>/images/header-logo_mod.png" width="46" height="26" alt="Header Logo"/>
</a>
<a id="header-home" href="/">Home</a>
<a id="header-home" href="<?php echo $ROOT; ?>/">Home</a>
<ul id="global-navigation">
<li id="item-news"><a href="/News">News</a></li>
<li id="item-news"><a href="<?php echo $ROOT; ?>/News">News</a></li>
<li id="item-soft" class="item-menu">
<a href="/Applications">Software &#9660;</a>
<a href="<?php echo $ROOT; ?>/Applications">Software &#9660;</a>
<div class="item-menu-children">
<p><a href="/Applications"><img src="/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
<p><a href="/Plugins"><img src="/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
<p><a href="<?php echo $ROOT; ?>/Applications"><img src="<?php echo $ROOT; ?>/images/ico_cadence.png" alt=""/> &nbsp; Applications</a></p>
<p><a href="<?php echo $ROOT; ?>/Plugins"><img src="<?php echo $ROOT; ?>/images/ico_distrho.png" alt=""/> &nbsp; Plugins</a></p>
</div>
</li>
<li id="item-repos" class="item-menu">
<a href="/Repositories">Repositories &#9660;</a>
<a href="<?php echo $ROOT; ?>/Repositories">Repositories &#9660;</a>
<div class="item-menu-children">
<p><a href="/Repositories">About / How-to</a></p>
<p><a href="/Repositories:Applications">Applications (in Repo)</a></p>
<p><a href="/Repositories:Plugins">Plugins (in Repo)</a></p>
<p><a href="/Repositories:FAQ">FAQ</a></p>
<p><a href="/Repositories:Extras">Extras</a></p>
<p><a href="<?php echo $ROOT; ?>/Repositories">About / How-to</a></p>
<p><a href="<?php echo $ROOT; ?>/Repositories:Applications">Applications (in Repo)</a></p>
<p><a href="<?php echo $ROOT; ?>/Repositories:Plugins">Plugins (in Repo)</a></p>
<p><a href="<?php echo $ROOT; ?>/Repositories:FAQ">FAQ</a></p>
<p><a href="<?php echo $ROOT; ?>/Repositories:Extras">Extras</a></p>
</div>
</li>
<li id="item-community" class="item-menu">
<a href="/Documentation">Community &#9660;</a>
<div class="item-menu-children">
<p>
<a href="https://chat.kx.studio/" class="external" rel="nofollow" target="_blank">
<img src="/images/ico_rocketchat.png" width="16px" height="16px" alt=""/> &nbsp; Rocket Chat
</a>
</p>
<p>
<a href="https://soundcloud.com/search/sounds?q=kxstudio" class="external" rel="nofollow" target="_blank">
<img src="/images/ico_soundcloud.png" width="16px" height="16px" alt=""/> &nbsp; Songs
</a>
</p>
</div>
</li>
<li id="item-documentation"><a href="/Documentation">Documentation</a></li>
<li id="item-donate"><a href="/Donations">Donations</a></li>
<li id="item-downloads"><a href="/Downloads">Downloads</a></li>
<li id="item-paste"><a href="/Paste">Paste</a></li>
<li id="item-documentation"><a href="<?php echo $ROOT; ?>/Documentation">Documentation</a></li>
<li id="item-downloads"><a href="<?php echo $ROOT; ?>/Downloads">Downloads</a></li>
<li id="item-donate"><a href="<?php echo $ROOT; ?>/Donations">Donations</a></li>
</ul>
</div>
</div>
@@ -242,7 +226,7 @@ if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE !=

<div id="subheader" class="container_16">
<div id="breadcrump" class="grid_12 alpha">
<a href="/" title="Home"><img src="/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
<a href="<?php echo $ROOT; ?>/" title="Home"><img src="<?php echo $ROOT; ?>/images/home_grey.png" width="16" height="16" alt="Home" /> KXStudio </a>
<?php for ($i = 0; $i < count($PAGE_SOURCE_1); $i++) { ?>
&gt; <a href="<?php echo $ROOT . $PAGE_SOURCE_1[$i]; ?>"><?php echo $PAGE_SOURCE_2[$i]; ?></a>
<?php } ?>
@@ -268,10 +252,10 @@ if (false && $PAGE_TYPE != "PASTE" && $PAGE_TYPE != "DONATIONS" && $PAGE_TYPE !=
<li><a href="#SourceCode">Source Code</a></li>
<li><a href="#Artwork">Artwork</a></li>
<?php } else if ($PAGE_TYPE == "PASTE") { ?>
<li><a href="/Paste" title="Create new paste">New Paste</a></li>
<li><a href="<?php echo $ROOT; ?>/Paste" title="Create new paste">New Paste</a></li>
<?php if ($show_paste && ! $is_error) { ?>
<li><a href="/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
<li><a href="/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
<li><a href="<?php echo $ROOT; ?>/Paste/raw/<?php echo $paste_id; ?>" target="blank" title="View RAW">View RAW</a></li>
<li><a href="<?php echo $ROOT; ?>/Paste/download.php?id=<?php echo $paste_id; ?>" title="Download">Download</a></li>
<?php } ?>
<?php } ?>
</ul>


Loading…
Cancel
Save