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

Don't merge - Review monday #35

Open
wants to merge 185 commits into
base: review-base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
d9805ce
Create db table for answers. Include db validations
zlschatz Jan 22, 2016
6071304
Generate Answers model. Validate presence of table fields
zlschatz Jan 22, 2016
ef85c67
Include association to comments and votes
zlschatz Jan 22, 2016
af1057f
Revise as: :commentable
zlschatz Jan 22, 2016
7738cea
Merge pull request #3 from nyc-island-foxes-2016/answers-setup
deweydell Jan 22, 2016
6caba9f
Generate questions migration and model with assocations
Jan 22, 2016
9e7a2d3
Add database constraints and model validations
Jan 22, 2016
649d4ed
Fix assocations for polymorphism
Jan 22, 2016
7a9d7f3
Merge pull request #4 from nyc-island-foxes-2016/question-migration-m…
webdevjeffus Jan 22, 2016
cfcb12e
Generate Migrations Votes Comments
luisplaz Jan 22, 2016
f8ef1e2
Create migration for comments
luisplaz Jan 22, 2016
83043f4
Add migration for votes
luisplaz Jan 22, 2016
6d294b5
Add Models for Votes Comments
luisplaz Jan 22, 2016
f43a713
Add comment model associatons and validations
luisplaz Jan 22, 2016
15f6464
Add votes model associatons and validations
luisplaz Jan 22, 2016
d2cb130
Complete migrations information comment and votes
luisplaz Jan 22, 2016
91eb7f9
Merge pull request #5 from nyc-island-foxes-2016/Add-Comments-Votes
webdevjeffus Jan 22, 2016
b0d8fa7
Create User model and users_table migration
webdevjeffus Jan 22, 2016
1db8748
Resolve merge conflict and fixed typos in migrations and models
webdevjeffus Jan 22, 2016
d7648ab
Merge pull request #6 from nyc-island-foxes-2016/user-model
luisplaz Jan 22, 2016
6686044
Add main and normalize css files
Jan 22, 2016
30a7099
Write seeds for users, questions, answers, and comments
Jan 22, 2016
907b998
Write migration file to add user id to comments table
Jan 22, 2016
3cef0c7
New schema file created from added migration
Jan 22, 2016
61ad7d4
Merge pull request #7 from nyc-island-foxes-2016/seeds-css
webdevjeffus Jan 22, 2016
947cb4a
Add std_format_date helper to application_helper.rb
webdevjeffus Jan 22, 2016
757c2cb
Add current_user helpers to application_controller
webdevjeffus Jan 22, 2016
2a8daad
Implement sessions_controller
webdevjeffus Jan 22, 2016
994e9a7
Edit invalid login info flash notice
webdevjeffus Jan 22, 2016
e0f1559
Create users_controller.rb
webdevjeffus Jan 22, 2016
e214f94
Implement sessions#new form
webdevjeffus Jan 22, 2016
b593d2f
Implement users#new form
webdevjeffus Jan 22, 2016
d66f7c8
Implement sessions#new and users#new forms and routes
webdevjeffus Jan 23, 2016
b412f30
Merge pull request #8 from nyc-island-foxes-2016/user-session
zlschatz Jan 23, 2016
830abbb
Add routes for users, questions & answers
luisplaz Jan 22, 2016
847b418
Include controller methods for questions
luisplaz Jan 22, 2016
4c77c66
Add index and new views for questions
luisplaz Jan 22, 2016
2fdb95f
Minor CSS adjustments for questions form
luisplaz Jan 22, 2016
45f4d4f
Included files during controller generation
luisplaz Jan 22, 2016
6ad6f90
Include :answers and :users in Question query
luisplaz Jan 23, 2016
ab5dcc5
Reorganize divs & associations
luisplaz Jan 23, 2016
891973c
Change css setting
luisplaz Jan 23, 2016
49442f7
Merge pull request #9 from nyc-island-foxes-2016/setup-routes
deweydell Jan 23, 2016
58a2721
Add basic nav bar to layout
Jan 22, 2016
1b2d3b8
Fix login, add nav bar, remove binding prys
Jan 23, 2016
f6e655d
Merge pull request #10 from nyc-island-foxes-2016/layout-branch
webdevjeffus Jan 23, 2016
deaf06d
Add line to assign current_user to question.user in questions#create
webdevjeffus Jan 23, 2016
87ac103
Fix bug in questions#create: pass new question id as parameter with r…
webdevjeffus Jan 23, 2016
eb765ab
Reformat questions#show view
webdevjeffus Jan 23, 2016
5742be2
Implement questions#edit and #update routes and view
webdevjeffus Jan 23, 2016
35d9d43
Add delete question link to questions#show view; debug questions#dest…
webdevjeffus Jan 23, 2016
71a5794
Implement partial for questions#new and #edit
webdevjeffus Jan 23, 2016
ce92965
Merge pull request #11 from nyc-island-foxes-2016/questions-routes
deweydell Jan 23, 2016
d374e72
Hide new question link on questions/index from non-logged-in visitors
webdevjeffus Jan 23, 2016
8767439
Remove binding.pry in questions_controller
webdevjeffus Jan 23, 2016
d0b2a78
Hide edit and delete questions links on qeustions/show view from all …
webdevjeffus Jan 23, 2016
897ecaf
Merge pull request #12 from nyc-island-foxes-2016/hide-question-links
zlschatz Jan 23, 2016
9793f83
Update readme to include link to our trello board
deweydell Jan 23, 2016
6bec1e8
Add font and css for main index page and nav bar
deweydell Jan 23, 2016
6a2319d
Add font link and reformat layout for navbar
deweydell Jan 23, 2016
9d30f88
New question link was moved to nav bar
deweydell Jan 23, 2016
6ec6bf9
Move post question link to nabber
deweydell Jan 23, 2016
9337260
Move post questions to navbar (removed from index page)
deweydell Jan 23, 2016
8e819cf
Update form css
deweydell Jan 23, 2016
5d3cf93
Merge pull request #13 from nyc-island-foxes-2016/more-css
zlschatz Jan 23, 2016
c5e8edb
Add comments, answers, and links to question show page
deweydell Jan 23, 2016
8693aed
Merge pull request #14 from nyc-island-foxes-2016/css-questions-show-…
luisplaz Jan 23, 2016
76ea99c
Add css for new question view
luisplaz Jan 23, 2016
bb67641
Add css for login view
luisplaz Jan 23, 2016
6da05a9
Merge pull request #15 from nyc-island-foxes-2016/AddingCss
webdevjeffus Jan 23, 2016
a10188d
Create comments_controller; begin writing routes
webdevjeffus Jan 23, 2016
5c3fa2d
In questions/_form, change id='input-option' to class
webdevjeffus Jan 23, 2016
e890ef6
Remove binding.pry from users#create
webdevjeffus Jan 23, 2016
51f58de
Add temporary link to comments#new
webdevjeffus Jan 23, 2016
833c04f
Implement comments#new route through to form view
webdevjeffus Jan 23, 2016
8dfd0ed
Remove bindings from new comments view and _form
webdevjeffus Jan 23, 2016
3fec32c
Implement comments#create route; working for questions, not tested fo…
webdevjeffus Jan 23, 2016
a1c1fdc
Add link to comments#new from questions#show
webdevjeffus Jan 23, 2016
e320aa0
Remove binding.pry in questions#create
webdevjeffus Jan 23, 2016
16477ec
Add non-nested routes for comments#edit, #update, and #destroy
webdevjeffus Jan 23, 2016
b27dc33
Implement comments#destroy
webdevjeffus Jan 23, 2016
c95f50f
Begin work on comments#edit
webdevjeffus Jan 23, 2016
b0c8ea2
Merge pull request #16 from nyc-island-foxes-2016/comments-route
deweydell Jan 23, 2016
8efe7cc
Repair questions/edit view effed-up in previous merge. Sorry.
webdevjeffus Jan 24, 2016
5c43232
Merge pull request #17 from nyc-island-foxes-2016/questions-edit-fix
webdevjeffus Jan 24, 2016
26aac07
Implement comments#edit and #update routes
webdevjeffus Jan 24, 2016
7778185
Attempted to recast comments/_form to work for both comments#new and …
webdevjeffus Jan 24, 2016
0f38710
Add conditionals in questions#show to hide links from wrong users
webdevjeffus Jan 24, 2016
16e3d00
Remove binding.pry from comments#edit
webdevjeffus Jan 24, 2016
4f1b415
Merge pull request #18 from nyc-island-foxes-2016/comments-edit-2
deweydell Jan 24, 2016
9eca689
Add register, login, and logout paths to routes and layout
deweydell Jan 24, 2016
5ef77a7
Add css and labels for votes, answers, views on index
deweydell Jan 24, 2016
ccfd015
Merge pull request #19 from nyc-island-foxes-2016/index-css-votes-ans…
deweydell Jan 24, 2016
e0605f4
Add rspec-rails and shoulda-matchers gems to gemfile
deweydell Jan 24, 2016
85dd70f
Add format documentation to .rspec file so tests are easy to read
deweydell Jan 24, 2016
70a83d3
Generate spec helper and rails helper files
deweydell Jan 24, 2016
656b501
Create controller folder and questions controller spec file
deweydell Jan 24, 2016
1649a81
Create factories file with user and question
deweydell Jan 24, 2016
d10448c
Require rails_helper instead of spec_helper in QuestionsController spec
deweydell Jan 24, 2016
17c1c05
Add work on questions controller spec for create route
deweydell Jan 24, 2016
fa3a8af
Move some gems to specific test area per everyday rails article
deweydell Jan 24, 2016
df815c3
Require capybara in rails helper
deweydell Jan 24, 2016
0f452ff
Write get index spec for questions controller
deweydell Jan 24, 2016
7340e09
Rewrite factory for question
deweydell Jan 24, 2016
eb0161c
Write basic specs for question model
deweydell Jan 24, 2016
f356970
Add belongs to user test to question model spec
deweydell Jan 24, 2016
a2fdc87
Add get #show and post #create tests to QuestionsController spec
deweydell Jan 24, 2016
7507c7c
Merge pull request #20 from nyc-island-foxes-2016/spec-questions-cont…
zlschatz Jan 24, 2016
3871293
Create answers controller, setup view to add answers form
zlschatz Jan 23, 2016
37a7435
Include answers controller to create answer, and add new answer to qu…
zlschatz Jan 23, 2016
5669258
Revise show page to include form
zlschatz Jan 23, 2016
4112f8d
Edit routes
zlschatz Jan 23, 2016
64e7da3
Redirect to login_path if user is not logged in
zlschatz Jan 24, 2016
99067af
Create answer form partial & remove answer link on show page
zlschatz Jan 24, 2016
a243642
Merge pull request #21 from nyc-island-foxes-2016/user-posts-answers
webdevjeffus Jan 24, 2016
7a7c31c
Working to implement votes for question
zlschatz Jan 24, 2016
b8b8601
Remove test directory files since we are using rspec
Jan 24, 2016
f65b324
Move faker gem into development and test group
Jan 24, 2016
cbb5742
Create longer content for questions and more answers in seeds
Jan 24, 2016
18897f7
Make question show page easier to read with more css
Jan 24, 2016
d514835
Merge pull request #22 from nyc-island-foxes-2016/remove-test-dir
zlschatz Jan 24, 2016
b6d2ef6
Fix merge conflict with Nicolas show user-time class
luisplaz Jan 24, 2016
9c7c13d
Create working upvote button
luisplaz Jan 24, 2016
b3b2440
Merge pull request #23 from nyc-island-foxes-2016/Fix-votes
deweydell Jan 24, 2016
196bfc9
Implement new_answer_comment_path
webdevjeffus Jan 24, 2016
8bc456f
Remove comments, bindings from comment_controller
webdevjeffus Jan 24, 2016
ebc20ea
Add links to edit and delete answer comments on questions#show
webdevjeffus Jan 24, 2016
747894a
Add confirm alert to delete comments links
webdevjeffus Jan 24, 2016
4dc391c
Merge pull request #24 from nyc-island-foxes-2016/comments-edit-2
deweydell Jan 24, 2016
b227a5a
Write factory for answer
Jan 24, 2016
00af283
Create user factory, add basic answer model specs
Jan 24, 2016
27989bf
Merge pull request #25 from nyc-island-foxes-2016/answer-specs
webdevjeffus Jan 24, 2016
360ef4b
Make changes to votable_type assignment
luisplaz Jan 24, 2016
bbe0512
Fix answers resources routes to nest comments and votes
luisplaz Jan 24, 2016
c633f1c
Implement vote count on questions index page
luisplaz Jan 24, 2016
c829dd9
Merge pull request #26 from nyc-island-foxes-2016/vote-answers-comments
webdevjeffus Jan 24, 2016
ba50eb3
Start method to avoid user revotes
luisplaz Jan 24, 2016
94c6b70
Merge pull request #27 from nyc-island-foxes-2016/Refactoring
deweydell Jan 24, 2016
6bf44ee
Fix merging problems
luisplaz Jan 24, 2016
693a187
Fix votable module
luisplaz Jan 24, 2016
830df83
Add Sorting filter in question controller
luisplaz Jan 24, 2016
c79975c
Merge pull request #28 from nyc-island-foxes-2016/Order_by
webdevjeffus Jan 24, 2016
284a4f6
Update readme in main kiwi overflow dir
Jan 24, 2016
13645d6
Update vote button css and add answers js file
Jan 24, 2016
0a2d328
Update seeds file so that questions are 3 sentences each
Jan 24, 2016
d221b03
Prevent default of add answer form
Jan 24, 2016
a5f6b52
Work on ajax request for post answers form
Jan 24, 2016
a039465
Progress on ajax, comments out JS so it all still works.
Jan 24, 2016
85fe1d4
Merge pull request #29 from nyc-island-foxes-2016/readme-ajax
webdevjeffus Jan 24, 2016
b3fbc88
Implement comments_controller_spec with first test
webdevjeffus Jan 24, 2016
407adf2
Add FactoryGirl objects to comments_controller_spec
webdevjeffus Jan 24, 2016
fccf496
Add factory for comments in factories.rb
webdevjeffus Jan 24, 2016
2ae9bf0
Implement 4 tests in comments_controller_spec.rb
webdevjeffus Jan 24, 2016
1abd3f0
Merge pull request #30 from nyc-island-foxes-2016/comments-spec
zlschatz Jan 25, 2016
232c3c0
Create _answer_show partial to render in question view
deweydell Jan 25, 2016
d5e8b7b
Finish writing js ajax request for posting answer to question
deweydell Jan 25, 2016
4d3f962
Remove binding.pry
deweydell Jan 25, 2016
169718a
Remove Binding.pry
deweydell Jan 25, 2016
f348256
Move answer html from question page into partial
deweydell Jan 25, 2016
04f2f4d
Account for xhr request for posting answer
deweydell Jan 25, 2016
bcec917
Add error handling for non-ajax requests to post answer
deweydell Jan 25, 2016
47790cc
Add JS to clear text area after submit answer post form
deweydell Jan 25, 2016
e265309
Remove error handling, not sure how to do it.
deweydell Jan 25, 2016
0714f46
Merge pull request #31 from nyc-island-foxes-2016/ajaxbranch
webdevjeffus Jan 25, 2016
8976284
Finish Order Filter
luisplaz Jan 25, 2016
fe3b20d
Add trial ajax for view count update
luisplaz Jan 25, 2016
13a8e04
Merge pull request #32 from nyc-island-foxes-2016/finish-filter
zlschatz Jan 25, 2016
5cceade
User can only vote once per question and/or answer
zlschatz Jan 25, 2016
58042f2
Remove comment voting from Votes Controller
zlschatz Jan 25, 2016
d2e88ae
Indent fix
zlschatz Jan 25, 2016
d44573c
Merge pull request #33 from nyc-island-foxes-2016/user-voting
webdevjeffus Jan 25, 2016
c5e7adf
Add best_answer_path to routes
webdevjeffus Jan 25, 2016
0c8417f
Add bottom margin to .vote-container in main.css
webdevjeffus Jan 25, 2016
18e7f83
Implement best_answer_path and answers#best route; user can choose be…
webdevjeffus Jan 25, 2016
6104893
Add best_answer getter method to Question model
webdevjeffus Jan 25, 2016
d1ce905
Pull best answer out of order and display as first answer in list
webdevjeffus Jan 25, 2016
3318368
Implement sorting of answers on questions#show view, with best answer…
webdevjeffus Jan 25, 2016
bc8878d
Sort comments by created_at on questions#show
webdevjeffus Jan 25, 2016
4db0dc6
Fix bug with answer comments in comments#create
webdevjeffus Jan 25, 2016
02294dc
Fix bug with answer comments in comments#update
webdevjeffus Jan 25, 2016
ab7c4a5
Implement #redirect_to_question_path in comments_controller; refactor…
webdevjeffus Jan 25, 2016
f3c16cd
Fix indenting and missing div tag in questions/index view
webdevjeffus Jan 25, 2016
37bbd0d
Add views column to questions table
webdevjeffus Jan 25, 2016
7b3117c
Implement display of views count on questions/index view
webdevjeffus Jan 25, 2016
2a61226
Merge pull request #34 from nyc-island-foxes-2016/best-answer
zlschatz Jan 25, 2016
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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# kiwi-overflow
# Kiwi Overflow

