mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Merge branch 'v2' of github.com:neocities/neocities into v2
This commit is contained in:
commit
adaf581731
10 changed files with 174 additions and 102 deletions
|
@ -81,9 +81,9 @@ legend, .legend{
|
||||||
/* Drop Down Selection Inputs */
|
/* Drop Down Selection Inputs */
|
||||||
.select-Container{
|
.select-Container{
|
||||||
@extend %input-Area;
|
@extend %input-Area;
|
||||||
background:url(../img/drop-Arrow.png) no-repeat 99% center #fff; display:inline-block; overflow:hidden;
|
background:url(../img/drop-Arrow.png) no-repeat 99% center #fff; display:inline-block;
|
||||||
}
|
}
|
||||||
.input-Select{background:none; border:0; font-size:$base; padding-right:$spacing*4; width:120%; -webkit-appearance:textarea}
|
.input-Select{background:none; border:0; font-size:$base; padding-right:$spacing*4; width:100%; -webkit-appearance:textarea}
|
||||||
|
|
||||||
// File Input Styling
|
// File Input Styling
|
||||||
.file-Input-Area{
|
.file-Input-Area{
|
||||||
|
|
|
@ -301,6 +301,13 @@
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
.folder-icon {
|
||||||
|
background: url(../img/folder.png) no-repeat 0px 0px;
|
||||||
|
width: 95px;
|
||||||
|
height: 65px;
|
||||||
|
display: block;
|
||||||
|
padding-top: 35px;
|
||||||
|
}
|
||||||
.overlay a {
|
.overlay a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -782,3 +789,28 @@ a.tag:hover {
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
.browse-page .select-Container {
|
||||||
|
overflow: none!important;
|
||||||
|
padding: 2px 4px;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
.browse-page .input-Area {
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px 5px;
|
||||||
|
}
|
||||||
|
.header-Outro .btn-Action {
|
||||||
|
margin: 0 0 0 10px;
|
||||||
|
}
|
||||||
|
.browse-page .text-Label {
|
||||||
|
float: left;
|
||||||
|
margin-right: 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height:31px;
|
||||||
|
}
|
||||||
|
.browse-page h1 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.interior .header-Outro.with-columns .col.filter {
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
.website-Gallery{
|
.website-Gallery{
|
||||||
list-style:none;
|
list-style:none;
|
||||||
padding:10px 0;
|
padding:30px 20px;
|
||||||
|
|
||||||
li{
|
li{
|
||||||
@extend .col-25;
|
@extend .col-25;
|
||||||
|
@ -16,34 +16,42 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a{
|
li a {
|
||||||
padding:0 $spacing*2;
|
|
||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
.site-info a {
|
||||||
|
color: #666;
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
.title {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
&.int-Gall{
|
&.int-Gall{
|
||||||
|
|
||||||
li{
|
li{
|
||||||
border:1px solid #ccc;
|
|
||||||
margin:0 .5% 12px;
|
margin:0 .5% 12px;
|
||||||
width:24%;
|
width:24%;
|
||||||
|
|
||||||
|
background-color: white;
|
||||||
|
border: 9px solid white;
|
||||||
|
-moz-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
|
||||||
|
-webkit-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
|
||||||
|
|
||||||
@media (max-device-width:480px), screen and (max-width:800px){
|
@media (max-device-width:480px), screen and (max-width:800px){
|
||||||
width:49%
|
width:49%
|
||||||
}
|
}
|
||||||
a{
|
|
||||||
padding:8px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.neo-SS, .neo-Screen-Shot{
|
.neo-SS, .neo-Screen-Shot{
|
||||||
background:#fff;
|
border: 1px solid #eee;
|
||||||
@include box-shadow($bs-4);
|
|
||||||
display:block;
|
display:block;
|
||||||
height:auto!important;
|
height:auto!important;
|
||||||
padding:$spacing*2;
|
|
||||||
position:relative;
|
position:relative;
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,15 +405,14 @@ legend, .legend {
|
||||||
/* Drop Down Selection Inputs */
|
/* Drop Down Selection Inputs */
|
||||||
.select-Container {
|
.select-Container {
|
||||||
background: url(../img/drop-Arrow.png) no-repeat 99% center white;
|
background: url(../img/drop-Arrow.png) no-repeat 99% center white;
|
||||||
display: inline-block;
|
display: inline-block; }
|
||||||
overflow: hidden; }
|
|
||||||
|
|
||||||
.input-Select {
|
.input-Select {
|
||||||
background: none;
|
background: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
width: 120%;
|
width: 100%;
|
||||||
-webkit-appearance: textarea; }
|
-webkit-appearance: textarea; }
|
||||||
|
|
||||||
.file-Input-Area {
|
.file-Input-Area {
|
||||||
|
@ -1546,6 +1545,14 @@ a {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto; }
|
margin-right: auto; }
|
||||||
|
|
||||||
|
.folder-icon {
|
||||||
|
background: url(../img/folder.png) no-repeat 0px 0px;
|
||||||
|
width: 95px;
|
||||||
|
height: 65px;
|
||||||
|
display: block;
|
||||||
|
padding-top: 35px;
|
||||||
|
font-size: 14px; }
|
||||||
|
|
||||||
.overlay a {
|
.overlay a {
|
||||||
color: white;
|
color: white;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -2017,6 +2024,31 @@ a.tag:hover {
|
||||||
padding: 0px 10px 0px 10px;
|
padding: 0px 10px 0px 10px;
|
||||||
background: #FFFFFF; }
|
background: #FFFFFF; }
|
||||||
|
|
||||||
|
.browse-page .select-Container {
|
||||||
|
overflow: none !important;
|
||||||
|
padding: 2px 4px;
|
||||||
|
width: 40%; }
|
||||||
|
|
||||||
|
.browse-page .input-Area {
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px 5px; }
|
||||||
|
|
||||||
|
.header-Outro .btn-Action {
|
||||||
|
margin: 0 0 0 10px; }
|
||||||
|
|
||||||
|
.browse-page .text-Label, .browse-page .option-Container {
|
||||||
|
float: left;
|
||||||
|
margin-right: 5px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 31px; }
|
||||||
|
|
||||||
|
.browse-page h1 {
|
||||||
|
margin-top: 0; }
|
||||||
|
|
||||||
|
.interior .header-Outro.with-columns .col.filter {
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 4px; }
|
||||||
|
|
||||||
.footer-Base {
|
.footer-Base {
|
||||||
color: #5e5b56;
|
color: #5e5b56;
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -2162,34 +2194,37 @@ a.tag:hover {
|
||||||
|
|
||||||
.website-Gallery {
|
.website-Gallery {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 10px 0; }
|
padding: 30px 20px; }
|
||||||
.website-Gallery li {
|
.website-Gallery li {
|
||||||
float: left;
|
float: left;
|
||||||
margin-bottom: 8px; }
|
margin-bottom: 8px; }
|
||||||
@media (max-device-width: 480px), screen and (max-width: 800px) {
|
@media (max-device-width: 480px), screen and (max-width: 800px) {
|
||||||
.website-Gallery li {
|
.website-Gallery li {
|
||||||
width: 50%; } }
|
width: 50%; } }
|
||||||
.website-Gallery a {
|
.website-Gallery li a {
|
||||||
padding: 0 8px;
|
|
||||||
display: block; }
|
display: block; }
|
||||||
|
.website-Gallery .site-info a {
|
||||||
|
color: #666;
|
||||||
|
font-size: 80%; }
|
||||||
|
.website-Gallery .title {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-bottom: 2px; }
|
||||||
.website-Gallery.int-Gall li {
|
.website-Gallery.int-Gall li {
|
||||||
border: 1px solid #ccc;
|
|
||||||
margin: 0 .5% 12px;
|
margin: 0 .5% 12px;
|
||||||
width: 24%; }
|
width: 24%;
|
||||||
|
background-color: white;
|
||||||
|
border: 9px solid white;
|
||||||
|
-moz-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
|
||||||
|
-webkit-box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2);
|
||||||
|
box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.2); }
|
||||||
@media (max-device-width: 480px), screen and (max-width: 800px) {
|
@media (max-device-width: 480px), screen and (max-width: 800px) {
|
||||||
.website-Gallery.int-Gall li {
|
.website-Gallery.int-Gall li {
|
||||||
width: 49%; } }
|
width: 49%; } }
|
||||||
.website-Gallery.int-Gall li a {
|
|
||||||
padding: 8px; }
|
|
||||||
|
|
||||||
.neo-SS, .neo-Screen-Shot {
|
.neo-SS, .neo-Screen-Shot {
|
||||||
background: #fff;
|
border: 1px solid #eee;
|
||||||
-moz-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2);
|
|
||||||
-webkit-box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2);
|
|
||||||
box-shadow: 0 8px 8px -8px rgba(0, 0, 0, 0.2);
|
|
||||||
display: block;
|
display: block;
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
padding: 8px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
|
|
BIN
public/assets/img/folder.png
Normal file
BIN
public/assets/img/folder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -26,6 +26,9 @@
|
||||||
|
|
||||||
<ul class="status-Nav">
|
<ul class="status-Nav">
|
||||||
<% if !signed_in? %>
|
<% if !signed_in? %>
|
||||||
|
<li>
|
||||||
|
<a href="/new" class="create-New" title="Create a new website">New Site</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/signin" class="sign-In" title="Sign into your account">Sign In</a>
|
<a href="/signin" class="sign-In" title="Sign into your account">Sign In</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -4,19 +4,17 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="header-Outro">
|
<div class="header-Outro with-columns browse-page">
|
||||||
<div class="row content">
|
<div class="row content">
|
||||||
|
<div class="col col-100">
|
||||||
<% if params[:tag] %>
|
<% if params[:tag] %>
|
||||||
<h1>Sites tagged <%= params[:tag] %>
|
<h1>Sites tagged <%= params[:tag] %></h1>
|
||||||
<% else %>
|
<% else %>
|
||||||
<h1>Sites on Neocities</h1>
|
<h1>Sites on Neocities</h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
<h3 class="subtitle"></h3>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row content">
|
<div class="col col-50 filter">
|
||||||
<div class="col col-50">
|
|
||||||
<form id="search_criteria" action="/browse" method="GET">
|
<form id="search_criteria" action="/browse" method="GET">
|
||||||
<fieldset class="grouping">
|
<fieldset class="grouping">
|
||||||
<% if params[:tag] %>
|
<% if params[:tag] %>
|
||||||
|
@ -38,24 +36,27 @@
|
||||||
<input name="is_nsfw" type="checkbox" value="true" <%= params[:is_nsfw].to_s == 'true' ? 'checked' : '' %>> Show 18+ content
|
<input name="is_nsfw" type="checkbox" value="true" <%= params[:is_nsfw].to_s == 'true' ? 'checked' : '' %>> Show 18+ content
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div style="margin-top: 10px">
|
|
||||||
<input class="btn-Action" type="submit" value="Update">
|
<input class="btn-Action" type="submit" value="Update">
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col col-50 filter">
|
||||||
|
<form method="GET" action="browse">
|
||||||
|
<fieldset class="grouping">
|
||||||
|
<label class="text-Label" for="tag">Search by tag:</label>
|
||||||
|
<input class="input-Area typeahead" name="tag" placeholder="pokemon">
|
||||||
|
<input type="submit" class="btn-Action" value="Search">
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col col-50">
|
|
||||||
<p>If you like a site, don't forget to follow it!<br>Visitor counts are updated hourly.</p>
|
|
||||||
<% unless signed_in? %>
|
|
||||||
<a class="btn-Action" href="/new" title="create a Neocities.org site today!">Create your Neocities site now</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- end .row.content -->
|
</div>
|
||||||
|
|
||||||
|
<div class="browse-page">
|
||||||
|
|
||||||
<br />
|
|
||||||
<% if @sites.length == 0 %>
|
<% if @sites.length == 0 %>
|
||||||
<div class="row content single-Col">
|
<div class="row website-Gallery content int-Gall">
|
||||||
<h2>No active sites found.<br>Try another search!</h2>
|
<h2>No active sites found.<br>Try another search!</h2>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -67,20 +68,18 @@
|
||||||
<img src="/img/placeholder.png" alt="<%= site.title %>" />
|
<img src="/img/placeholder.png" alt="<%= site.title %>" />
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div>
|
<div class="title">
|
||||||
<span>
|
<a href="//<%= site.host %>" title="<%= site.title %>"><%= site.title.shorten(35) %></a>
|
||||||
<center><a href="//<%= site.host %>" title="<%= site.title %>"><%= site.title.shorten(35) %></a>
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="site-info">
|
||||||
<span style="float: left">
|
<div style="float: left">
|
||||||
<a href="/site/<%= site.username %>">Profile</a>
|
<a href="/site/<%= site.username %>" title="Profile"><i class="icon-user"></i> <%= site.username %></a>
|
||||||
</span>
|
</div>
|
||||||
<span style="float: right">
|
<div style="float: right">
|
||||||
<a href="/site/<%= site.username %>">
|
<a href="/site/<%= site.username %>">
|
||||||
<%= site.hits %> hit<%= site.hits == 1 ? '' : 's' %>
|
<%= site.hits %> hit<%= site.hits == 1 ? '' : 's' %>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -109,22 +108,11 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div class="row content">
|
<div class="row website-Gallery content int-Gall">
|
||||||
<div class="col col-100">
|
<h4>Tags</h4>
|
||||||
<h3>
|
<p>
|
||||||
<% Tag.popular_names.each do |tag| %>
|
<% Tag.popular_names.each do |tag| %>
|
||||||
<a href="/browse?tag=<%= Rack::Utils.escape tag[:name] %>"><%= tag[:name] %></a>
|
<a href="/browse?tag=<%= Rack::Utils.escape tag[:name] %>"><%= tag[:name] %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</h3>
|
</p>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row content">
|
|
||||||
<div class="col col-20">
|
|
||||||
<h4>Search by tag:</h4>
|
|
||||||
<form method="GET" action="browse">
|
|
||||||
<input class="input-Area typeahead" name="tag" placeholder="pokemon">
|
|
||||||
<input type="submit" class="btn-Action" value="Search" style="width: 100px">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
|
@ -88,10 +88,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="breadcrumbs">My Files</div> <!-- Should be Home when Folders are implemented -->
|
<div class="breadcrumbs">Home</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<a href="/site_files/new_page" class="btn-Action new-Page"><span>New Page</span></a>
|
<a href="/site_files/new_page" class="btn-Action new-Page"><span>New Page</span></a>
|
||||||
<!--<a href="" class="btn-Action new-Folder"><span>New Folder</span></a>-->
|
<a href="" class="btn-Action new-Folder"><span>New Folder</span></a>
|
||||||
<a href="#" class="btn-Action upload" onclick="clickUploadFiles(); return false"><span>Upload</span></a>
|
<a href="#" class="btn-Action upload" onclick="clickUploadFiles(); return false"><span>Upload</span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,6 +112,12 @@
|
||||||
<img src="<%= current_site.thumbnail_url(file.filename, '105x63') %>" style="">
|
<img src="<%= current_site.thumbnail_url(file.filename, '105x63') %>" style="">
|
||||||
<div class="overlay"></div>
|
<div class="overlay"></div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- if folder
|
||||||
|
<div class="html-thumbnail folder fileimagehover">
|
||||||
|
<div class="folder-icon"></div>
|
||||||
|
<div class="overlay"></div>
|
||||||
|
</div>
|
||||||
|
-->
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="html-thumbnail misc fileimagehover">
|
<div class="html-thumbnail misc fileimagehover">
|
||||||
<div class="misc-icon"><%= file.ext %></div>
|
<div class="misc-icon"><%= file.ext %></div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<title><%= title %></title>
|
<title><%= title %></title>
|
||||||
<meta itemprop="name" content="Neocities.org">
|
<meta itemprop="name" content="Neocities.org">
|
||||||
<meta itemprop="description" content="ECreate your own free home page, and do whatever you want with it.">
|
<meta itemprop="description" content="Create your own free home page, and do whatever you want with it.">
|
||||||
<meta name="description" content="Neocities is the new Geocities. Create your own free home page, and do whatever you want with it.">
|
<meta name="description" content="Neocities is the new Geocities. Create your own free home page, and do whatever you want with it.">
|
||||||
<meta name="keywords" content="free website, html, css, learn to code, free hosting, build a website, create a web page" >
|
<meta name="keywords" content="free website, html, css, learn to code, free hosting, build a website, create a web page" >
|
||||||
<meta property="og:title" content="Neocities">
|
<meta property="og:title" content="Neocities">
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="header-Outro">
|
<div class="header-Outro">
|
||||||
<div class="row content single-Col">
|
<div class="row content">
|
||||||
<h1>Editing <%= params[:filename] %></h1>
|
<h1>Editing <%= params[:filename] %></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue