Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Validate length of the title | class AnnouncementForm < Announcement::BaseForm
allow title
end
| class AnnouncementForm < Announcement::BaseForm
allow title
def call
validate_length title, min: 10
end
private def validate_length(field, min)
if (field.value || "").size < min
field.add_error "is too short"
end
end
end
|
Remove the spec for no target. | require "../../spec_helper"
describe Isot::Parser do
context "with a WSDL defining xs:schema without targetNamespace" do
xml = <<-XML
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://def.example.com">
<types>
... | require "../../spec_helper"
describe Isot::Parser do
context "with a WSDL defining xs:schema without targetNamespace" do
# xml = <<-XML
# <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
# xmlns:xs="http://www.w3.org/2001/XMLSchema"
# targetNamespace="http://def.example.com">
# ... |
Remove the default test from the spec | require "./spec_helper"
describe Discord do
# TODO: Write tests
it "works" do
false.should eq(true)
end
end
| require "./spec_helper"
describe Discord do
end
|
Add a correct URL to the User-Agent | require "http/client"
require "openssl/ssl/context"
require "./mappings"
require "./version"
module Discord
module REST
SSL_CONTEXT = OpenSSL::SSL::Context::Client.new
USER_AGENT = "DiscordBot (discordcr - no URL yet, #{Discord::VERSION})"
def request(endpoint_key : Symbol, method : String, url : Stri... | require "http/client"
require "openssl/ssl/context"
require "./mappings"
require "./version"
module Discord
module REST
SSL_CONTEXT = OpenSSL::SSL::Context::Client.new
USER_AGENT = "DiscordBot (https://github.com/meew0/discordcr, #{Discord::VERSION})"
def request(endpoint_key : Symbol, method : String... |
Change Interface::HTTP to match protocol spec | module Raven
class Interface::HTTP < Interface
property! url : String
property! method : String
any_json_property :data, :query_string, :cookies, :headers, :env
def self.sentry_alias
:request
end
end
end
| module Raven
class Interface::HTTP < Interface
property! url : String
property! method : String
property query_string : String?
property cookies : String?
any_json_property :env, :headers, :data
def self.sentry_alias
:request
end
end
end
|
Fix Regex matching Crystal version | module Raven
class Context
# FIXME
# @[ThreadLocal]
@@current : self?
def self.current
@@current ||= new
end
def self.clear!
@@current = nil
end
class_getter os_context : AnyHash::JSON do
{
name: Raven.sys_command("uname -s"),
version: ... | module Raven
class Context
# FIXME
# @[ThreadLocal]
@@current : self?
def self.current
@@current ||= new
end
def self.clear!
@@current = nil
end
class_getter os_context : AnyHash::JSON do
{
name: Raven.sys_command("uname -s"),
version: ... |
Update contacted_at if message sent successfully | module Command
command "suggest", "suggest someone to contact" do |_args, repository|
confirmed = Proc(String, Bool).new do |answer|
answer == "Y" || answer.empty?
end
contacts = repository.all.sort
suggested_contact = contacts.first
last_contact = suggested_contact.last_contacted
da... | module Command
command "suggest", "suggest someone to contact" do |_args, repository|
confirmed = Proc(String, Bool).new do |answer|
answer == "Y" || answer.empty?
end
contacts = repository.all.sort
suggested_contact = contacts.first
last_contact = suggested_contact.last_contacted
da... |
Add an Authorization header to the request method | require "http/client"
module Discordcr
module REST
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true)
end
end
end
| require "http/client"
module Discordcr
module REST
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
headers["Authorization"] = @token
HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true)
end... |
Add Exceptions for param validations | module Amber
module Exceptions
class DuplicateRouteError < Exception
def initialize(route : Route)
super("Route: #{route.verb} #{route.resource} is duplicated.")
end
end
class RouteNotFound < Exception
def initialize(request)
super("The request was not found.")
end... | module Amber
module Exceptions
class DuplicateRouteError < Exception
def initialize(route : Route)
super("Route: #{route.verb} #{route.resource} is duplicated.")
end
end
class RouteNotFound < Exception
def initialize(request)
super("The request was not found.")
end... |
Move temporary path to /tmp | require "file_utils"
FileUtils.rm_rf "test_tables"
FileUtils.mkdir_p "test_tables"
module Storage
module TableManager
@@tables = {} of String => Table
def self.find(name)
if table = @@tables[name]?
table
else
@@tables[name] = Table.create("test_tables/" + name)
end
end... | require "file_utils"
FileUtils.mkdir_p "/tmp/rethinkdb-lite/test_tables"
module Storage
module TableManager
@@tables = {} of String => Table
def self.find(name)
if table = @@tables[name]?
table
else
@@tables[name] = Table.create("/tmp/rethinkdb-lite/test_tables/" + name)
e... |
Create a mapping for MESSAGE_CREATE events | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
struct GatewayPacket
JSON.mapping(
op: UInt8,
d: JSON::Any,
s: UInt32 | Nil,
t: String | Nil
)
e... | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
struct GatewayPacket
JSON.mapping(
op: UInt8,
d: JSON::Any,
s: UInt32 | Nil,
t: String | Nil
)
e... |
Define a mapping for the op10 payload | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
module Gateway
struct MessageCreatePayload
JSON.mapping(
type: UInt8,
content: String,
id: Strin... | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
module Gateway
struct MessageCreatePayload
JSON.mapping(
type: UInt8,
content: String,
id: Strin... |
Repair autocompletion system broken with 3c18e1feb that was a bit too naive | module Caoutchouc
module Shell
class Autocomplete
getter :text, :position, :buffer
def self.initialize_autocomplete!
Readline.autocomplete do |text|
new(text).complete
end
end
def initialize(@text, @position = nil, @buffer = nil)
@buffer ||= Readline.lin... | module Caoutchouc
module Shell
class Autocomplete
getter :text, :position, :buffer
def self.initialize_autocomplete!
Readline.autocomplete do |text|
new(text).complete
end
end
def initialize(@text, @position = nil, @buffer = nil)
@buffer ||= Readline.lin... |
Add a handler for dispatch events | require "http/web_socket"
require "json"
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = URI.parse(gateway.url)
@websocket = websocket = HTTP::WebSocket.new(
host: url.host.not_nil!,
path... | require "http/web_socket"
require "json"
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = URI.parse(gateway.url)
@websocket = websocket = HTTP::WebSocket.new(
host: url.host.not_nil!,
path... |
Fix bug where date curriculum dates were incorrect | require "./BenningtonWebsite/*"
require "kemal"
get "/" do
if Time.now.month === (5..10)
next_term = "Fall#{Time.now.year}"
else
next_term = "Spring#{Time.now.year + 1}"
end
curriculum_link = "http://curriculum.bennington.edu/#{next_term}/"
render "src/views/index.html.ecr"
end
get "/map.pdf" do |env|
# TOD... | require "./BenningtonWebsite/*"
require "kemal"
get "/" do
if (5..10).includes? Time.now.month
next_term = "Fall#{Time.now.year}"
else
next_term = "Spring#{Time.now.year + 1}"
end
curriculum_link = "http://curriculum.bennington.edu/#{next_term}/"
render "src/views/index.html.ecr"
end
get "/map.pdf" do |env|
... |
Use variables instead of let and subject | require "../spec_helper"
require "random/secure"
module Franklin
describe Item do
subject { Item.new(id, title, author, format) }
let(:id) { Random::Secure.hex }
let(:title) { "Ender's Game" }
let(:author) { "Orson Scott Card" }
let(:format) { "eBook" }
it "has an id" do
expect(subject... | require "../spec_helper"
require "random/secure"
module Franklin
describe Item do
title = "Ender's Game"
author = "Orson Scott Card"
format = "eBook"
it "has an id" do
id = Random::Secure.hex
subject = Item.new(id, title, author, format)
subject.id.should eq(id)
end
it "h... |
Use abstract methods from language | macro generate_abstract_def(signature)
def {{signature.id}}
fail "Abstract method \#{{signature.id}} called on #{self.class}"
end
end
module Generate
struct View
property config
property logger
generate_abstract_def render
generate_abstract_def log
def initialize(@config, @logger)
e... | module Generate
struct View
property config
property logger
abstract def render
abstract def log
def initialize(@config, @logger)
end
def render_with_log
log
render
end
end
struct FileView < View
abstract def path
abstract def to_s(io)
abstract def full_... |
Use JSON::Any for the payload type in GatewayPacket | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
struct GatewayPacket
JSON.mapping(
op: UInt8,
d: Nil,
s: UInt32 | Nil,
t: String | Nil
)
end
end... | require "json"
module Discordcr
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
struct GatewayPacket
JSON.mapping(
op: UInt8,
d: JSON::Any,
s: UInt32 | Nil,
t: String | Nil
)
e... |
Define a handler method for gateway messages | require "http/websocket"
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = gateway.url
@websocket = HTTP::WebSocket.new(URI.parse(url))
end
end
end
| require "http/websocket"
require "./rest"
module Discordcr
class Client
include REST
def initialize(@token : String, @client_id : UInt64)
end
def run
url = gateway.url
@websocket = HTTP::WebSocket.new(URI.parse(url))
end
private def on_message(String)
end
end
end
|
Implement the Get Gateway API call | require "http/client"
module Discordcr
module REST
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
headers["Authorization"] = @token
HTTP::Client.exec(method: method, url: url, headers: headers, body: body, tls: true)
end... | require "http/client"
require "./mappings"
module Discordcr
module REST
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
headers["Authorization"] = @token
HTTP::Client.exec(method: method, url: url, headers: headers, body: bo... |
Add a mapping for the response of the prune count endpoint | require "./converters"
module Discord
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
end
end
| require "./converters"
module Discord
module REST
# A response to the Get Gateway REST API call.
struct GatewayResponse
JSON.mapping(
url: String
)
end
# A response to the Get Guild Prune Count REST API call.
struct PruneCountResponse
JSON.mapping(
pruned: UInt3... |
Add documentation for the macro | module Jennifer::Model
module OptimisticLocking
macro with_optimistic_lock(locking_column = lock_version)
def self.locking_column
{{locking_column.stringify}}
end
def locking_column
self.class.locking_column
end
{% if locking_column != "lock_version" %}
def ... | module Jennifer::Model
module OptimisticLocking
# Add optimistic locking to model
# By default, it uses column `lock_version : Int32` as lock
# The column used as lock must be type `Int32` or `Int64` and the default value of 0
# You can use a different column name as lock by passing the column name to... |
Use a proper SSL context instead of `true` | require "http/client"
require "./mappings"
module Discordcr
module REST
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
headers["Authorization"] = @token
HTTP::Client.exec(method: method, url: url, headers: headers, body: bo... | require "http/client"
require "openssl/ssl/context"
require "./mappings"
module Discordcr
module REST
SSL_CONTEXT = OpenSSL::SSL::Context::Client.new
def request(endpoint_key : Symbol, method : String, url : String | URI, headers : HTTP::Headers | Nil, body : String | Nil)
HTTP::Client.exec(method: m... |
Fix ConnectionPool(T) error on assigment | require "mysql"
require "pool/connection"
require "http"
macro conn
env.mysql.connection
end
macro release
env.mysql.release
end
def mysql_connect(options, capacity = 25, timeout = 0.1)
Kemal.config.add_handler Kemal::MySQL.new(options, capacity, timeout)
end
class HTTP::Server::Context
@mysql : ConnectionP... | require "mysql"
require "pool/connection"
require "http"
macro conn
env.mysql.connection
end
macro release
env.mysql.release
end
def mysql_connect(options, capacity = 25, timeout = 0.1)
Kemal.config.add_handler Kemal::MySQL.new(options, capacity, timeout)
end
class HTTP::Server::Context
@mysql : ConnectionP... |
Move from system to file_utils | system "rm -rf test_tables"
system "mkdir test_tables"
module Storage
module TableManager
@@tables = {} of String => Table
def self.find(name)
if table = @@tables[name]?
table
else
@@tables[name] = Table.create("test_tables/" + name)
end
end
end
end
at_exit do
syst... | require "file_utils"
FileUtils.rm_rf "test_tables"
FileUtils.mkdir_p "test_tables"
module Storage
module TableManager
@@tables = {} of String => Table
def self.find(name)
if table = @@tables[name]?
table
else
@@tables[name] = Table.create("test_tables/" + name)
end
end... |
Move Current Environment to a method | require "./environment/**"
require "./support/file_encryptor"
module Amber::Environment
alias EnvType = String | Symbol
macro included
AMBER_ENV = "AMBER_ENV"
CURRENT_ENVIRONMENT = ENV[AMBER_ENV] ||= "development"
class_property environment_path : String = "./config/environments/"
@@settings : Se... | require "./environment/**"
require "./support/file_encryptor"
module Amber::Environment
alias EnvType = String | Symbol
macro included
AMBER_ENV = "AMBER_ENV"
class_property environment_path : String = "./config/environments/"
@@settings : Settings?
def self.settings
@@settings ||= Loader.... |
Fix for upto / downto | # #######################################################################
#
# Author: Brian Hood
# Name: Crystal bindings for MonetDB
# Codename: Dagobert I
# Description:
# Tools library
#
#
# #######################################################################
require "progress"
struct Number
def times_with_... | # #######################################################################
#
# Author: Brian Hood
# Name: Crystal bindings for MonetDB
# Codename: Dagobert I
# Description:
# Tools library
#
#
# #######################################################################
require "progress"
struct Number
def times_with_... |
Add guard statement for @@__mocks_name being nil | module Mocks
module BaseMock
macro mock(method)
{% method_name = method.name.stringify %}
{% method_name = "self.#{method_name.id}" if method.receiver.stringify == "self" %}
{% method_name = method_name.id %}
def {{method_name}}({{method.args.argify}})
%method = ::Mocks::Registry.... | module Mocks
module BaseMock
macro mock(method)
{% method_name = method.name.stringify %}
{% method_name = "self.#{method_name.id}" if method.receiver.stringify == "self" %}
{% method_name = method_name.id %}
def {{method_name}}({{method.args.argify}})
%mock_name = @@__mocks_name
... |
Add support for guild caching | require "./mappings/*"
module Discord
class Cache
def initialize(@client : Client)
@users = Hash(UInt64, User).new
@channels = Hash(UInt64, Channel).new
end
def resolve_user(id : UInt64) : User
@users.fetch(id) { @users[id] = @client.get_user(id) }
end
def resolve_channel(id :... | require "./mappings/*"
module Discord
class Cache
def initialize(@client : Client)
@users = Hash(UInt64, User).new
@channels = Hash(UInt64, Channel).new
@guilds = Hash(UInt64, Guild).new
end
def resolve_user(id : UInt64) : User
@users.fetch(id) { @users[id] = @client.get_user(id)... |
Exit with the exit status of the task that ran | require "colorize"
require "./lucky_cli"
require "./generators/*"
require "./dev"
require "./ensure_process_runner_installed"
include LuckyCli::TextHelpers
args = ARGV.join(" ")
if ARGV.first? == "dev"
LuckyCli::Dev.new.call
elsif ARGV.first? == "ensure_process_runner_installed"
LuckyCli::EnsureProcessRunnerInst... | require "colorize"
require "./lucky_cli"
require "./generators/*"
require "./dev"
require "./ensure_process_runner_installed"
include LuckyCli::TextHelpers
args = ARGV.join(" ")
if ARGV.first? == "dev"
LuckyCli::Dev.new.call
elsif ARGV.first? == "ensure_process_runner_installed"
LuckyCli::EnsureProcessRunnerInst... |
Clear db after each test | ENV["LUCKY_ENV"] = "test"
require "spec"
require "../src/app"
require "./support/**"
| ENV["LUCKY_ENV"] = "test"
require "spec"
require "../src/app"
require "./support/**"
Spec.after_each do
LuckyRecord::Repo.truncate
end
|
Add verifier for prime enumeration | # ac-library.cr by hakatashi https://github.com/google/ac-library.cr
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LIC... | |
Add test code for faster matrix multiplication. | require "benchmark"
require "matrix"
def faster_matrix_multiply(a, b)
raise "Dimensions don't match" unless a.columns.count == b.rows.count
matrix = Matrix(typeof(a[0] * b[0])).new(a.rows.count, b.columns.count)
pos = -1
b_columns = b.columns
initial_sum = typeof(a[0] * b[0]).cast(0.0)
a.rows.each do |a_ro... | |
Add memcpy, memmove, memset, memcmp | require "./types.cr"
def memcpy(dst : Pointer(_), src : Pointer(_), n : USize) : Pointer
dst_sig = dst
dst = dst.to_byte_ptr
src = src.to_byte_ptr
i = 0
while i < n
dst[i] = src[i]
i += 1
end
dst_sig
end
def memmove(dst : Pointer(_), src : Pointer(_), n : USize) : Pointer
... | |
Add Crustache::Engine class for typical using | module Crustache
class Engine
def initialize(@basedir : String, @cache = false)
self.initialize ViewLoader.new @basedir, @cache
end
def initialize(@fs : FileSystem); end
# It renders a template loaded from `filename` with `model`
# and it returns rendered string.
# If `filename` is not... | |
Add a spec for Engine class | require "./spec_helper"
describe Crustache::Engine do
describe "#initialize" do
it "should return a new instance" do
Crustache::Engine.new(Crustache::HashFileSystem.new).should be_truthy
Crustache::Engine.new("", true).should be_truthy
end
end
describe "#render" do
it "should render a te... | |
Add Crystal version that avoids allocating strings | gcfile = File.new("chry_multiplied.fa")
gcfile.buffer_size = ARGV[0].to_i
at = 0
gc = 0
while true
# Peek the IO's buffer
peek = gcfile.peek
# If there's nothing else, we reached the end
break if peek.empty?
# If the line starts with '>' it's a comment
if peek[0] === '>'
while true
# See where... | |
Add StaticFileHandler with SVG mime type | class HTTP::StaticFileHandler
private def mime_type(path)
case File.extname(path)
when ".txt" then "text/plain"
when ".htm", ".html" then "text/html"
when ".css" then "text/css"
when ".js" then "application/javascript"
when ".svg" then "image/svg+xml"
w... | |
Add some more specs for create_module_mock | require "../spec_helper"
module MyModule
def self.exists?(name)
false
end
end
create_module_mock MyModule do
mock self.exists?(name)
end
create_mock File do
mock self.exists?(name)
end
describe "create module mock macro" do
it "does not fail with Nil errors" do
allow(MyModule).to receive(self.exis... | |
Add some specs for Caoutchouc::Elasticsearch::Health | describe Caoutchouc::Elasticsearch::Health do
describe ".from_json" do
it "parses json correctly" do
response = <<-EOF
{
"cluster_name": "elasticsearch",
"status": "green",
"timed_out": false,
"number_of_nodes": 4,
"number_of_data_nodes": 2,
... | |
Test csd for linear algebra opcodes. | <CsoundSynthesizer>
<CsInstruments>
sr=48000
ksmps=1
nchnls=2
instr 1
imc la_i_mc_create 5, 5, p4, p5
la_i_print_mc imc
endin
</CsInstruments>
<CsScore>
i 1 1 1 0 0
i 1 2 1 -1 1
e
</CsScore>
</CsoundSynthesizer>
| |
Test csd for linear algebra opcodes. | <CsoundSynthesizer>
<CsInstruments>
sr=48000
ksmps=1
nchnls=2
instr 1
imc la_i_mc_create 5, 5, p4, p5
la_i_print_mc imc
endin
</CsInstruments>
<CsScore>
i 1 1 1 0 0
i 1 2 1 -1 1
e
</CsScore>
</CsoundSynthesizer>
| |
Test plan for Ableton Link opcodes. | <CsoundSynthesizer>
<CsLicense>
TEST FOR ABLETON LINK OPCODES
Michael Gogins
12 January 2017
</CsLicense>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr=44100
kr=441
ksmps=100
nchnls=2
alwayson "LinkMonitor"
instr LinkMonitor
i_link link_create 72
printf_i "i_link: %g\n", 1, i_link
link_enable i_link, 1
k_trigger,... | |
Test plan for Ableton Link opcodes. | <CsoundSynthesizer>
<CsLicense>
TEST FOR ABLETON LINK OPCODES
Michael Gogins
12 January 2017
</CsLicense>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>
sr=44100
kr=441
ksmps=100
nchnls=2
alwayson "LinkMonitor"
instr LinkMonitor
i_link link_create 72
printf_i "i_link: %g\n", 1, i_link
link_enable i_link, 1
k_trigger,... | |
Hide the printable beer menu HTML | .print_beer_menu {
display: block;
text-align: right;
}
h1.beer-category-name {
display: none;
}
.beer_name {
float: left;
height: 27px;
}
.date-tapped {
float: right;
margin: 0;
padding: 0;
height: 27px;
}
.brewery {
clear: left;
font-size: 12px;
}
.beer-nerd-stuff {
float: right;
clear: right;
font-... | .print_beer_menu {
display: block;
text-align: right;
}
h1.beer-category-name {
display: none;
}
.beer_name {
float: left;
height: 27px;
}
.date-tapped {
float: right;
margin: 0;
padding: 0;
height: 27px;
}
.brewery {
clear: left;
font-size: 12px;
}
.beer-nerd-stuff {
float: right;
clear: right;
font-... |
Remove cursor pointer from non-link nav elements | .navbar {
position: fixed;
top: 0px;
width: 100%;
height: 62px;
max-width: 1058px;
background-color: rgba(0,0,0,0.8);
color: #fc0;
z-index: 2;
text-decoration: none;
text-transform: uppercase;
}
.navbar ul {
display: flex;
justify-content: space-around;
list-style: none;
}
.navbar ul li {
d... | .navbar {
position: fixed;
top: 0px;
width: 100%;
height: 62px;
max-width: 1058px;
background-color: rgba(0,0,0,0.8);
color: #fc0;
z-index: 2;
text-decoration: none;
text-transform: uppercase;
}
.navbar ul {
display: flex;
justify-content: space-around;
list-style: none;
}
.navbar ul li {
d... |
Move FAB to lower-right per Material Design spec | /* Copyright 2016 Benjamin Barenblat
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | /* Copyright 2016 Benjamin Barenblat
Licensed under the Apache License, Version 2.0 (the “License”); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
Change hyperlink colour to black | html {
background-color: white;
color: black;
}
body {
font-family: Helvetica;
color: black;}
header {
background: white;
color: black;
}
nav ul {
display: inline-block
float: right;
padding: 80px;
margin: 0;
}
nav li {
display: inline-block;
color: black;
float: right;
padding: 20px;
margin: 0;
}
a h... | html {
background-color: white;
color: black;
}
body {
font-family: Helvetica;
color: black;}
header {
background: white;
color: black;
}
nav ul {
display: inline-block
float: right;
padding: 60px;
margin: 0;
}
nav li {
display: inline-block;
color: black;
float: right;
padding: 20px;
margin: 0;
}
a h... |
Add CSS for profile titles | html,body{margin:0;padding:0}body{background:#230d26 url("http://i.cubeupload.com/NmOrpo.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;backgro... | html,body{margin:0;padding:0}body{background:#230d26 url("http://i.cubeupload.com/NmOrpo.png") no-repeat fixed left top}.mainmenufooter a{color:#ccc}.mainmenufooter a:hover{color:#e5e5e5}.menugroup .button{color:#fff;border:solid 1px #000;background:#333}.menugroup .button:hover{color:#fff;border:solid 1px #000;backgro... |
Remove min width on tables | .md-typeset__table {
min-width: 100%;
}
@media only screen and (min-width: 768px){
td:nth-child(1){
white-space: nowrap;
}
}
.hidden {
display: none;
}
.kops_feature_table .md-typeset__table table{
max-width: fit-content;
} | @media only screen and (min-width: 768px){
td:nth-child(1){
white-space: nowrap;
}
}
.hidden {
display: none;
}
.kops_feature_table .md-typeset__table table{
max-width: fit-content;
} |
Add rails bootstrap forms css | /*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path... | /*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path... |
Fix signin form width bug | /* Sign in
/* ---------------------------------------------------------- */
.gh-signin {
position: relative;
margin: 30px auto;
padding: 40px;
max-width: 400px;
border: #dae1e3 1px solid;
background: #f8fbfd;
border-radius: 5px;
text-align: left;
}
.gh-signin .form-group {
margin-b... | /* Sign in
/* ---------------------------------------------------------- */
.gh-signin {
position: relative;
margin: 30px auto;
padding: 40px;
max-width: 400px;
width: 100%;
border: #dae1e3 1px solid;
background: #f8fbfd;
border-radius: 5px;
text-align: left;
}
.gh-signin .form-gro... |
Update color of temporary allowed icon | /**************************************************************************
TEXT COLORS
**************************************************************************/
.fa.positive {
color: #43C83C !important;
}
.fa.negative {
color: #E94B3B !important;
}
/******************************************************... | /**************************************************************************
TEXT COLORS
**************************************************************************/
.fa.positive {
color: #43C83C !important;
}
.fa.negative {
color: #E94B3B !important;
}
/******************************************************... |
Add vender prefix for CSS | .subnav--page-layout {
position: unset;
height: 100%;
margin-top: 20px;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#F5F5F5));
border-width: 10px;
border-style: solid;
border-color: #F2DEDE;
border-radius: 4px;
}
ul.nav.nav-pills.rows {
di... | .subnav--page-layout {
position: unset;
height: 100%;
margin-top: 20px;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#F5F5F5));
border-width: 10px;
border-style: solid;
border-color: #F2DEDE;
border-radius: 4px;
}
ul.nav.nav-pills.rows {
di... |
Make menu absolute so it doesn'T screw with content | .spin-image {
-webkit-animation:spin 4s linear infinite;
-moz-animation:spin 4s linear infinite;
animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-tra... | .spin-image {
-webkit-animation:spin 4s linear infinite;
-moz-animation:spin 4s linear infinite;
animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-tra... |
Improve styling of charts and searchbar | td, th {
vertical-align: middle !important;
text-align: center !important;
}
.input-group {
margin: 20px 0px;
}
svg {
height: 150px;
}
| |
Make cotainer width 100% on mobile screen | * {
border-style: solid;
border-color: red;
}
.container ul {
list-style: none;
}
.Welcome .container {
display: none;
}
/* Larger than mobile */
@media (min-width: 401px) {
/*CSS styling for desktop mode here*/
}
@media (min-width: 1240px) {
.Welcome .container {
display: block;
... | * {
border-style: solid;
border-color: red;
}
.container {
border-color: blue;
width: 100%;
}
.container ul {
list-style: none;
}
.Welcome .container {
display: none;
}
/* Larger than mobile */
@media (min-width: 401px) {
/*CSS styling for desktop mode here*/
}
@media (min-width: 1240p... |
Adjust AjaxControlToolkit combobox button position | /* AjaxControlToolkit CSS to match DNN forms style */
.act_combobox
{
width:45%;
max-width:445px
}
.act_combobox .ajax__combobox_inputcontainer,
.act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontainer,
.act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontain... | /* AjaxControlToolkit CSS to match DNN forms style */
.act_combobox
{
width:45%;
max-width:445px
}
.act_combobox .ajax__combobox_inputcontainer,
.act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontainer,
.act_combobox .ajax__combobox_inputcontainer .ajax__combobox_textboxcontain... |
Change loading bar color to green | .Loading {
width: 100%;
height: 2px;
z-index: 1000;
position: absolute;
top: 0;
}
.LoadingBar {
height: 2px;
position: relative;
background-color: white;
transition: opacity 100ms;
}
| .Loading {
width: 100%;
height: 2px;
z-index: 1000;
position: absolute;
top: 0;
}
.LoadingBar {
height: 4px;
position: relative;
background-color: rgba(53, 175, 109, 0.8);
transition: opacity 100ms;
}
|
Hide focus outline from table | .reabledit table {
width: 100%;
border: 2px solid #ddd;
border-collapse: collapse;
}
.reabledit th, .reabledit td {
border: 1px solid #ddd;
padding: 0;
box-sizing: border-box;
height: 40px;
}
.reabledit th {
background-color: #f3f3f3;
}
.reabledit td.selected {
background-color: #f9f9f9;
border: ... | .reabledit:focus {
outline: none;
}
.reabledit table {
width: 100%;
border: 2px solid #ddd;
border-collapse: collapse;
}
.reabledit th, .reabledit td {
border: 1px solid #ddd;
padding: 0;
box-sizing: border-box;
height: 40px;
}
.reabledit th {
background-color: #f3f3f3;
}
.reabledit td.selected {
... |
Change padding between plot widgets in map layout | .row.display-flex {
display: flex;
flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
display: flex;
flex-direction: column;
}
@media (min-width: 1200px) {
#map-container {
min-width: 1000px;
}
}
.plot-widget {
min-width: 500px;
}
.plot-widget .x_panel {
height: 100%;
min-height: 500px;
}... | .row.display-flex {
display: flex;
flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
display: flex;
flex-direction: column;
padding: 0px 5px;
}
@media (min-width: 1200px) {
#map-container {
min-width: 1000px;
}
}
.plot-widget {
min-width: 500px;
}
.plot-widget .x_panel {
height: 100%;
... |
Add styling to header text | /* Custom style sheet */
.main {
width: 320px;
border: solid #ccc 1px;
border-radius: 10px;
box-shadow: 2px 4px 2px rgba(163,163,163, 0.7);
}
img {
display: block;
margin: auto;
border-radius: 10px;
}
.main-content {
width: 300px;
border: solid #ccc 1px;
border-radius: 10px;
margin: 10px;
}
p ... | /* Custom style sheet */
.main {
width: 320px;
border: solid #ccc 1px;
border-radius: 10px;
box-shadow: 2px 4px 2px rgba(163,163,163, 0.7);
}
img {
display: block;
margin: auto;
border-radius: 10px;
}
.main-content {
width: 300px;
border: solid #ccc 1px;
border-radius: 10px;
margin: 10px;
}
h3... |
Fix icons set as background in IE | /* IE hacks
==================================== */
* html .active-scaffold-header,
.active-scaffold li.form-element,
.active-scaffold li.sub-section {
zoom: 1;
}
* html .active-scaffold td .messages-container {
border-top: solid 1px #DAFFCD;
}
.active-scaffold-header div.actions a.show_search {
background-image:... | /* IE hacks
==================================== */
* html .active-scaffold-header,
.active-scaffold li.form-element,
.active-scaffold li.sub-section {
zoom: 1;
}
* html .active-scaffold td .messages-container {
border-top: solid 1px #DAFFCD;
}
* html .active-scaffold-header div.actions a.show_search {
background... |
Change H1 and H2 to reflect style. | body {
font-family: "Lucida Grande", "Helvetica Neue", "Arial";
background-image: url('http://images.apple.com/v/ipod/home/b/images/gradient_texture.png');
}
.container {
max-width: 768px;
}
.container .jumbotron {
background-color: #FFF;
border-radius: 6px;
box-shadow: 0px 1px 1px #272727;
}
.jumbotron ... | body {
font-family: "Lucida Grande", "Helvetica Neue", "Arial";
background-image: url('http://images.apple.com/v/ipod/home/b/images/gradient_texture.png');
}
h1, h2 {
font-family: "Lucida Grande", "Helvetica Neue", "Arial";
}
.container {
max-width: 768px;
}
.container .jumbotron {
background-color: #FFF;
... |
Reduce size of map container | body {
padding-top: 60px;
}
.leaflet-container {
height: 500px;
}
.ui.form .divider {
margin: 3em 0;
}
| body {
padding-top: 60px;
}
.leaflet-container {
height: 400px;
}
.ui.form .divider {
margin: 3em 0;
}
|
Make font size for fileinput-button !important so it's less likely to break | @charset "UTF-8";
/*
* jQuery File Upload Plugin CSS
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.fileinput-button {
position: relative;
overflow: hidden;
displa... | @charset "UTF-8";
/*
* jQuery File Upload Plugin CSS
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
.fileinput-button {
position: relative;
overflow: hidden;
displa... |
Make simple select rule more specific | .dropdown-header {
font-size: 1.2em;
font-weight: bold;
}
/* Simple Select tweaks */
.ss-main {
padding: 0;
border-color: #fff;
}
| .dropdown-header {
font-size: 1.2em;
font-weight: bold;
}
/* Simple Select tweaks */
.ss-main.form-control {
padding: 0;
border-color: #fff;
}
|
Remove outline when icons are in focus | .super-number {
position: relative;
}
.super-number a.increment,
.super-number a.decrement {
-moz-transition: background linear 0.2;
-webkit-transition: background linear 0.2s;
position: absolute;
right: 0;
text-align: center;
text-decoration: none;
transition: background linear 0.2s;
user-select: non... | .super-number {
position: relative;
}
.super-number a.increment,
.super-number a.decrement {
-moz-transition: background linear 0.2;
-webkit-transition: background linear 0.2s;
position: absolute;
right: 0;
text-align: center;
text-decoration: none;
transition: background linear 0.2s;
user-select: non... |
Change background to horizontal lines | @font-face {
font-family: 'white_rabbitregular';
src: url('/assets/whiterabbit-webfont.woff2') format('woff2'),
url('/assets/whiterabbit-webfont.woff') format('woff'),
url('/assets/whiterabbit-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
backgro... | @font-face {
font-family: 'white_rabbitregular';
src: url('/assets/whiterabbit-webfont.woff2') format('woff2'),
url('/assets/whiterabbit-webfont.woff') format('woff'),
url('/assets/whiterabbit-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
backgro... |
Align text in meta table left. | body {
background-image:url('/images/bg.jpg');
}
.metatable {
width: 100%;
}
.metaspan {
padding: 5px;
width: 99%;
font-size: 1.1em;
text-align: center;
}
.metainfotable {
width: 60%;
background: rgba(1,1,1,0.1);
}
.meta_header th {
text-align: left;
}
table, th, td
{
border: 1px solid white;... | body {
background-image:url('/images/bg.jpg');
}
.metatable {
width: 100%;
text-align: left;
}
.metaspan {
padding: 5px;
width: 99%;
font-size: 1.1em;
text-align: center;
}
.metainfotable {
width: 60%;
background: rgba(1,1,1,0.1);
}
.meta_header th {
text-align: left;
}
table, th, td
{
bord... |
Change width unit to % when <= 700px | .ExistingMemberConsent {
width: 600px;
text-align: center;
}
.ExistingMemberConsent--opt-in-reason {
font-size: 22px;
line-height: 1.3em;
margin-bottom: 1em;
}
.ExistingMemberConsent--accept.Button-root,
.ExistingMemberConsent--decline.Button-root {
max-width: 300px;
margin: 20px auto;
}
.ExistingMembe... | .ExistingMemberConsent {
width: 600px;
text-align: center;
}
.ExistingMemberConsent--opt-in-reason {
font-size: 22px;
line-height: 1.3em;
margin-bottom: 1em;
}
.ExistingMemberConsent--accept.Button-root,
.ExistingMemberConsent--decline.Button-root {
max-width: 300px;
margin: 20px auto;
}
.ExistingMembe... |
Make the table borders more like publication-quality | /*
:Author: Shmuel Zeigerman
:Contact: shmuz at actcom co il
:Copyright: This stylesheet has been placed in the public domain.
[Optionally place a description here.]
*/
@import url(html4css1.css);
hr.docutils {
width: 100%
}
.funcdef {
font-weight: bold ;
font-size: 100%
}
body {
margin-left: 1em ;
... | /*
:Author: Shmuel Zeigerman
:Contact: shmuz at actcom co il
:Copyright: This stylesheet has been placed in the public domain.
[Optionally place a description here.]
*/
@import url(html4css1.css);
hr.docutils {
width: 100%
}
.funcdef {
font-weight: bold ;
font-size: 100%
}
body {
margin-left: 1em ;
... |
Remove margin-bottom of main element | html, body{
width: 100%;
background-color: white;
}
img {
margin: 10px auto 10px auto;
width: 90%;
}
header{
margin-bottom: 10px;
padding: 10px;
}
footer{
margin-bottom: 10px;
padding: 10px;
}
hr {
border: 0;
border-bottom: 1px dashed #ccc;
background: #999;
}
#main{
... | html, body{
width: 100%;
background-color: white;
}
img {
margin: 10px auto 10px auto;
width: 90%;
}
header{
padding: 10px;
}
footer{
padding: 10px;
}
hr {
border: 0;
border-bottom: 1px dashed #ccc;
background: #999;
}
#main{
padding: 10px;
}
.bg-success {
background-co... |
Add a feedek class for background | .feedEkList {
width: auto;
list-style: none outside none;
background-color: #FFFFFF;
border: 1px solid #D3CAD7;
padding: 4px 6px;
color: #3E3E3E;
}
.feedEkList li {
border-bottom: 1px solid #D3CAD7;
padding: 5px;
}
.feedEkList li:last-child {
border-bottom: none;
}
.itemTitle a {
... | .feedEkList {
width: auto;
list-style: none outside none;
background-color: #FFFFFF;
border: 1px solid #D3CAD7;
padding: 4px 6px;
color: #3E3E3E;
}
.feedEkList li {
border-bottom: 1px solid #D3CAD7;
padding: 5px;
}
.feedEkList li:last-child {
border-bottom: none;
}
.itemTitle a {
... |
Change top block week stylesheet to absolute | #top {
display:block;
display: relative;
background-color:;
top: 170px;
}
#second_from_top {
display: block;
position: relative;
top: 300px;
}
| #top {
display:block;
display: absolute;
background-color:;
top: 170px;
}
#second_from_top {
display: block;
position: relative;
}
|
Simplify css for simple example | /*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
background: #6666FF;
border: 1px solid gray;
border-radius: 9px;
} | /*
Optional styling for bbplayer elements.
*/
.bbplayer .bb-playing {
color: green;
}
|
Fix wrong-sized sa confirm button | @import "@vars";
@import "skeleton-css/css/normalize.css";
@import "skeleton-css/css/skeleton.css";
@import "typeface-spoqa-han-sans2";
@import "mdi/css/materialdesignicons.min.css";
@import "sweetalert/dist/sweetalert.css";
html, body {
font-family: var(--font);
}
| @import "@vars";
@import "skeleton-css/css/normalize.css";
@import "skeleton-css/css/skeleton.css";
@import "typeface-spoqa-han-sans2";
@import "mdi/css/materialdesignicons.min.css";
@import "sweetalert/dist/sweetalert.css";
html, body {
font-family: var(--font);
}
.sa-confirm-button-container button {
height: ... |
Add missed CSS file, Mobile WUI | body {
font-size: 1em;
margin: 0px;
padding: 0px;
text-align: center;
}
/* form */
.search_form {
background-color: #FFF;
}
.search_form img {
vertical-align: middle;
margin: 3px 0px 3px 0px;
}
.search_form span {
font-weight: bold;
vertical-align: middle;
}
.search_box {
vertical-align: middle;
}
.submit {
... | |
Unify the length unit to rem | /* Highlight interlanguage links for Wikipedia */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("wikipedia.org") {
#p-lang li.interwiki-en a,
#p-lang li.interwiki-ja a {
color: #fff !important;
font: 1.2rem/1 sans-serif !important;
text-align: center !important;
text-decoration... | /* Highlight interlanguage links for Wikipedia */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("wikipedia.org") {
#p-lang li.interwiki-en a,
#p-lang li.interwiki-ja a {
color: #fff !important;
font: 1.2rem/1 sans-serif !important;
text-align: center !important;
text-decoration... |
Adjust z-index to make sidebar links clickable |
#sidebar {
position: absolute;
top: 0;
left: 0;
bottom: 0;
padding: 2em 0.5em 0 0.5em;
width: 11em;
}
#content {
position: relative;
padding: 0 0 0 11em;
}
ul {
font-family: sans-serif;
font-size: 95%;
list-style-type: square;
padding: 0 0 0 0;
margin: 0.3em 0 0 1.... |
#sidebar {
position: absolute;
z-index: 1;
top: 0;
left: 0;
bottom: 0;
padding: 2em 0.5em 0 0.5em;
width: 11em;
}
#content {
position: relative;
padding: 0 0 0 11em;
}
ul {
font-family: sans-serif;
font-size: 95%;
list-style-type: square;
padding: 0 0 0 0;
marg... |
Make sure error message doesn't overflow the dialog. | .popover {
max-width: none;
white-space: nowrap;
}
.systime-inline form .pficon-close,
.systime-inline form .fa-plus {
height: 26px;
width: 26px;
padding: 4px;
float: right;
margin-left: 5px;
}
.systime-inline .form-inline {
background: #f4f4f4;
border-width: 0 1px 1px 1px;
bor... | .popover {
max-width: none;
white-space: nowrap;
}
.systime-inline form .pficon-close,
.systime-inline form .fa-plus {
height: 26px;
width: 26px;
padding: 4px;
float: right;
margin-left: 5px;
}
.systime-inline .form-inline {
background: #f4f4f4;
border-width: 0 1px 1px 1px;
bor... |
Use custom margins for list index bg tiling, CORNER_MARGINS might be too large for this use RevBy: TrustMe | /* MListIndexStyle : MWidgetStyle */
MListIndexStyle {
shortcut-object-name: "whiteFont";
background-opacity: 0.5;
background-image: meegotouch-fastscroll-background $CORNER_MARGINS;
preferred-size: 7mm 100%;
margin-top: 0;
margin-left: 0;
margin-bottom: 0;
margin-right: 0;
}
#whiteF... | /* MListIndexStyle : MWidgetStyle */
MListIndexStyle {
shortcut-object-name: "whiteFont";
background-opacity: 0.5;
background-image: meegotouch-fastscroll-background 12px 12px;
preferred-size: 7mm 100%;
margin-top: 0;
margin-left: 0;
margin-bottom: 0;
margin-right: 0;
}
#whiteFont {
... |
Fix buttons & source selection not being aligned right on some browsers | .button-aligner {
display: flex;
justify-content: right;
align-items: right;
}
button {
border-radius: 0;
margin: 0.1em;
}
button:hover {
opacity: 0.6;
}
.audio-channel {
display: flex;
justify-content: right;
align-items: center;
}
.audio-channel p {
margin-right: 0.30em;
}
| .button-aligner {
display: flex;
justify-content: flex-end;
}
button {
border-radius: 0;
margin: 0.1em;
}
button:hover {
opacity: 0.6;
}
.audio-channel {
display: flex;
justify-content: flex-end;
align-items: center;
}
.audio-channel p {
margin-right: 0.30em;
}
|
Add bottom padding to body | /*
*= require ./bootstrap.min
*= require ./font-awesome.min
*= require ./pages
*= require_self
*/
body {
padding-top: 30px;
}
table tr td {
word-break: break-all;
}
| /*
*= require ./bootstrap.min
*= require ./font-awesome.min
*= require ./pages
*= require_self
*/
body {
padding-top: 30px;
padding-bottom: 100px;
}
table tr td {
word-break: break-all;
}
|
Complete task2 header colour & reversed test changes to body colour | body {
background: #222222;
color: rgba(0, 0, 0, 0.87);
font-family: sans-serif;
margin: 0;
}
header {
background-color: #4CAF50;
padding: 0.5em 1em;
}
section,
h1 {
max-width: 1170px;
margin-left: auto;
margin-right: auto;
}
h1 {
display: block;
font-size: 34px;
line-... | body {
background: #E8F5E9;
color: rgba(0, 0, 0, 0.87);
font-family: sans-serif;
margin: 0;
}
header {
background-color: #4C8BAF;
padding: 0.5em 1em;
}
section,
h1 {
max-width: 1170px;
margin-left: auto;
margin-right: auto;
}
h1 {
display: block;
font-size: 34px;
line-... |
Fix height of code block on docs | html {
box-sizing: border-box;
font-family: "Helvetica", arial, sans-serif;
}
html, body {
height: 100%;
width: 100%;
overflow: hidden;
}
* {
box-sizing: inherit;
}
.icon {
max-width: 70%;
max-height: 70%;
margin: 4px;
}
#map {
height: 100vh;
width: 50vw;
float: left;
}
#code {
height: 100vh;
... | html {
box-sizing: border-box;
font-family: "Helvetica", arial, sans-serif;
}
html, body {
height: 100%;
width: 100%;
overflow: hidden;
}
* {
box-sizing: inherit;
}
.icon {
max-width: 70%;
max-height: 70%;
margin: 4px;
}
#map {
height: 100vh;
width: 50vw;
float: left;
}
#code {
height: 100vh;
... |
Change header color in added | .adder-wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 1.6rem;
}
.adder-wrapper .header {
text-align: center;
background-color: #80deea !important;
margin: -1.6rem;
margin-bottom: 1.6rem;
padding: 1.6rem;
padding-bottom: calc(1.6... | .adder-wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 1.6rem;
}
.adder-wrapper .header {
text-align: center;
color: white;
background-color: #008ba3 !important; /* Cyan500 dark */
margin: -1.6rem;
margin-bottom: 1.6rem;
padding:... |
Make objects appear on gameboard | html {
background-color: white;
}
p {
width: 40%;
}
#title {
float: left;
margin-left: 10px;
}
#game_box {
float: right;
border: 2px solid #704520;
width: 700px;
height: 500px;
margin-right: 10px;
margin-top: -220px;
background-image: url("http://i59.tinypic.com/imt0km.jpg");
}
#dog {
positi... | html {
background-color: white;
}
p {
width: 40%;
}
#title {
float: left;
margin-left: 10px;
}
#game_box {
float: right;
border: 2px solid #704520;
width: 700px;
height: 500px;
margin-right: 10px;
margin-top: -220px;
background-image: url("http://i59.tinypic.com/imt0km.jpg");
}
#dog {
positi... |
Change input text field widths | .title {
text-align: center;
}
.metronome-parameters {
text-align: center;
}
#metronome-counter {
height: 50px;
width: 50px;
font-size: 50px;
text-align: center;
border: 1px solid black ;
margin-left: auto;
margin-right: auto;
background-color: white;
}
#metronome-visual {
position: relative;
... | .title {
text-align: center;
}
.metronome-parameters {
text-align: center;
}
#metronome-counter {
height: 50px;
width: 50px;
font-size: 50px;
text-align: center;
border: 1px solid black ;
margin-left: auto;
margin-right: auto;
background-color: white;
}
#metronome-visual {
position: relative;
... |
Correct webfont URLs to be relative to base directory | @font-face {
font-display: swap;
font-family: "Tofino";
font-style: normal;
font-weight: 400;
src: url("../webfonts/Tofino-Regular.woff2") format("woff2"), url("../webfonts/Tofino-Regular.woff") format("woff");
}
@font-face {
font-display: swap;
font-family: "Tofino";
font-style: italic;
font-weight: 400;
sr... | @font-face {
font-display: swap;
font-family: "Tofino";
font-style: normal;
font-weight: 400;
src: url("./webfonts/Tofino-Regular.woff2") format("woff2"), url("./webfonts/Tofino-Regular.woff") format("woff");
}
@font-face {
font-display: swap;
font-family: "Tofino";
font-style: italic;
font-weight: 400;
src:... |
Use larger font on navigation bar | /* [XUL] Navigation bar tweak */
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#urlbar dropmarker, #urlbar-go-button, #urlbar-reload-button, #urlbar-stop-button,
.search-go-button, #new-tab-button, .tabs-newtab-button, #alltabs-button {
visibility: collapse !important;
}
#nav-bar .to... | /* [XUL] Navigation bar tweak */
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#urlbar dropmarker, #urlbar-go-button, #urlbar-reload-button, #urlbar-stop-button,
.search-go-button, #new-tab-button, .tabs-newtab-button, #alltabs-button {
visibility: collapse !important;
}
#nav-bar .to... |
Fix css overlap issue with dropdowns | @value loginBodyColor #F3F7F8;
@value btnPrimaryColor #1C9DDB;
@value fieldMaxWidth 255px;
@value fieldMinWidth 175px;
@value fieldMargin 16px;
@value titleColor #083144;
@value alTitleColor #6B8792;
@value disabledComponentColor #EEEEEE;
@value regionCodeWidth 98px;
@value phoneNumberWidth 108px;
@media (max-width... | @value loginBodyColor #F3F7F8;
@value btnPrimaryColor #1C9DDB;
@value fieldMaxWidth 255px;
@value fieldMinWidth 175px;
@value fieldMargin 16px;
@value titleColor #083144;
@value alTitleColor #6B8792;
@value disabledComponentColor #EEEEEE;
@value regionCodeWidth 98px;
@value phoneNumberWidth 108px;
@media (max-width... |
Tidy up of validation errors | body {
background-color: transparent;
background-image: url('../images/IMG_9764.png');
background-repeat: no-repeat;
background-size: cover;
font-family: Helvetica, Arial, sans-serif;
}
a {
text-decoration: none;
color: #999;
}
h1, h2, h3 {
margin: 0px;
font-family: Helvetica, Arial, sans-serif;
... | body {
background-color: transparent;
background-image: url('../images/IMG_9764.png');
background-repeat: no-repeat;
background-size: cover;
font-family: Helvetica, Arial, sans-serif;
}
a {
text-decoration: none;
color: #999;
}
h1, h2, h3 {
margin: 0px;
font-family: Helvetica, Arial, sans-serif;
... |
Change margin on nav bar | body {
background-image: url("blog-background-image.jpg");
}
.background {
margin-top: 30px;
margin-right: 85px;
margin-left: 75px;
position: fixed;
height: 100%;
background-color: white;
border: 2px solid #d3d3d3;
border-radius: 20px;
border-bottom: -50px;
padding-top: 20px;
padding-left: 30px... | body {
background-image: url("blog-background-image.jpg");
}
.background {
margin-top: 30px;
margin-right: 85px;
margin-left: 75px;
position: fixed;
height: 100%;
background-color: white;
border: 2px solid #d3d3d3;
border-radius: 20px;
border-bottom: -50px;
padding-top: 20px;
padding-left: 30px... |
Improve visibility of header line | /* Comfortable layout for Kindle content manager */
@namespace url("http://www.w3.org/1999/xhtml");
@-moz-document
url-prefix("https://www.amazon.co.jp/hz/mycd/myx"),
url-prefix("https://www.amazon.co.jp/mn/dcw/myx")
{
/* Add more height to "List of collection" box in "Add to collection" screen */
.bulkAddToCo... | /* Comfortable layout for Kindle content manager */
@namespace url("http://www.w3.org/1999/xhtml");
@-moz-document
url-prefix("https://www.amazon.co.jp/hz/mycd/myx"),
url-prefix("https://www.amazon.co.jp/mn/dcw/myx")
{
/* Add more height to "List of collection" box in "Add to collection" screen */
.bulkAddToCo... |
Fix test data files so EOL does not change across OSes | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may ... | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you... |
Set max-width of the text in the examples | body {
font-family: sans-serif;
font-size: 16px;
margin: 50px;
}
| body {
font-family: sans-serif;
font-size: 16px;
margin: 50px;
max-width: 800px;
}
|
Make cache chart responsible + border | /*
* Author: Pierre-Henry Soria <ph7software@gmail.com>
* Copyright: (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.
* License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
*/
#cache_chart {
height: 400px;
width: 600px;
}
#free_space... | /*
* Author: Pierre-Henry Soria <ph7software@gmail.com>
* Copyright: (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.
* License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
*/
#cache_chart, #free_space_chart, #user_chart {
width: 100%;
... |
Remove !importants, adjust style to match other UI elements | .cke_button__save {
background: #337ab7 !important;
}
.cke_button__save:hover {
background: #286090 !important;
}
.cke_button__save_label {
display: inline !important;
color: #fff !important;
}
.cke_button__save_icon {
display: none !important;
}
.cke_button__cancel_label {
display: inline !... | .cke_toolgroup a.cke_button__save {
background-color: #337ab7;
background-image: linear-gradient(to bottom,#337ab7, #336fad);
text-shadow: none;
}
.cke_toolgroup a.cke_button__save:hover {
background: #286090;
background-image: linear-gradient(to bottom, #336fad, #315f9b);
}
.cke_button__save .cke... |
Make headings less bold in docs and reduce h2 font size | .navbar-default{
background-color: #6dbd63;
border: #6dbd63;
}
.navbar-brand {
padding: 0px;
}
.navbar-brand img {
height: 50px;
}
body {
font-size: 18px;
}
h1,h2,h3,h4 {
font-weight: bold;
}
h1 {
margin-bottom: 24px;
}
h2 {
font-size: 48px;
}
h3 {
font-size: 24px;
}
h4 {
font... | .navbar-default{
background-color: #6dbd63;
border: #6dbd63;
}
.navbar-brand {
padding: 0px;
}
.navbar-brand img {
height: 50px;
}
body {
font-size: 18px;
}
h1,h2,h3,h4 {
font-weight: normal;
}
h1 {
margin-bottom: 24px;
}
h2 {
font-size: 36px;
}
h3 {
font-size: 24px;
}
h4 {
fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.