This is a Ruby on Rails app built by @webdevjeffus, @deweydell, @luisplaz, and @zlschatz which is an imitation of Stack Overflow.

[Our trello board has images of our schema and working agreement](https://trello.com/b/TKvtoxBm/kiwi-overflow)
Binary file added kiwi/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions kiwi/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--color
--require spec_helper
--format documentation
11 changes: 8 additions & 3 deletions kiwi/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ group :development, :test do
gem 'byebug'
gem 'pry-rails'
gem 'pry-nav'
gem 'factory_girl'
gem 'launchy'
gem 'capybara'
gem 'factory_girl_rails'
gem 'database_cleaner'
gem 'better_errors'
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'faker'
end

group :test do
gem 'launchy'
gem 'capybara'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
Expand Down
27 changes: 26 additions & 1 deletion kiwi/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ GEM
concurrent-ruby (1.0.0)
database_cleaner (1.5.1)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
faker (1.6.1)
i18n (~> 0.5)
globalid (0.3.6)
Expand Down Expand Up @@ -127,6 +131,23 @@ GEM
rake (10.5.0)
rdoc (4.2.1)
json (~> 1.4)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
Expand All @@ -137,6 +158,8 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
slop (3.6.0)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -170,7 +193,7 @@ DEPENDENCIES
byebug
capybara
database_cleaner
factory_girl
factory_girl_rails
faker
jbuilder (~> 2.0)
jquery-rails
Expand All @@ -179,8 +202,10 @@ DEPENDENCIES
pry-nav
pry-rails
rails (= 4.2.5)
rspec-rails
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
shoulda-matchers
uglifier (>= 1.3.0)
web-console (~> 2.0)

Expand Down
27 changes: 2 additions & 25 deletions kiwi/README.rdoc
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
== README

This README would normally document whatever steps are necessary to get the
application up and running.
This is a Ruby on Rails app built by @webdevjeffus, @deweydell, @luisplaz, and @zlschatz which is an imitation of Stack Overflow.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...


Please feel free to use a different markup language if you do not plan to run
<tt>rake doc:app</tt>.
Our trello board has images of our schema and working agreement: https://trello.com/b/TKvtoxBm/kiwi-overflow
18 changes: 18 additions & 0 deletions kiwi/app/assets/javascripts/answers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$(document).on("ready", function(){

$('#answers-form form').on('submit', function(event){
event.preventDefault();
var valuesToSubmit = $(this).serialize();
$.ajax({
url: $('#answers-form form').attr("action"),
type: "POST",
data: valuesToSubmit,
}).done(function(response) {
$('#answers-form form textarea').val('');
$('.answers-list').append(response);
}).fail(function(response) {
console.log("FAILURE");
});
});

});
14 changes: 14 additions & 0 deletions kiwi/app/assets/javascripts/questions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
// $(document).on("ready", function(){
// $('.question-container a').on( "click", function(e) {
// e.preventDefault();
// var start = $(this).prev().children('.views')[0].innerHTML;
// $(this).prev().children('.views')[0].innerHTML = start+1;
// });

// });



//
8 changes: 8 additions & 0 deletions kiwi/app/assets/javascripts/vote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$(document).on("ready", function(){

// $('#up-vote').on("click", function(event){
// event.preventDefault();
// })


})
190 changes: 190 additions & 0 deletions kiwi/app/assets/stylesheets/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
body {
font-family: 'Roboto', sans-serif;
}

header, footer {
margin: 0 auto;
width: 50%;
text-align: center;
margin-bottom: 1em;
}

header {
background-color: #E0EEE0;
padding: 0px 20px 20px 20px;
}

nav {
margin: 0 auto;
padding:0;

}

#kiwi {
height: 100px;
width: 100px;
margin-top: 1em;
}

