Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made a new stylesheet files #61

Merged
merged 1 commit into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions snippet_share_project/snip_app/static/css/base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.searchform input{
margin: 10px !important;
padding: 10px 10px;
border: 1px solid #ccc;
border-radius: 10px;
}

.asteriskField {
display: none;
}
31 changes: 31 additions & 0 deletions snippet_share_project/snip_app/static/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.snipform{
border-radius: 10px;
background-color: #f2f2f2;
padding: 40px;
}


.snipform input{
margin: 15px !important;
padding: 10px 5px;
border: 2px solid #ccc;
border-radius: 4px;
}

.snipform textarea {
width: 100%;
height: 150px;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #ffffff;
resize:vertical;
overflow:auto;
}

.snipform select {
padding: 16px 20px;
border: 2px solid #ccc;
border-radius: 4px;
}
18 changes: 4 additions & 14 deletions snippet_share_project/snip_app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
type="image/x-icon">
<link href="{% static 'css/prism.css' %}" rel="stylesheet" />
<link rel="stylesheet" href="{% static 'css/bulma.min.css' %}">
<link rel="stylesheet" href="{% static 'css/base.css' %}">
<link rel="stylesheet" href="{% static 'css/index.css' %}">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>

Expand Down Expand Up @@ -95,19 +97,7 @@ <h1 class="is-size-3"> <strong>SnipBoard</strong></h1>
<a>Private</a>
</p> -->
<div class="panel-block">
<style>
.searchform input{
margin: 10px !important;
padding: 10px 10px;
border: 1px solid #ccc;
border-radius: 10px;
}

.asteriskField {
display: none;
}

</style>

<form method="POST" class="uniForm searchform is-left" style="font-weight: 700 !important;">
{% csrf_token %}
{{ searchform|crispy }}
Expand All @@ -132,4 +122,4 @@ <h1 class="is-size-3"> <strong>SnipBoard</strong></h1>
<script src="{% static 'js/prism.js' %}"></script>
</body>

</html>
</html>
33 changes: 0 additions & 33 deletions snippet_share_project/snip_app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,6 @@
{% block content %}
{% load crispy_forms_tags %}

<style>
.snipform{
border-radius: 10px;
background-color: #f2f2f2;
padding: 40px;
}


.snipform input{
margin: 15px !important;
padding: 10px 5px;
border: 2px solid #ccc;
border-radius: 4px;
}

.snipform textarea {
width: 100%;
height: 150px;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #ffffff;
resize:vertical;
overflow:auto;
}

.snipform select {
padding: 16px 20px;
border: 2px solid #ccc;
border-radius: 4px;
}
</style>
<article>
<div class="main">
<form method="POST" class="uniForm snipform" style="font-weight: 700 !important;">
Expand Down