Posts by VitorLuizC • 417 points
22 posts
-
1
votes2
answers168
viewsA: Dynamic redirection with CSS or SASS
CSS does not have the ability to redirect to another page, but you can use media queries in Javascript with matchMedia. const handler = ({ matches }) => { if (matches) window.location = 'URL do…
-
0
votes1
answer358
viewsA: Change placeholder opacity when Focus input
I tested the code in Codepen and what happened was that the placeholders were nested with the parent selector instead of glued to it. Using the &, that functions as a this, a reference to the…
-
2
votes1
answer61
viewsA: Increment margin in pixels in Sass
I did not quite understand the question-related example. But you can loop through the sequence (1 to 100) and one through the directions (top, right, bottom and left) and create classes for each of…
-
0
votes3
answers670
viewsA: Apply style in child element according to parent element in SASS With declaration in child
You can use @at-root. .foo { @at-root { .chrome & { ... } .firefox & { ... } .iexplorer & { ... } } }
-
0
votes2
answers148
viewsA: best way to do sprites in SASS
You can use maps and instead of doing this whole roll of ifs and elseifs you just add in map the new icon. $sprites: ( 'bovino': (0 -1px), 'suino': (0 -117px), 'aves': (0 -175px), 'embutidos': (0…
-
0
votes2
answers61
viewsA: How to remove automatic comments generated by Compass?
You can disable the line comments. They are usually used to help debug and troubleshoot large projects with many SASS files. in the config.Rb you add: line_comments = false…
-
0
votes2
answers202
viewsA: Sass does not rewrite files with prefix
SASS interprets the files started with underline as partial. It is quite simple logic because much of the style sheets written in SASS is made up of several partial files and a "compiled" version of…
sassanswered VitorLuizC 417 -
0
votes2
answers205
viewsA: SASS function does not work
The link you put in the question shows two functions. One is the Calc-Percent and the other is the cp which is only a minor name for the already declared function. @function calc-percent($target,…
-
1
votes2
answers368
viewsA: Gulp Sass does not work
Using the Gulp-ruby-Sass you need to have Ruby installed on your computer and Sass Gem properly updated. Also missing add Gulp and the code to compile the files is a little different. var gulp =…
-
0
votes2
answers286
viewsA: How to Show Half of Background
I do not know if it is valid in your problem, but I used Transform to solve it. Both Divs have the same dimensions, but the second with Transform is reduced to 50% of its size. In case the content…
-
0
votes2
answers276
viewsA: CSS vertical alignment based on the height of another element
I suggest applying flex on the father div, but it does not support old browsers... However, if you put part of the CSS you can better know if there are other outputs to the and problem. display:…
-
5
votes1
answer134
viewsQ: Is there a difference beyond the syntax between Self-invoking-Functions?
I learned three ways to write Self Invoking Functions, Immediately-Invoked Function Expression (IIFE), and I was left with a doubt whether beyond the syntax there is any difference between them.…
-
0
votes1
answer1385
viewsQ: Error: table name specified more than Once
I created a column included in the app table, it works to record the purchase date of the app and I will have to update the old records with the user creation date. I made a query to solve the…
-
2
votes4
answers4234
viewsA: Convert Mysql date (YYYY/mm/dd h:m:s) to dd/mm/yyyy
I don’t know if it works on MYSQL, but in the PostgreSQL would be equivalent to to_char(data_cadastro, 'DD/MM/YYYY')
-
2
votes4
answers146
viewsQ: sql - SELECT for recent data only
I don’t think my title corresponds to doubt. The application I develop inserts once a month, data referring to the last backup in a table. This table contains the backup instance code, the input…
-
1
votes1
answer361
viewsQ: Always include records from the other table if the value of the related field is not NULL
I’m doing a query query, based on a table. In this table (Tablea) I bring several records from other tables, with some codes but one in particular is giving me a certain headache. There is a record…
-
0
votes1
answer523
viewsQ: Make $_SESSION work as session_register
I changed my session_register for $_SESSION, meanwhile $_SESSION does not allow me to use the variable in the same way session_register. For being deprecated I thought they corresponded to the same…
-
1
votes3
answers1682
viewsA: Gantt chart using C3.js: How to use Axis Y Category or Y timeseries?
var tasks = [ {"startDate":new Date("Sun Dec 09 01:36:45 EST 2012"),"endDate":new Date("Sun Dec 09 02:36:45 EST 2012"),"taskName":"E Job","status":"SUCCEEDED"}, {"startDate":new Date("Sun Dec 09…
-
1
votes3
answers1682
viewsQ: Gantt chart using C3.js: How to use Axis Y Category or Y timeseries?
I am looking for a solution within the javascript library C3.JS (Based on D3.JS) where I can create a graph that shows over a period the types of certain thing being used and intercalated. A small…
-
1
votes1
answer78
viewsQ: Add items from table 1 and bring in indexed Rows from table 2
I am very new with SQL and I am creating an application that brings the number of hours contracted, well the part that I have doubts in the query is the index of lines... I need the rows not to…
-
1
votes2
answers246
viewsQ: Fix problem with float in Google Chrome
I’m having a huge headache with Google. It seems to be a bug of this version of Chrome, but when I insert float:right, display:inline-block or any way to leave two parallel elements next to each…
-
9
votes1
answer230
viewsQ: What is the difference between pg_query and pg_execute?
I’m new to Postgre and I see pg_query and pg_execute in the application I’m working on, however I can’t see the difference between the two. I have to make an insertion and I’m not sure which to use.…