#logo {
font-weight: 900;
margin-bottom: 1em;
}

nav ul {
display: inline;
padding: 0;
}

nav li {
display: inline;
list-style: none;
font-weight: 400;
padding: 0 10px 0 10px;
}

a {
text-decoration: none;
color: #66CD00;
}

a:hover {
text-decoration: underline;
color: green;
}

main {
margin: 0px auto;
width: 50%;
padding: 0px 20px 20px 20px;
border: 1px dotted black;
}

.question-container {
border-bottom: 1px solid gray;
padding-bottom: 1em;
margin-bottom: 1em;
}

#question-title {
border-bottom: 1px solid gray;
}

.answers-list {
margin-top: 4em;
}

.answer {
padding: 1em;
margin-bottom: 1em;
background-color: #E0EEE0;
}

form, #new-user {
margin: 1em;
}

#form {
display: inline;
width: 90%;
}

.input-options {
display:block;
padding:10px;
}

textarea {
margin-top: 3%;
margin-bottom: 3%;
width: 100%;
height: 200px;
}

.comment {
width: 100%;
color: gray;

}

.form-button {
text-align: center;
}

p {
font-weight: 300;
}

label{
width: 4em;
float: left;
text-align: right;
margin-right: 1.5em;
display: block
}

.question-stats {
display: inline;
margin-right: 2em;
}

.question-links {
display: inline;
}

.votes, .answers, .views {
display: inline;
font-weight: 900;
text-align: center;
}
.votes-label, .answers-label, .views-label {
display: inline;
margin-right: 1em;
}

.vote-container {
height: 4em;
width: 2em;
float: left;
margin-right: 1em;
margin-bottom: 0.5em;
font-size: 1em;
}

.vote-attributes{
list-style: none;
text-align: center;
width: 100%;
height: 100%;
margin: auto 0;
padding: 0;
/*list-style-position: inside;*/
}

.user-time {
font-size: 13px;
color: green;
font-weight: 300;
}

.sort-by-menu{
display:inline;
}

.sort-by-nav{
display:block-inline;
text-align:right;
}

.sort-by-options{
display:inline;
text-align:right;
}

ul li {
list-style: none;
}

#question-content {
}

Loading